https://github.com/outlandishideas/docker-ansible
https://github.com/outlandishideas/docker-ansible
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/outlandishideas/docker-ansible
- Owner: outlandishideas
- Created: 2021-06-07T14:12:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-09T10:01:39.000Z (about 5 years ago)
- Last Synced: 2026-01-12T16:36:41.066Z (5 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
- To have an account to the docker hub registry ( https://hub.docker.com/ )
- to be logged in (from your commandline): https://docs.docker.com/engine/reference/commandline/login/
- to have been given access to the outlandish namespace
- After you have build your new docker image, you can push it with the following command `docker push outlandish/ansible:X.Y.Z`