Automated docker image builder of all currently supported Ansible versions. Built docker images are hosted publicly in the sbocinec/ansible Docker HUB repository. The project is currently in alpha phase of development and there are multiple build & test related things to be implemented yet. Check CHANGELOG.md for news & updates.
There are currently 2 types of images being built:
- slim: based on the python:3.6-slim docker image
- alpine: based on the python:3.6-alpine docker image
The build pipeline currently automatically builds, tags and pushes docker images from all the Ansible versions specified in the ANSIBLE_VERSION file.
- Prepare complete ansible playbook content including your playbooks, variables, ansible configuration file and inventory.
- Run the container mounting the ansible playbook directory into
/ansible
path inside the container and specifying the exact ansible command:docker run -it --rm -v ${PWD}/ansible:/ansible sbocinec:ansible ansible-playbook site.yml
. Follow the Ansible Getting Started guide for full Ansible reference.
- Run specific ansible version:
docker run -it --rm -v ${PWD}/ansible:/ansible sbocinec:ansible:2.7 ansible-playbook site.yml
- Run ansible built on top of Alpine Linux image:
docker run -it --rm -v ${PWD}/ansible:/ansible sbocinec:ansible:2.6-alpine ansible-playbook site.yml
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may find a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 or in the project's LICENSE file.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.