Skip to content

make gcloud-auth-docker works on Windows#50

Merged
markmandel merged 1 commit intomasterfrom
bug/win-auth-docker
Jan 7, 2018
Merged

make gcloud-auth-docker works on Windows#50
markmandel merged 1 commit intomasterfrom
bug/win-auth-docker

Conversation

@markmandel
Copy link
Collaborator

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
Collaborator 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