All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Updates for runc & associated tools
@ 2017-04-03 10:27 Paul Barker
  2017-04-03 10:27 ` [PATCH 1/4] netns: Update to latest HEAD Paul Barker
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Paul Barker @ 2017-04-03 10:27 UTC (permalink / raw)
  To: meta-virtualization

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/4] netns: Update to latest HEAD
  2017-04-03 10:27 [PATCH 0/4] Updates for runc & associated tools Paul Barker
@ 2017-04-03 10:27 ` Paul Barker
  2017-04-03 10:27 ` [PATCH 2/4] runc-opencontainers: Update to v1.0.0-rc3 Paul Barker
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Paul Barker @ 2017-04-03 10:27 UTC (permalink / raw)
  To: meta-virtualization

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

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
---
 recipes-networking/netns/netns_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb
index 470dfac..f41ff70 100644
--- a/recipes-networking/netns/netns_git.bb
+++ b/recipes-networking/netns/netns_git.bb
@@ -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
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/4] runc-opencontainers: Update to v1.0.0-rc3
  2017-04-03 10:27 [PATCH 0/4] Updates for runc & associated tools Paul Barker
  2017-04-03 10:27 ` [PATCH 1/4] netns: Update to latest HEAD Paul Barker
@ 2017-04-03 10:27 ` Paul Barker
  2017-04-03 10:27 ` [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI Paul Barker
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Paul Barker @ 2017-04-03 10:27 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Paul Barker

From: Paul Barker <paul@paulbarker.me.uk>

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
---
 recipes-containers/runc/runc-opencontainers_git.bb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb
index a302d4b..4a6e8cd 100644
--- a/recipes-containers/runc/runc-opencontainers_git.bb
+++ b/recipes-containers/runc/runc-opencontainers_git.bb
@@ -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"
+}
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI
  2017-04-03 10:27 [PATCH 0/4] Updates for runc & associated tools Paul Barker
  2017-04-03 10:27 ` [PATCH 1/4] netns: Update to latest HEAD Paul Barker
  2017-04-03 10:27 ` [PATCH 2/4] runc-opencontainers: Update to v1.0.0-rc3 Paul Barker
@ 2017-04-03 10:27 ` Paul Barker
  2017-04-03 11:11   ` Bruce Ashfield
  2017-04-03 10:27 ` [PATCH 4/4] cgroup-lite: Inherit allarch Paul Barker
  2017-04-10 12:48 ` [PATCH 0/4] Updates for runc & associated tools Bruce Ashfield
  4 siblings, 1 reply; 8+ messages in thread
From: Paul Barker @ 2017-04-03 10:27 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Paul Barker

From: Paul Barker <paul@paulbarker.me.uk>

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
---
 recipes-containers/runc/runc-opencontainers_git.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb
index 4a6e8cd..139e3bd 100644
--- a/recipes-containers/runc/runc-opencontainers_git.bb
+++ b/recipes-containers/runc/runc-opencontainers_git.bb
@@ -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



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/4] cgroup-lite: Inherit allarch
  2017-04-03 10:27 [PATCH 0/4] Updates for runc & associated tools Paul Barker
                   ` (2 preceding siblings ...)
  2017-04-03 10:27 ` [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI Paul Barker
@ 2017-04-03 10:27 ` Paul Barker
  2017-04-10 12:48 ` [PATCH 0/4] Updates for runc & associated tools Bruce Ashfield
  4 siblings, 0 replies; 8+ messages in thread
From: Paul Barker @ 2017-04-03 10:27 UTC (permalink / raw)
  To: meta-virtualization

This recipe just installs a pair of shell scripts.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
---
 recipes-containers/cgroup-lite/cgroup-lite_1.11.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-containers/cgroup-lite/cgroup-lite_1.11.bb b/recipes-containers/cgroup-lite/cgroup-lite_1.11.bb
index b3af6f4..065d0ea 100644
--- a/recipes-containers/cgroup-lite/cgroup-lite_1.11.bb
+++ b/recipes-containers/cgroup-lite/cgroup-lite_1.11.bb
@@ -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"
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI
  2017-04-03 10:27 ` [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI Paul Barker
@ 2017-04-03 11:11   ` Bruce Ashfield
  2017-04-03 11:34     ` Paul Barker
  0 siblings, 1 reply; 8+ messages in thread
From: Bruce Ashfield @ 2017-04-03 11:11 UTC (permalink / raw)
  To: Paul Barker; +Cc: Paul Barker, meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]

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

On Mon, Apr 3, 2017 at 6:27 AM, Paul Barker <pbarker@toganlabs.com> wrote:

> From: Paul Barker <paul@paulbarker.me.uk>
>
> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
> ---
>  recipes-containers/runc/runc-opencontainers_git.bb | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/recipes-containers/runc/runc-opencontainers_git.bb
> b/recipes-containers/runc/runc-opencontainers_git.bb
> index 4a6e8cd..139e3bd 100644
> --- a/recipes-containers/runc/runc-opencontainers_git.bb
> +++ b/recipes-containers/runc/runc-opencontainers_git.bb
> @@ -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
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 2960 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI
  2017-04-03 11:11   ` Bruce Ashfield
@ 2017-04-03 11:34     ` Paul Barker
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Barker @ 2017-04-03 11:34 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: meta-virtualization

On Mon, 3 Apr 2017 07:11:37 -0400
Bruce Ashfield <bruce.ashfield@gmail.com> wrote:

> 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] Updates for runc & associated tools
  2017-04-03 10:27 [PATCH 0/4] Updates for runc & associated tools Paul Barker
                   ` (3 preceding siblings ...)
  2017-04-03 10:27 ` [PATCH 4/4] cgroup-lite: Inherit allarch Paul Barker
@ 2017-04-10 12:48 ` Bruce Ashfield
  4 siblings, 0 replies; 8+ messages in thread
From: Bruce Ashfield @ 2017-04-10 12:48 UTC (permalink / raw)
  To: Paul Barker; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]

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

On Mon, Apr 3, 2017 at 6:27 AM, Paul Barker <pbarker@toganlabs.com> wrote:

> 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
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 2299 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-10 12:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 10:27 [PATCH 0/4] Updates for runc & associated tools Paul Barker
2017-04-03 10:27 ` [PATCH 1/4] netns: Update to latest HEAD Paul Barker
2017-04-03 10:27 ` [PATCH 2/4] runc-opencontainers: Update to v1.0.0-rc3 Paul Barker
2017-04-03 10:27 ` [PATCH 3/4] runc-opencontainers: Drop unnecessary branch spec from SRC_URI Paul Barker
2017-04-03 11:11   ` Bruce Ashfield
2017-04-03 11:34     ` Paul Barker
2017-04-03 10:27 ` [PATCH 4/4] cgroup-lite: Inherit allarch Paul Barker
2017-04-10 12:48 ` [PATCH 0/4] Updates for runc & associated tools Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.