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

Revise how environment variables are passed to container builds #7

Open
3 tasks
rpodcast opened this issue Jul 30, 2021 · 0 comments
Open
3 tasks

Revise how environment variables are passed to container builds #7

rpodcast opened this issue Jul 30, 2021 · 0 comments

Comments

@rpodcast
Copy link
Owner

rpodcast commented Jul 30, 2021

For VS-Code dev containers:

  • Add an example environment vairable file called .env-example and remove the existing one from version control
  • Update the runArgs param in devcontainer.json to include "--env-file",".devcontainer/devcontainer.env" (taken from docs)
  • Verify env vars are passed at container build time and see if I can remove the hard-coded values at the top of the VS-Code Dockerfile

Big goal is to be adaptive to different user IDs from different host systems, and not having to hard-code those values when I build the container

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

No branches or pull requests

1 participant