mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-12-14 14:15:22 +01:00
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>
This commit is contained in:
parent
7e2c4151c5
commit
150f1857bb
|
|
@ -112,8 +112,12 @@ do_install() {
|
|||
install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
|
||||
fi
|
||||
# TLS key that docker creates at run-time if not found is what resides here
|
||||
install -d ${D}${sysconfdir}
|
||||
ln -s ..${localstatedir}/run/docker ${D}${sysconfdir}/docker
|
||||
if ${@bb.utils.contains('PACKAGECONFIG','transient-config','true','false',d)}; then
|
||||
install -d ${D}${sysconfdir}
|
||||
ln -s ..${localstatedir}/run/docker ${D}${sysconfdir}/docker
|
||||
else
|
||||
install -d ${D}${sysconfdir}/docker
|
||||
fi
|
||||
|
||||
mkdir -p ${D}${datadir}/docker/
|
||||
install -m 0755 ${S}/src/import/components/engine/contrib/check-config.sh ${D}${datadir}/docker/
|
||||
|
|
|
|||
|
|
@ -132,8 +132,12 @@ do_install() {
|
|||
install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
|
||||
fi
|
||||
# TLS key that docker creates at run-time if not found is what resides here
|
||||
install -d ${D}${sysconfdir}
|
||||
ln -s ..${localstatedir}/run/docker ${D}${sysconfdir}/docker
|
||||
if ${@bb.utils.contains('PACKAGECONFIG','transient-config','true','false',d)}; then
|
||||
install -d ${D}${sysconfdir}
|
||||
ln -s ..${localstatedir}/run/docker ${D}${sysconfdir}/docker
|
||||
else
|
||||
install -d ${D}${sysconfdir}/docker
|
||||
fi
|
||||
|
||||
mkdir -p ${D}${datadir}/docker/
|
||||
install -m 0755 ${S}/src/import/contrib/check-config.sh ${D}${datadir}/docker/
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ inherit pkgconfig
|
|||
PACKAGECONFIG ??= "docker-init"
|
||||
PACKAGECONFIG[seccomp] = "seccomp,,libseccomp"
|
||||
PACKAGECONFIG[docker-init] = ",,,docker-init"
|
||||
PACKAGECONFIG[transient-config] = "transient-config"
|
||||
|
||||
inherit systemd update-rc.d
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user