summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker/docker-ce_git.bb
diff options
context:
space:
mode:
authorMatt Spencer <matthew@thespencers.me.uk>2019-08-28 17:23:36 +0100
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-09-24 20:36:00 -0400
commit150f1857bba2df9dc4b78f08bd93603a18192b0a (patch)
treef4f0bfda9c3c8cbdd58164c4eaf06c1b29990b14 /recipes-containers/docker/docker-ce_git.bb
parent7e2c4151c53463140bcb8f6bc5b2b27cbbf6dff8 (diff)
downloadmeta-virtualization-150f1857bba2df9dc4b78f08bd93603a18192b0a.tar.gz
docker: add transient configuration packageconfig
Since commit: [ Author: Tom Rini <trini@konsulko.com> Date: Fri Feb 8 13:22:35 2019 -0500 docker: Move /etc/docker to a symlink to volatiles The only thing which docker uses /etc/docker for is a TLS key for connecting with other TLS-enabled services. Make /etc/docker a symlink to the existing docker volatiles directory so that we can use docker on a read-only rootfs. Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> ] We've had a transient / volatile docker configuration since we point our /etc configuration to /run. This is not always a good thing if a static configuration for keys, etc, is desired. We maintain this functionality under the 'transient-config' PACKAGECONFIG, and also allow the existing static/permanent config to be used. Signed-off-by: Matt Spencer <matthew@thespencers.me.uk> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/docker/docker-ce_git.bb')
-rw-r--r--recipes-containers/docker/docker-ce_git.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-containers/docker/docker-ce_git.bb b/recipes-containers/docker/docker-ce_git.bb
index 52b146d2..817795f0 100644
--- a/recipes-containers/docker/docker-ce_git.bb
+++ b/recipes-containers/docker/docker-ce_git.bb
@@ -112,8 +112,12 @@ do_install() {
112 install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init 112 install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
113 fi 113 fi
114 # TLS key that docker creates at run-time if not found is what resides here 114 # TLS key that docker creates at run-time if not found is what resides here
115 install -d ${D}${sysconfdir} 115 if ${@bb.utils.contains('PACKAGECONFIG','transient-config','true','false',d)}; then
116 ln -s ..${localstatedir}/run/docker ${D}${sysconfdir}/docker 116 install -d ${D}${sysconfdir}
117 ln -s ..${localstatedir}/run/docker ${D}${sysconfdir}/docker
118 else
119 install -d ${D}${sysconfdir}/docker
120 fi
117 121
118 mkdir -p ${D}${datadir}/docker/ 122 mkdir -p ${D}${datadir}/docker/
119 install -m 0755 ${S}/src/import/components/engine/contrib/check-config.sh ${D}${datadir}/docker/ 123 install -m 0755 ${S}/src/import/components/engine/contrib/check-config.sh ${D}${datadir}/docker/