dockerized foreman v1.6 stable
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
Andy ca7f5dd54e
changed license
před 8 roky
foreman add foreman před 8 roky
mariadb add foreman před 8 roky
passenger add foreman před 8 roky
LICENSE changed license před 8 roky
README.md add foreman před 8 roky
docker-compose.yml add foreman před 8 roky

README.md

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