1 [Dockerfiles][] for assorted [Gentoo][]-based [Docker][] images.
3 Dockerfiles are sorted into directories with names matching the
4 suggested repository. To avoid duplicating ephemeral data (namespace,
5 timestamp tag, …), they appear in the `Dockerfile.template` as markers
6 (`${NAMESPACE}`, `${TAG}`, …). The `build.sh` script replaces the
7 markers with values while generating a `Dockerfile` from each
8 `Dockerfile.template` (using [envsubst][]), and then builds each tag
11 $ docker build -t $NAMESPACE/$REPO:$TAG $REPO
15 $ docker build -t wking/gentoo-en-us:20131205 gentoo-en-us
17 The dependency graph is:
19 wking/gentoo (amd64 stage3)
20 `-- gentoo-portage (adds portage directory)
21 `-- gentoo-utc (adds a system timezone)
22 `-- gentoo-en-us (adds locale)
23 `-- gentoo-openrc (configure OpenRC for Docker)
24 `-- gentoo-syslog (adds syslog-ng and associates)
25 |-- buildbot (adds a Buildbot master and slave)
26 |-- docker-registry (adds a Docker registry server)
27 |-- gentoo-layman (adds layman for Gentoo overlays)
28 | `-- package-cache (adds a package-cache proxy)
29 |-- gentoo-node (adds Node and npm)
30 | `-- hubot (adds hubot with an IRC adapter)
31 |-- irker (adds irker, and spawns irkerd by default)
32 |-- memcached (adds Memcached)
33 |-- nginx (adds Nginx)
34 | |-- nginx-proxy (SSL/TLS proxying via SNI)
35 | |-- kibana (adds Kibana)
36 | `-- kibana-azure (adds Azure's Kibana)
37 |-- ngircd (adds ngIRCd)
38 |-- postgresql (adds PostgreSQL)
39 |-- redis (adds Redis)
40 |-- salt-minion (adds a Salt Stack minion)
41 |-- stunnel (adds stunnel)
42 `-- gentoo-java (adds IcedTea)
43 `-- elasticsearch (adds Elasticsearch)
49 to seed from the Gentoo mirrors and build all images. There are a
50 number of variables in the `build.sh` script that configure the build
51 (`AUTHOR`, `NAMESPACE`, …). We use [POSIX parameter
52 expansion][parameter-expansion] to make it easy to override variables
55 $ NAMESPACE=jdoe DATE=20131210 ./build.sh
57 I'd like to avoid bloating the images with the Portage tree, but
58 without ugly hacks [that is not currently possible][3156].
60 [Docker]: http://www.docker.io/
61 [Dockerfiles]: http://www.docker.io/learn/dockerfile/
62 [Gentoo]: http://www.gentoo.org/
63 [envsubst]: http://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html
64 [parameter-expansion]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
65 [3156]: https://github.com/dotcloud/docker/issues/3156