This image was put together for training and demo purposes. If intending any real use of this image, then you should seriously consider persistent volumes (see below) for all critical data and configuration.
With Puppet Foreman 1.15 and latest Ansible v2
The container simply automates instructions at - http://theforeman.org/manuals/1.15/index.html#2.Quickstart
- and layers on the latest current version of Ansible.
docker run --restart=always -d \
-p 443:443 -p 8443:8443 -p 8140:8140 \
-h foreman.example.com \
--init \
--name foreman \
gbevan/ubuntu-foreman
(Optional option --restart=always ensures the container is restarted in the event of failure or restart of the parent server/docker daemon.)
docker logs -f foreman
Point your browser at https://your-host
Feel free to submit Pull Requests at https://github.com/gbevan/ubuntu-foreman
You should probably make these (at least) persistent volumes:
/etc/foreman-installer
/etc/puppetlabs
/var/lib/foreman
/var/lib/postgresql
/var/log