This is used to build the basic images for ansible users.
cd centos7
sudo docker-compose build
[~/GitRepo/github/centos7-ansible/centos7] (master) $ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos7_ansible latest 5b191cd8abec 20 seconds ago 469.2 MB
centos7_systemd latest 8608b442190f 6 minutes ago 196.7 MB
start container:
sudo docker-compose run --service-ports ansible
cd centos7-systemd/
docker build --rm -t centos7_systemd .
cd ..
docker build --rm -t centos7_ansible .
[~/docker/dockerdev] $ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos7_ansible latest 9c10b22cc3ef 53 minutes ago 447.6 MB
centos7_systemd latest 2af0a25082ad 4 hours ago 196.7 MB
start container:
sudo docker run --privileged -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 8080:8080 centos7_ansible
### * Exec bash to get shell ``` sudo docker exec -it [CONTAINER_ID] /bin/bash ```
run ansible inside container -- Please remember to update ansible first if needed
ansible-playbook ansible-sample/roles/mysql/handlers/mysql.yml
git clone https://github.com/WellsG/centos7-ansible
cd centos7-ansible/ansible-sample/
ansible-playbook -vvv playbooks/main.yml
Centos
Centos systemd
Wildfly role
Config JBEAP as Service
UI For Docker