Skip to content

Commit

Permalink
map env vars into the popper container from current shell (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed Jun 15, 2020
1 parent 0420590 commit b584a46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ command -v docker >/dev/null 2>&1 || { echo >&2 "docker command not found. Abort

cat > ./popper << "EOF"
#!/usr/bin/env sh
printenv > /tmp/.envfile
docker run --rm -ti \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $PWD:$PWD \
--workdir $PWD \
--env-file /tmp/.envfile \
getpopper/popper:v2.6.0 $@
EOF

Expand Down

0 comments on commit b584a46

Please sign in to comment.