Skip to content

Wegoshare/CentOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license

Table of Contents

About

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 force en_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

Usage

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):

  1. 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
  2. build the image itself

    ./rebuild.sh
  3. start the container

    ./start-centos.sh

Todo

  1. Create Automated builds of this images in a public repository (Docker Hub, Quay, ...)

Contributing

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

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%