Skip to content

Docker image with Ansible and dependencies for provisioning Xronos targets

License

Notifications You must be signed in to change notification settings

xronos-inc/ansible-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible in Docker

Dockerfile used to build xronosinc/ansible docker image.

Description

Dockerfile for Ansible. This dockerfile installs:

  • ansible
  • git (needed to install roles from private git repos)
  • ssh (needed to install roles from private git repos)
  • docker python module
  • boto3 (support for some AWS features)
  • github3.py (allows querying github repositories)

Platform support

This dockerfile builds for:

  • linux/amd64
  • linux/arm64

Build and run the image

docker build . -t xronosinc/ansible:latest

Run the image with the --version flag (equivalent to ansible-playbook --version):

docker run -it --tty --rm xronosinc/ansible:latest --version

ansible-playbook is the default entrypoint. Any additional arguments from the docker run command will be passed along. Alternately add the flag --entrypoint /bin/bash to open an interactive shell.

Multiarch build

Build for multiple architectures using the buildx command.

docker buildx build . --tag xronosinc/ansible:latest --platform linux/amd64,linux/arm64

About

Docker image with Ansible and dependencies for provisioning Xronos targets

Resources

License

Stars

Watchers

Forks

Packages

No packages published