Outlandish Docker ansible image

Code that creates a docker image containing ansible and other necessary tools for deployment of Outlandish projects.

Base docker image: python:3.8.7-buster

Installed tools:

  • Ansible v2.9.2
    (Reason for staying on 2.9.2: the ec2 modules have been restructured. Any higher than that and our deployments fail and we would need to do refactoring).
  • git
  • openssh-client
  • boto3
  • boto

Usage

This image is intended to be used via CI. In your .gitlab-ci.yml, call this image as: image: outlandish/ansible:X.Y.Z

How to create a new version of this docker image

  • Do any changes you want in the Dockerfile
  • Run docker build -t outlandish/ansible:X.Y.Z . Where X, Y, Z are your version. Until now we have been using as version the version of ansible we have installed. If more changes happen while the ansible version remains the same, add a minor version (example: 2.10.5.2 )

How to deploy it to docker hub

You will need: