Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] Experimental, use docker cli directly #54

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

mikeland73
Copy link
Contributor

@mikeland73 mikeland73 commented Aug 1, 2023

Summary

The current golang docker client is broken under golang 1.20.6. There's a patched release but we can't update to it because helm it tied to current release. This is a temporary fix.

How was it tested?

LAUNCHPAD_USE_DOCKER_CLI=1 launchpad up devtools/buildkite/lagobot-app

Is this change backwards-compatible?

Yes

)

func CommandTTY(name string, arg ...string) *exec.Cmd {
cmd := exec.Command(name, arg...)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exec.CommandContext

"os/exec"
)

func CommandTTY(name string, arg ...string) *exec.Cmd {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why TTY?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it only needs to bind stdout/err.

I copy pasted this from devbox repo where stdin needs to be set for the CLI to output in a certain way. In this case it doesn't need it.

@mikeland73 mikeland73 merged commit 49d5f31 into main Aug 1, 2023
2 checks passed
@mikeland73 mikeland73 deleted the landau/use-docker-cli branch August 1, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants