Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlossg/docker-foreman
Docker image to run Foreman
https://github.com/carlossg/docker-foreman
Last synced: about 1 month ago
JSON representation
Docker image to run Foreman
- Host: GitHub
- URL: https://github.com/carlossg/docker-foreman
- Owner: carlossg
- License: apache-2.0
- Created: 2014-11-21T17:43:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T11:39:42.000Z (about 6 years ago)
- Last Synced: 2023-04-15T01:27:15.370Z (over 1 year ago)
- Language: Shell
- Size: 120 KB
- Stars: 10
- Watchers: 1
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docker-foreman
==============A simple Docker image to run [Foreman](http://theforeman.org/)
# Running
Set `-h` to a hostname, that's what Foreman and Puppet will use as fqdn.
docker run -ti -h foreman.local --name foreman -p 443:443 -p 8443:8443 -p 8140:8140 csanchez/foreman
Then go to port 443 of your docker host (e.g. http://localhost:443)
To see more hosts in Foreman, you can run more Puppet agents
docker run --link foreman:puppet --rm -ti csanchez/foreman /puppet-agent.sh puppet
Then sign the new certificate in Foreman under Infrastructure -> Smart Proxies -> Certificates.
If you want to open a shell session and play with the installed Puppet and other tools
docker run -ti -h foreman.local -p 8443:443 csanchez/foreman bash
Then run `foreman-installer` to customize the instance with the new hostname,
and anything else you want to run.foreman-installer
puppet agent --test
...# Customizing
Create your Dockerfile and run any commands, eg. to install the docker plugin (`csanchez/foreman-docker` image)
FROM csanchez/foreman
RUN yum -y install ruby193-rubygem-foreman_docker# Building
docker build -t csanchez/foreman .