This Dockerfile allows running Foreman git version in container. It requires passing arguments during build:
If additional plugins needed, declare them in "plugins" directory. For example: create 'plugins/foreman_reserve.rb' with the following content:
gem 'foreman_reserve'
Docker will add the plugins before Foreman installation to bundler.d folder (/opt/foreman/bundler.d).
Build:
docker build --build-arg FOREMAN="1.7-stable" --build-arg RUBY_VER="2.0.0" --build-arg WITHOUT="mysql2 pg test" -t abraverm/foreman:1.7 .
Run:
docker run -d -P -e RUBY_VER="2.0.0" abraverm/foreman:1.7
Foreman should be available at the assigned port (i.e 49157), browse to:
Enter Foreman with the following credentials:
User name:
admin
Password:
changeme
Content type
Image
Digest
sha256:445f663b4…
Size
524.2 MB
Last updated
almost 11 years ago
docker pull abraverm/foreman