dockerized foreman v1.6 stable
Go to file
2016-04-12 12:07:46 +02:00
foreman add foreman 2016-03-18 14:05:57 +01:00
mariadb add foreman 2016-03-18 14:05:57 +01:00
passenger add foreman 2016-03-18 14:05:57 +01:00
docker-compose.yml add foreman 2016-03-18 14:05:57 +01:00
LICENSE changed license 2016-04-12 12:07:46 +02:00
README.md add foreman 2016-03-18 14:05:57 +01:00

Intro

This is a very basic example of how one can build the foreman from sources and make a container out of it. The mariadb container is not even used in this example, but you can use it on your own.

Running the Foreman

cd foreman/
docker-compose run -d

Foreman credentials

You can get the foreman "Login credentials" when the container foreman-data is running seeds on built. It will look like this

Login credentials: admin / PassWoRd

Connecting to the Foreman Web

Get the IP of the nginx-passenger container

docker exec -ti foreman_nginx-passenger_1 ip a

Add the following line to your /etc/hosts file

172.21.0.3 foreman-web

In my case the nginx-passenger's IP was 172.21.0.3

After that run your favorite browser and access the http://foreman-web :-)

Working inside the container

docker exec -ti foreman_foreman-data_1 /bin/sh
$ cd /src/foreman
/src/foreman $ bundle exec rake -T

After you have changed something, don't forget to kill -HUP in the foreman_nginx-passenger_1 container.

Logs

Logs stored at the /src/foreman/log/production.log