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

make gcloud-auth-docker works on Windows #50

Merged
merged 1 commit into from
Jan 7, 2018
Merged

Conversation

markmandel
Copy link
Member

Issue was that the code attempted to mount /tmp with Docker. On Windows, the mount path has to be
from /c (or another root dir), otherwise it won't work. Doing the temporary work in a tmp directory
under the build dir solved the issue.

Closes #49

/cc @Kuqd

Issue was that the code attempted to mount /tmp
with Docker. On Windows, the mount path has to be
from /c (or another root dir), otherwise it won't
work. Doing the temporary work in a `tmp` directory
under the `build` dir solved the issue.

Closes #49
@markmandel markmandel added area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. kind/bug These are bugs. labels Jan 7, 2018
@markmandel markmandel added this to the 0.1 milestone Jan 7, 2018
Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

looks good to me

mkdir -p $(build_path)/tmp/gcloud-auth-docker
-cp ~/.dockercfg $(build_path)/tmp/gcloud-auth-docker
docker run --rm $(common_mounts) -v $(build_path)/tmp/gcloud-auth-docker:/root $(build_tag) gcloud docker --authorize-only
sudo mv $(build_path)/tmp/gcloud-auth-docker/.dockercfg ~/
Copy link
Collaborator

Choose a reason for hiding this comment

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

ha yes you're right this is the WSL docker cli my bad in the issue I got confused with the windows one.

Copy link
Member Author

Choose a reason for hiding this comment

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

Heh 😆

Turtles all the way down! 🐢

@markmandel markmandel merged commit ce6b825 into master Jan 7, 2018
@markmandel markmandel deleted the bug/win-auth-docker branch January 7, 2018 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. kind/bug These are bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants