Skip to contentSkip to conversation

Updates for runc & associated tools

PATCH In review Paul Barker 2 participants 8 messages Apr 3, 2017 – Apr 10, 2017

lore
Share & tools
lore
#0 lore raw

cover Updates for runc & associated tools

I've finally got back to playing around with runc and associated tools :)

These patches have been tested on a raspberrypi3 and allow successful creation of a guest container using runc, netns and cgroup-lite.

Paul Barker (4):
netns: Update to latest HEAD
runc-opencontainers: Update to v1.0.0-rc3
runc-opencontainers: Drop unnecessary branch spec from SRC_URI
cgroup-lite: Inherit allarch

 recipes-containers/cgroup-lite/cgroup-lite_1.11.bb |  1 +
 recipes-containers/runc/runc-opencontainers_git.bb | 14 ++++++++++----
 recipes-networking/netns/netns_git.bb              |  8 ++++----
 3 files changed, 15 insertions(+), 8 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/4 netns: Update to latest HEAD

There have been a couple of fixes and new features upstream, let's bring them in. The upstream URL has also changed slightly.

---
 recipes-networking/netns/netns_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-networking/netns/netns_git.bb +4 -4
index 470dfac..f41ff70 100644
@@ -3,8 +3,8 @@ SUMMARY = "Runc hook for setting up default bridge networking."
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1"
 
-SRC_URI = "git://github.com/jfrazelle/netns;branch=master"
-SRCREV = "2804050eeab661bfa75c3aa06bdcf60273b02ca7"
+SRC_URI = "git://github.com/jessfraz/netns;branch=master"
+SRCREV = "85b1ab9fcccbaa404a2636b52a48bbde02437cf7"
 PV = "0.1.0+git${SRCPV}"
 
 S = "${WORKDIR}/git"
@@ -23,8 +23,8 @@ do_compile() {
 	# We also need to link in the ipallocator directory as that is not under
 	# a src directory.
 	ln -sfn . "${S}/vendor/src"
-	mkdir -p "${S}/vendor/src/github.com/jfrazelle/netns"
-	ln -sfn "${S}/ipallocator" "${S}/vendor/src/github.com/jfrazelle/netns/ipallocator"
+	mkdir -p "${S}/vendor/src/github.com/jessfraz/netns"
+	ln -sfn "${S}/ipallocator" "${S}/vendor/src/github.com/jessfraz/netns/ipallocator"
 	export GOPATH="${S}/vendor"
 
 	# Pass the needed cflags/ldflags so that cgo
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/4 runc-opencontainers: Update to v1.0.0-rc3

In reply to Paul Barker

From: Paul Barker <[email protected]>

---
 recipes-containers/runc/runc-opencontainers_git.bb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
recipes-containers/runc/runc-opencontainers_git.bb +9 -2
index a302d4b..4a6e8cd 100644
@@ -1,8 +1,15 @@
 include runc.inc
 
-SRCREV = "1cdaa709f151b61cee2bdaa09d8e5d2b58a8ba72"
+SRCREV = "75f8da7c889acc4509a0cf6f0d3a8f9584778375"
 SRC_URI = "git://github.com/opencontainers/runc;branch=master \
           "
-RUNC_VERSION = "1.0.0-rc1"
+RUNC_VERSION = "1.0.0-rc3"
 PROVIDES += "virtual/runc"
 RPROVIDES_${PN} = "virtual/runc"
+
+do_compile_prepend() {
+	# Go looks in a src directory under any directory in GOPATH but
+	# runc-opencontainers uses 'vendor' instead of 'vendor/src'. We can fix
+	# this with a symlink.
+	ln -sfn . "${S}/vendor/src"
+}
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/4 runc-opencontainers: Drop unnecessary branch spec from SRC_URI

In reply to Paul Barker

From: Paul Barker <[email protected]>

---
 recipes-containers/runc/runc-opencontainers_git.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-containers/runc/runc-opencontainers_git.bb +1 -2
index 4a6e8cd..139e3bd 100644
@@ -1,8 +1,7 @@
 include runc.inc
 
 SRCREV = "75f8da7c889acc4509a0cf6f0d3a8f9584778375"
-SRC_URI = "git://github.com/opencontainers/runc;branch=master \
-          "
+SRC_URI = "git://github.com/opencontainers/runc"
 RUNC_VERSION = "1.0.0-rc3"
 PROVIDES += "virtual/runc"
 RPROVIDES_${PN} = "virtual/runc"
Signature · 1 line
2.11.0
#4 lore raw

Re: [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI

unnecessary, but I prefer it. since we are not always on master for this recipe.

I'll test the rest of the series, but I'll pass on this patch.

Bruce

Quoted 31 lines · Paul Barker

From: Paul Barker <[email protected]>

---
 recipes-containers/runc/runc-opencontainers_git.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-containers/runc/runc-opencontainers_git.bb +1 -3
index 4a6e8cd..139e3bd 100644
@@ -1,8 +1,7 @@
 include runc.inc
 
 SRCREV = "75f8da7c889acc4509a0cf6f0d3a8f9584778375"
-SRC_URI = "git://github.com/opencontainers/runc;branch=master \
-          "
+SRC_URI = "git://github.com/opencontainers/runc"
 RUNC_VERSION = "1.0.0-rc3"
 PROVIDES += "virtual/runc"
 RPROVIDES_${PN} = "virtual/runc"
--

2.11.0

--
_______________________________________________
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"
#5 lore raw

Re: [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI

Quoted 7 lines · On Mon, 3 Apr 2017 07:11:37 -0400 Bruce Ashfield <[email protected]>…

unnecessary, but I prefer it. since we are not always on master for this recipe.

I'll test the rest of the series, but I'll pass on this patch.

Bruce

No problem, it's an aesthetic thing.

I'm not sure why git has mixed up two different author email addresses in these patches. I've probably missed something whilst moving things over to the new email address.

Cheers,
Paul

#6 lore raw

PATCH 4/4 cgroup-lite: Inherit allarch

In reply to Paul Barker

This recipe just installs a pair of shell scripts.

---
 recipes-containers/cgroup-lite/cgroup-lite_1.11.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/cgroup-lite/cgroup-lite_1.11.bb +1 -0
index b3af6f4..065d0ea 100644
@@ -9,6 +9,7 @@ SRC_URI += "file://cgroups-init"
 SRC_URI[md5sum] = "b20976194ee8fdb61e6b55281fb6ead4"
 SRC_URI[sha256sum] = "a79ab9ae6fb3ff3ce0aa5539b055c0379eaffdc6c5f003af4010fcea683c1a45"
 
+inherit allarch
 inherit update-rc.d
 
 INITSCRIPT_NAME = "cgroups-init"
Signature · 1 line
2.11.0
#7 lore raw
In reply to Paul Barker

Sorry for the delay, I was traveling and didn't get a chance to test these until
now.

Everything worked and I've merged all but the branch spec patch

Bruce

Quoted 26 lines · Paul Barker

I've finally got back to playing around with runc and associated tools :)

These patches have been tested on a raspberrypi3 and allow successful creation
of a guest container using runc, netns and cgroup-lite.

Paul Barker (4):
netns: Update to latest HEAD
runc-opencontainers: Update to v1.0.0-rc3
runc-opencontainers: Drop unnecessary branch spec from SRC_URI
cgroup-lite: Inherit allarch

 recipes-containers/cgroup-lite/cgroup-lite_1.11.bb |  1 +
 recipes-containers/runc/runc-opencontainers_git.bb | 14 ++++++++++----
 recipes-networking/netns/netns_git.bb              |  8 ++++----
 3 files changed, 15 insertions(+), 8 deletions(-)

--
2.11.0

--
_______________________________________________
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"