gentoo-layman: Add a layman container for easy overlay Dockerfiles
authorW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 17:48:38 +0000 (09:48 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 17:48:38 +0000 (09:48 -0800)
README.md
build.sh
gentoo-layman/Dockerfile.template [new file with mode: 0644]

index d7984d0f1091153e7bc16ee439184f46c2bd6270..0a4ad892eaea41ba9340a6d92b6354a2b39c3b1a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ The dependency graph is:
             `-- gentoo-syslog  (adds syslog-ng and associates)
                 |-- buildbot  (adds a Buildbot master and slave)
                 |-- docker-registry  (adds a Docker registry server)
             `-- 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)
                 |-- memcached  (adds Memcached)
                 |-- nginx  (adds Nginx)
                 |   |-- nginx-proxy  (SSL/TLS proxying via SNI)
                 |-- memcached  (adds Memcached)
                 |-- nginx  (adds Nginx)
                 |   |-- nginx-proxy  (SSL/TLS proxying via SNI)
index f52c44b3af9f901dde3f678bb2ceed2560be3bf0..df185eee863533577a3542e4ebfcb3186f631d94 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -46,6 +46,7 @@ REPOS="${REPOS:-
        gentoo-en-us
        gentoo-syslog
        gentoo-java
        gentoo-en-us
        gentoo-syslog
        gentoo-java
+       gentoo-layman
        buildbot
        docker-registry
        elasticsearch
        buildbot
        docker-registry
        elasticsearch
diff --git a/gentoo-layman/Dockerfile.template b/gentoo-layman/Dockerfile.template
new file mode 100644 (file)
index 0000000..2f15cc0
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright (C) 2014 W. Trevor King <wking@tremily.us>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright notice, this
+# list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+FROM ${NAMESPACE}/gentoo-syslog:${TAG}
+MAINTAINER ${MAINTAINER}
+#VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"]
+RUN emerge -v layman
+RUN eselect news read new
+RUN echo 'source /var/lib/layman/make.conf' >> /etc/portage/make.conf
+RUN layman --fetch