Git Product home page Git Product logo

dockerfile's Introduction

Dockerfiles for assorted Gentoo-based Docker images.

Dockerfiles are sorted into directories with names matching the suggested repository. To avoid duplicating ephemeral data (namespace, timestamp tag, …), they appear in the Dockerfile.template as markers (${NAMESPACE}, ${TAG}, …). The build.sh script replaces the markers with values while generating a Dockerfile from each Dockerfile.template (using envsubst), and then builds each tag with:

$ docker build -t $NAMESPACE/$REPO:$TAG $REPO

for example:

$ docker build -t wking/gentoo-en-us:20131205 gentoo-en-us

The dependency graph is:

wking/gentoo  (amd64 stage3)
`-- gentoo-portage  (adds portage directory)
    `-- gentoo-python (drops Python 2.7)
        `-- gentoo-utc  (adds a system timezone)
            `-- gentoo-en-us  (adds locale)
                `-- gentoo-openrc  (configure OpenRC for Docker)
                    `-- gentoo-syslog  (adds syslog-ng and associates)
                        |-- buildbot  (adds a Buildbot master and slave)
                        |-- docker-registry  (adds a Docker registry server)
                        |-- gentoo-layman  (adds layman for Gentoo overlays)
                        |   |-- package-cache  (adds a package-cache proxy)
                        |   `-- thumbor  (adds Thumbor)
                        |-- gentoo-node  (adds Node and npm)
                        |   `-- hubot  (adds hubot with an IRC adapter)
                        |-- irker  (adds irker, and spawns irkerd by default)
                        |-- memcached  (adds Memcached)
                        |-- nagios  (adds Nagios)
                        |-- nginx  (adds Nginx)
                        |   |-- nginx-proxy  (SSL/TLS proxying via SNI)
                        |   |-- kibana  (adds Kibana)
                        |   `-- kibana-azure  (adds Azure's Kibana)
                        |-- ngircd  (adds ngIRCd)
                        |-- postgresql  (adds PostgreSQL)
                        |-- redis  (adds Redis)
                        |-- salt  (adds a Salt Stack install)
                        |   |-- salt-master  (enables a Salt Stack master)
                        |   `-- salt-minion  (enables a Salt Stack minion)
                        |-- stunnel  (adds stunnel)
                        `-- gentoo-java  (adds IcedTea)
                            `-- elasticsearch  (adds Elasticsearch)

Run:

$ ./build.sh

to seed from the Gentoo mirrors and build all images. There are a number of variables in the build.sh script that configure the build (AUTHOR, NAMESPACE, …). We use POSIX parameter expansion to make it easy to override variables as you see fit.

$ NAMESPACE=jdoe DATE=20131210 ./build.sh

I'd like to avoid bloating the images with the Portage tree, but without ugly hacks that is not currently possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.