Giter VIP home page Giter VIP logo

docker-ansible-bundled's Introduction

build status build type docker pulls

docker-ansible-bundled

Ansible Core 2.8.x and Tower 3.5.3 for el7 in a Docker container

Run immediately (no clone)

docker pull asubowo/docker-ansible-bundled

Or use

docker pull asubowo/docker-ansible-bundled:3.5.3

Manual build

  1. Change directory to directory root where the contents of this repository are located
docker-ansible-bundled
    |_ Dockerfile
    |_ inventory
    |_ init-tower.sh
  1. Run the build
docker build . -t asubowo/ansible-bundled:3.5.3

Create a Tower DB volume (optional)

To persist the Tower database, create a Docker volume

docker volume create tower-data

Run parameters

Add this flag to persist the /var/lib/awx/projects/ directory or to map it somewhere on your host OS. If the directory on the host OS does not exist, Docker will create it for you.

-v ~/ansible_projects:/var/lib/awx/projects

Add this flag to persist the Tower database.

-v tower-data:/var/lib/postgresql/9.6/main

Add this flag to map your Tower certs and license directory to /license_and_certs inside the container.

-v <path_to_your_directory_containing_certs_and_license>:/license_and_certs

If you're looking to do everything above, your run command may look similar to the following:

docker run -d -p 443:443 ~/ansible_projects:var/lib/awx/projects -v tower-data:/var/lib/postgresql/9.6/main -v ~/tower_stuff:/license_and_certs --name ansible-bundled asubowo/ansible-bundled:3.5.3

Appendix

If you're running CentOS 7+ as your host OS image, you may want to disable Bubblewrap. Otherwise you may see namespace issues when attempting to run jobs in Tower. To do this, log into Tower, navigate to Settings > Jobs and disable "Job Isolation"

Login

URL: https://localhost:443

Username: admin

Password: password1234

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.