Skip to content

Commit

Permalink
automated way to say to git inside container?
Browse files Browse the repository at this point in the history
  • Loading branch information
bubl-ai authored Feb 18, 2024
1 parent 91801b6 commit 5076be0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,7 @@ Using a volume to provide sensitive information, such as an SSH key, during runt

- **Dynamic Configuration:** With a volume, sensitive information can be changed without rebuilding the Docker image. This flexibility is valuable when updating credentials or keys without redeploying the entire application.

> There seems to be a way to allow VSCode to automatically share the GitHub SSH key with your container. I haven't been able to make it work, but it is worth sharing, ([LINK](https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials). Let me know if it worked for you! {: .prompt-tip }
## Environmental Variables
Setting up environmental variables correctly is important for both the security and functionality of your images. Make sure you create them either in the command line while starting container with `docker run -e [ENV_VAR_NAME]=$ENV_VAR_NAME`, or inside the container by executing `export [ENV_VAR_NAME]=[VALUE]`. If you choose the former make sure to not pass the sensitive information directly on the command line.

0 comments on commit 5076be0

Please sign in to comment.