• Stars
    star
    1,856
  • Rank 24,115 (Top 0.5 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dockerfiles for various common implementations

CentOS-Dockerfiles

This repository provides Dockerfiles for use with CentOS. Popular implementations here will be published to the CentOS namespace in the docker index.

Contribution Guidelines

Each Dockerfile should contain a README that includes the following:

  • Version of CentOS and Docker that it was built/tested against
  • Instructions for building the Docker image

-- For example: docker build --rm=true -t my/image .

  • Instructions for running the image, including examples for persistent data, port mapping, etc.
  • Examples for testing and/or validating the functionality of the image.
  • Do not include executable scripts. Provide them and mark them as executable in the Dockerfile

-- ADD ./script.sh /usr/bin/ RUN chmod -v +x /usr/bin/script.sh

  • If creating a container for a specific language, specify the version of that language.
  • If yum is used during the build process, run a clean afterwards to reduce the image size.

Building All The Things

An example of building all images found within this git repository can be done with the following two bash for loops from the base dir of your git clone:

--

# Building everything from centos:centos6 base image
for dir in ./*/centos6
do
    pushd $dir &> /dev/null
        # tmp var for short dirname
        tmp=$(dirname $dir)

        # strip all characters leading up to and including '/'
        appname=${tmp##*/}
        disttag=${dir##*/}

        docker build -t $USER/${appname}:${disttag} .
    popd &> /dev/null;
done

# Building everything from centos:centos7 base image
for dir in ./*/centos7
do
    pushd $dir &> /dev/null
        # tmp var for short dirname
        tmp=$(dirname $dir)

        # strip all characters leading up to and including '/'
        appname=${tmp##*/}
        disttag=${dir##*/}

        docker build -t $USER/${appname}:${disttag} .
    popd &> /dev/null
done

--

You'll notice that the appname/disttag structure is laid out on purpose, so if you would prefer to only build a single image this can be done by either following the specific README.md contained with the Dockerfile or with the below guideline:

# $appname and $disttag should be something along the lines of 'httpd' and 
# 'centos7' respectively
cd $appname/$disttag

docker build -t $USER/${appname}:${disttag} .

--

Notes

Known issues:

  • None at this time.

More Repositories

1

sig-cloud-instance-images

CentOS cloud images
774
star
2

sig-cloud-instance-build

CentOS Cloud Instance SIG: Metadata to build & release instances
Shell
362
star
3

Community-Kickstarts

Kickstart configurations and snippets provided by community members
181
star
4

sig-atomic-buildscripts

Shell
73
star
5

sig-core-livemedia

Scripts, Docs and Kickstarts used to build the CentOS LiveCD/DVD and other live media
67
star
6

ansible-infra-playbooks

Jinja
58
star
7

container-pipeline-service

Code, infrastructure and deployment backend for the CentOS Container Pipeline backing up build system for registry.centos.org
Python
49
star
8

centos-bootc

Create and maintain base bootable container images from Fedora ELN and CentOS Stream packages
Ruby
42
star
9

container-index

The master Index used by the CentOS Container Pipeline to build, test, deliver and lifecycle manage containers at https://registry.centos.org/
35
star
10

sig-core-t_functional

Shell
25
star
11

sig-core-bld-seven

CentOS Linux 7, build metadata and mock configs
Shell
19
star
12

Calendar

The CentOS Project Calendar
Jinja
13
star
13

centos-cloud

Puppet
11
star
14

atomic-container

CentOS Linux Atomic Container
Shell
11
star
15

duffy

CentOS CI provisioner
Python
10
star
16

ImageStandards

Notes and hints for people building images from the CentOS Distribution
10
star
17

reimzul

Distributed RPM build system
Python
9
star
18

sig-core-AltArch

Repository that will contain specific needed patches to build upstream packages on specific cpu arch
Shell
8
star
19

mirrorlists-code

Git repositories holding needed scripts for mirrors crawlers and mirrorlist/isoredirect nodes
Perl
7
star
20

centos-bootc-dev

Dockerfile
6
star
21

docs

CentOS Documentation project.
HTML
6
star
22

AltArch

Scripts, kickstarts, and assorted tooling for Alternate Architectures within the CentOS project
6
star
23

centos-bootc-layered

Dockerfile
6
star
24

ansible-role-zabbix-server

Jinja
5
star
25

ansible-role-postgresql

Jinja
5
star
26

ansible-role-certbot

Jinja
4
star
27

Artwork

Logos, graphics, and artwork related to CentOS
4
star
28

docs-contributors-guide

Shell
4
star
29

docs-installation-guide

CentOS Installation Guide documentation
Shell
4
star
30

ansible-role-ansible-host

Python
4
star
31

cico-pipeline-library

Groovy
4
star
32

python-cicoclient

Client library for the ci.centos.org administrative interface
Python
4
star
33

sync2git

Python
4
star
34

ansible-role-sshd

Jinja
3
star
35

8docs

Documentation for the 8 release
Shell
3
star
36

ansible-role-boot-server

Jinja
3
star
37

ansible-role-zabbix-agent

Shell
3
star
38

ansible-role-rsnapshot

Shell
3
star
39

sig-core-t_docker

Shell
3
star
40

Promo-Artwork

Logos, graphics, and artwork related to CentOS promotional events.
3
star
41

ansible-role-postfix

Jinja
3
star
42

centos-logos

CentOS-related icons and pictures
HTML
3
star
43

ansible-role-kvm-host

Jinja
3
star
44

ansible-role-tinyproxy

Jinja
2
star
45

ansible-role-centos-backup

Shell
2
star
46

ansible-role-unbound

HTML
2
star
47

workshops

Materials and docs for CentOS workshops
2
star
48

ansible-role-vbox-host

2
star
49

ansible-role-mirror

Jinja
2
star
50

ansible-role-haproxy

Jinja
2
star
51

ansible-role-bind

Jinja
2
star
52

centos-bootc-infra

Shell
2
star
53

ansible-role-ocp-admin-node

Python
2
star
54

ansible-role-baseline

Jinja
2
star
55

ansible-role-opennebula-frontend

Jinja
2
star
56

ansible-role-mysql

Jinja
2
star
57

ansible-role-httpd

Jinja
2
star
58

sig-core-QA_harness_ansible

Ansible playbooks/roles/tasks used within the QA harness environment to deploy new releases and validate those
Jinja
2
star
59

ansible-role-pagure

Python
2
star
60

pdns-custom-geoip-backend

This repository hosts the various python code and/or data that helps building a powerdns pipe backend that suits centos infra needs
Python
1
star
61

ansible-role-mirror-cloud

Jinja
1
star
62

ansible-role-centbot

Jinja
1
star
63

ansible-role-lsyncd

1
star
64

ansible-role-opennebula-kvm-host

1
star
65

docs-web

CentOS Documentation master page (for docs.centos.org)
HTML
1
star
66

ansible-role-mirror-vault

Jinja
1
star
67

ansible-role-mailman

HTML
1
star
68

ansible-role-gitea

Jinja
1
star
69

ansible-role-keepalived

Shell
1
star
70

demobuild

Conference build scripts for demo boxen
Python
1
star
71

ansible-role-httpd-compose

Jinja
1
star
72

sig-core-SecureBoot

Git repositories holding needed changes for CentOS Secureboot/shim
Shell
1
star
73

ansible-role-kanboard

1
star
74

ansible-role-iptables

Jinja
1
star
75

ci-index

A metadata host repo for content consumed in the http://ci.centos.org/ infrastructure
1
star
76

sig-virt-t_xen

simple test suite to ensure baseline functionality of the Xen4CentOS repo on CentOS-6/x86_64 as a dom0
Shell
1
star
77

ansible-role-odcs-backend

Jinja
1
star
78

ansible-role-mqtt

Jinja
1
star
79

shim-review

Contains reproducible instructions and artifacts to build the shim before being reviewed for signing
1
star
80

ansible-role-redis

1
star
81

ansible-role-zabbix-proxy

Jinja
1
star
82

ansible-role-nfs-server

HTML
1
star
83

docs-web-ui

CentOS Documentation web ui , mainly artifacts used for the real docs
CSS
1
star
84

ansible-role-mirrorlist

Python
1
star
85

gitlab-webhooks

A webhook to fedora-messaging service
Python
1
star
86

ansible-role-duffy

Jinja
1
star
87

sig-core-t_ltp

The linux test Project puts together a test suite that aims to prove a working functional set for the installer distribution. This is a git repo setup for running these test, on a regular basis, within the CentOS Project.
C
1
star
88

ansible-role-mirror-master

Shell
1
star
89

centos-indexhtml

Browser default start page for CentOS
HTML
1
star
90

ansible-role-rsyncd

Jinja
1
star
91

ansible-role-ipa-client

Shell
1
star
92

ansible-role-repospanner

Shell
1
star
93

sig-virt-xen

WIP repo for the Xen Hypervisor, in the CentOS Virt SIG
1
star