Dockerfile to build our CentOS baseimage
The image is built on top of the official Docker CentOS image and installs the following extra packages:
bind-utils
centos-release-scl-rh
epel-release
gettext
iproute
libcgroup-tools
sudo
which
Additionally we did the following configurations:
Yum
is configured to NOT install any file in/usr/share/doc
and to forceen_US.utf8
as the default locale.- we added EPEL and Software Collections to Yum Repositories
- all scripts (for configuration and start of PID 1) go to
/usr/share/container_scripts
At this moment if you want to use this image, you will have to build the image yourself using a Linux machine (we use bash in our scripts):
-
define the variables that will be used in your build (you can see the template file environment_variables.tmpl)
cd scripts cp environment_variables.tmpl environment_variables.temp vi environment_variables.temp
Variable name Description Examples FROM_DOCKERFILE_TAG the tag that will be used when pulling the official Docker CentOS image :7 REGISTRY to which docker registry [registry/][username/] you are going push the image to. In the case that you only want to use it locally, you can use the username part (you shouldn't leave empty so it doesn't collide with upstream centos image) quay.io/bikeemotion/ IMAGE_TAG the tag of the built image :1.0 -
build the image itself
./rebuild.sh
-
start the container
./start-centos.sh
- Create Automated builds of this images in a public repository (Docker Hub, Quay, ...)
If you find this image useful here's how you can help:
- Send a Pull Request with your new features, documentation, and bug fixes
- Help new users with Issues they may encounter