Created
May 29, 2024 13:25
-
-
Save fredericorecsky/9d012ac804c2b494bf09c1706f73f9f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PWD=`pwd` | |
export IMAGE=hashicorp/terraform | |
export VERSION=1.5 | |
export ENTRYPOINT=/bin/bash | |
export WORK_DIR=/tmp | |
docker run \ | |
--entrypoint /bin/sh \ | |
-it \ | |
--rm \ | |
-w $WORK_DIR \ | |
--volume="$PWD:$WORK_DIR" \ | |
--volume="/var/run/docker.sock:/var/run/docker.sock" \ | |
$IMAGE:$VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment