Project

General

Profile

Refactor #26741

Refactor #18732: Make Foreman Containerizable

Add a dockerfile for foreman

Added by Ohad Levy 7 months ago. Updated 3 months ago.


Related issues

Related to Foreman - Refactor #26953: Expose base and builder-base container images externally to speedup the build processReady For Testing
Related to Foreman - Bug #27710: foreman containers has non production required gemsClosed
Related to Foreman - Refactor #27806: change docker-compose setup to use pg by defaultClosed

Associated revisions

Revision 89465aaf (diff)
Added by Ohad Levy 7 months ago

fixes #26741 - adds containers support for developers

this patch introduce a docker file and docker compose example
so that developers can easily get a production docker based env
working quickly.

this by no means is a replacement to the installer or should
effect users besides the porpose of getting up an environment quickly

this does not try to solve docker problems for plugins (but it
can be used to build customized images with a custom plugin installed).

to test this pr you would need docker and docker-compose (I'm running docker-compose-1.22.0-2.)

to use this PR:
(install docker-compose)

docker-compose run app bundle exec rake db:create db:migrate db:seed
docker-compose up

in order to build your own docker image you can either use a service
(such as quay.io) tiggered by a git push or manually OR
to install a recent version of docker that supports multi-stage builds

in theory podman also supports it, but i had stability issues with it
while trying to build images.

Revision cdc84204 (diff)
Added by Ohad Levy 7 months ago

refs #26741 - update the location of the container image

Container image is now enabled on quay.io, on every merge
to foreman repo, a new image would be built for every branch.

Currently, only the develop branch is enabled, and therefore
the latest tag would be used for it.

Revision 7246f6f8 (diff)
Added by Ohad Levy 7 months ago

refs #26741 - use develop container tag vs latest

hopefully this makes it more obvious one is using the
latest development build vs a stable release.

[skip ci]

Revision 13932002 (diff)
Added by Ohad Levy 7 months ago

refs #26741 - adds usage/build instructions for foreman container

[skips ci]

Revision 7f8e55c3 (diff)
Added by Ivan Necas 6 months ago

Refs #26741 - fix typo and add node about buildah

Revision 3eab2980 (diff)
Added by Ohad Levy 6 months ago

refs #26741 - switch to fedora-minimal base image

Not sure if this matters a lot, but this reduces the base image size from about 300MB to 130MB

Revision 30823040 (diff)
Added by Ohad Levy 6 months ago

refs #26741 - do not include facter in container based builds

Since hostnames do not matter within the container users
are expected to override the FOREMAN_FQDN setting.

this avoids the flipflop in the audits trail (of
serveral settings that depend on the hostname) and sets
a default so facter is not needed anymore.

Revision 7e9598ec (diff)
Added by Ohad Levy 3 months ago

refs #26741 - fix typo newgroup -> newgrp

History

#1 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6730 added

#2 Updated by Timo Goebel 7 months ago

  • Fixed in Releases 1.23.0 added

#3 Updated by Ohad Levy 7 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6782 added

#5 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6785 added

#6 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6786 added

#7 Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6808 added

#8 Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6822 added

#9 Updated by Ivan Necas 6 months ago

  • Related to Refactor #26953: Expose base and builder-base container images externally to speedup the build process added

#10 Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6838 added

#11 Updated by Amit Upadhye 5 months ago

  • Category set to Web Interface

#12 Updated by Tomer Brisker 4 months ago

  • Category changed from Web Interface to Development tools

#13 Updated by Ohad Levy 3 months ago

  • Related to Bug #27710: foreman containers has non production required gems added

#14 Updated by Ohad Levy 3 months ago

  • Related to Refactor #27806: change docker-compose setup to use pg by default added

#15 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7028 added

Also available in: Atom PDF