Skip to content

Commit

Permalink
refactor: Trick to pass host env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 27, 2023
1 parent 930fd82 commit bd778cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ run() {
$PHPCTL_RUNTIME run \
--rm "$PHPCTL_TTY" \
--name "phpctl_$(openssl rand -hex 6)" \
-e COMPOSER_AUTH="$COMPOSER_AUTH" \
$(env | awk -F= '/^[[:alpha:]]/{print $1}' | sed 's/^/-e/') \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.gitconfig:/root/.gitconfig \
-v "$(pwd)":/opt -w /opt \
Expand Down

0 comments on commit bd778cc

Please sign in to comment.