Skip to content

Docker development setup via ansible and via docker single liner

Notifications You must be signed in to change notification settings

rishabhgargg/docker-dev-awscli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To build your own image

git clone https://github.com/ashishjullia/docker-dev-awscli.git && cd ansible/single-liner

Create and ".env" file to pass the secrets

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

Edit your "~/.bashrc" and place the following "aliases" at the bottom of the file

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"

Action

Run the following commands series in whichever directory you want the docker development environment.
dot
dev

About

Docker development setup via ansible and via docker single liner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 58.5%
  • Shell 41.5%