This is a Docker image that contains everything you need to deploy using Wimpy. It installs all Wimpy roles and their dependencies.
You can use it like
$ docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD:/app" \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
fiunchinho/wimpy /app/deploy/deploy.yml \
--extra-vars "wimpy_release_version=`git rev-parse HEAD` wimpy_deployment_environment=develop" -vvThe Wimpy Docker image has the following volumes
/appFolder where the application folder needs to be mounted/var/run/docker.sockDocker socket to be able to execute docker commands. Only needed when usingwimpy.build
If you need to decrypt variables using Ansible Vault, you will need to mount the file containing the password like
$ docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD:/app" \
-v /tmp/.vault_pass:/tmp/.vault_pass \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
fiunchinho/wimpy /app/deploy/deploy.yml --vault-password-file /tmp/.vault_pass \
--extra-vars "wimpy_release_version=`git rev-parse HEAD` wimpy_deployment_environment=develop" -vvWimpy needs to authenticate the requests to the AWS API. You can pass the usual AWS environment variables
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY
Or you can even mount a configuration .aws folder file inside the container path /root/.aws.