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

fix: set DOCKER_CONFIG dynamically #336

Merged
merged 2 commits into from
Sep 10, 2024
Merged

fix: set DOCKER_CONFIG dynamically #336

merged 2 commits into from
Sep 10, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Sep 6, 2024

Relates to coder/terraform-provider-envbuilder#43

We were not setting DOCKER_CONFIG correctly, and were instead relying on having it set for us in the image. This change dynamically sets DOCKER_CONFIG at runtime instead, and removes the definition in the Envbuilder image.

Comment on lines -7 to -8
# Kaniko looks for the Docker config at $DOCKER_CONFIG/config.json
ENV DOCKER_CONFIG /.envbuilder
Copy link
Member Author

Choose a reason for hiding this comment

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

This may seem controversial, but I think it definitely makes sense to set it in code if we allow dynamically changing MagicDir.

envbuilder.go Outdated Show resolved Hide resolved
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

stamp 👍

Base automatically changed from cj/less-magic to main September 9, 2024 22:03
@johnstcn johnstcn merged commit 4547249 into main Sep 10, 2024
4 checks passed
@johnstcn johnstcn deleted the cj/set-docker-config branch September 10, 2024 08:01
johnstcn added a commit that referenced this pull request Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants