git clone https://github.com/ashishjullia/docker-dev-awscli.git && cd ansible/single-liner
TF_VERSION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
NAME_OF_CLUSTER=
# Extra Utilities (Will be installed, only if populated)
FLUX_VERSION=
docker build -t terraform-aws-cli .
docker image tag terraform-aws-cli ashishjullia19/terraform-aws-cli
Note: If you are pushing the image to a private dockerhub repository, make sure to run "docker login" first.
docker image push ashishjullia19/terraform-aws-cli
vim ~/.bashrc
alias dev="docker run -it --rm -v $PWD:/work -w /work --env-file=.env --entrypoint /new.sh ashishjullia19/terraform-aws-cli"
alias dot="source ~/.bashrc"
Run the following commands series in whichever directory you want the docker development environment.
dot
dev