Skip to contentSkip to conversation

docker: install script config-check.sh

PATCH Superseded Stefan Lengfeld 2 participants 4 messages Oct 31, 2016 – Nov 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: install script config-check.sh

The script /usr/share/docker/config-check.sh is very useful to test all kernel requirements for docker. A lot of embedded boards will use a custom kernel config that does not have all kernel features enabled by default. Install the script so kernel developer can easily enable the missing features.

---
 recipes-containers/docker/docker_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/docker/docker_git.bb +1 -0
index 4be5e47..39852ad 100644
@@ -126,6 +126,7 @@ do_install() {
 
 	mkdir -p ${D}/usr/share/docker/
 	cp ${WORKDIR}/hi.Dockerfile ${D}/usr/share/docker/
+	install -m 0755 ${S}/contrib/check-config.sh ${D}/usr/share/docker/
 }
 
 inherit useradd
Signature · 1 line
1.9.1
#1 lore raw
Quoted 17 lines · Stefan Lengfeld

The script /usr/share/docker/config-check.sh is very useful to test all kernel requirements for docker. A lot of embedded boards will use a custom kernel config that does not have all kernel features enabled by default. Install the script so kernel developer can easily enable the missing features.

---
 recipes-containers/docker/docker_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/docker/docker_git.bb +0 -0
index 4be5e47..39852ad 100644

recipes-containers/docker/docker_git.bb do_install() { · line 130

Quoted 5 lines
recipes-containers/docker/docker_git.bb +1 -0
@@ -126,6 +126,7 @@ do_install() {
 
        mkdir -p ${D}/usr/share/docker/
        cp ${WORKDIR}/hi.Dockerfile ${D}/usr/share/docker/
+       install -m 0755 ${S}/contrib/check-config.sh ${D}/usr/share/docker/
 

This depends on bash, which isn't currently in the RDEPENDS. Which is why I had
never bothered to add it.

I'd prefer this be packaged into a docker-utils, or docker-contrib, where we can add
the RDEPENDS and let folks decide whether they want it installed (or not) at the
package level.

Cheers,

Bruce

Quoted 12 lines
recipes-containers/docker/docker_git.bb +0 -0
 }
 

inherit useradd
--
1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#2 lore raw

PATCH v2 1/1 docker: install script config-check.sh

The script /usr/share/docker/config-check.sh is very useful to test all kernel requirements for docker. A lot of embedded boards will use a custom kernel config that does not have all kernel features enabled by default. Install the script so kernel developer can easily enable the missing features.

---
v2: put script into additional package 'docker-contrib'
v2: add package dependency to bash

---
 recipes-containers/docker/docker_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
recipes-containers/docker/docker_git.bb +6 -0
index 42a336e..cd9a69a 100644
@@ -54,6 +54,8 @@ DEPENDS = "go-cross \
     go-distribution-digest \
     "
 
+PACKAGES =+ "${PN}-contrib"
+
 DEPENDS_append_class-target = "lvm2"
 RDEPENDS_${PN} = "curl aufs-util git cgroup-lite util-linux iptables"
 RRECOMMENDS_${PN} = "lxc docker-registry rt-tests"
@@ -125,6 +127,7 @@ do_install() {
 
 	mkdir -p ${D}/usr/share/docker/
 	cp ${WORKDIR}/hi.Dockerfile ${D}/usr/share/docker/
+	install -m 0755 ${S}/contrib/check-config.sh ${D}/usr/share/docker/
 }
 
 inherit useradd
@@ -133,6 +136,9 @@ GROUPADD_PARAM_${PN} = "-r docker"
 
 FILES_${PN} += "/lib/systemd/system/*"
 
+FILES_${PN}-contrib += "/usr/share/docker/check-config.sh"
+RDEPENDS_${PN}-contrib += "bash"
+
 # DO NOT STRIP docker and dockerinit!!!
 #
 # Reason:
Signature · 1 line
1.9.1
#3 lore raw
Quoted 6 lines · Stefan Lengfeld

The script /usr/share/docker/config-check.sh is very useful to test all kernel requirements for docker. A lot of embedded boards will use a custom kernel config that does not have all kernel features enabled by default. Install the script so kernel developer can easily enable the missing features.

Merged.

Bruce

Quoted 50 lines

---
v2: put script into additional package 'docker-contrib'
v2: add package dependency to bash

---
 recipes-containers/docker/docker_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
recipes-containers/docker/docker_git.bb +6 -1
index 42a336e..cd9a69a 100644
@@ -54,6 +54,8 @@ DEPENDS = "go-cross \
     go-distribution-digest \
     "
 
+PACKAGES =+ "${PN}-contrib"
+
 DEPENDS_append_class-target = "lvm2"
 RDEPENDS_${PN} = "curl aufs-util git cgroup-lite util-linux iptables"
 RRECOMMENDS_${PN} = "lxc docker-registry rt-tests"
@@ -125,6 +127,7 @@ do_install() {
 
        mkdir -p ${D}/usr/share/docker/
        cp ${WORKDIR}/hi.Dockerfile ${D}/usr/share/docker/
+       install -m 0755 ${S}/contrib/check-config.sh ${D}/usr/share/docker/
 }
 
 inherit useradd
@@ -133,6 +136,9 @@ GROUPADD_PARAM_${PN} = "-r docker"
 
 FILES_${PN} += "/lib/systemd/system/*"
 
+FILES_${PN}-contrib += "/usr/share/docker/check-config.sh"
+RDEPENDS_${PN}-contrib += "bash"
+
 # DO NOT STRIP docker and dockerinit!!!
 #
 # Reason:
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"