Skip to contentSkip to conversation

container-image-busybox: add a reference container image

PATCH In review Chen Qi 4 participants 8 messages Jul 24, 2019 – Jul 25, 2019

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 container-image-busybox: add a reference container image

Add a small busybox based container image.

---
 meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/recipes-core/images/container-image-busybox.bb
meta/recipes-core/images/container-image-busybox.bb new file +8 -0
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
Signature · 1 line
2.17.1
#1 lore raw
Quoted 2 lines · Chen Qi

Add a small busybox based container image.

This really isn't a great container reference image. It isn't manipulating many of
the things that you should be in a container image (linux-dummy, etc).

Have you seen the reference images that have either been presented at the various ELC conferences and/or the ones that are in meta-virtualization ? Or the ones from Togan labs, meta-overc, etc ?

IMHO, It would be better to collaborate on this in a non-core layer for this release and
then consolidate things with the OCI image types, and when we sort out if/what/when
makes sense from meta-virt into oe-core.

This is a topic of many opinions and different implementations and deserves some cycles spent on documenting the choices, what we expect the base image to do, etc.

Cheers,

Bruce

Quoted 29 lines
---
 meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/recipes-core/images/container-image-busybox.bb
meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#2 lore raw
Quoted 13 lines · Bruce Ashfield
Quoted 2 lines · Chen Qi

Add a small busybox based container image.

This really isn't a great container reference image. It isn't manipulating many of
the things that you should be in a container image (linux-dummy, etc).

Have you seen the reference images that have either been presented at the various ELC conferences and/or the ones that are in meta-virtualization ? Or the ones from Togan labs, meta-overc, etc ?

Quoted 5 lines

IMHO, It would be better to collaborate on this in a non-core layer for this release and
then consolidate things with the OCI image types, and when we sort out if/what/when
makes sense from meta-virt into oe-core.

I think this is very much suitable for OE-Core, and I would like us to have container reference image
in core, however, I agree there is prework that should be includes from prior work in other layers and
we should consolidate all that into a reference usable image in oe-core.

Quoted 50 lines

This is a topic of many opinions and different implementations and deserves some cycles spent on documenting the choices, what we expect the base image to do, etc.

Cheers,

Bruce

Quoted 24 lines
---
 meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/recipes-core/images/container-image-busybox.bb
meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
--
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 21 lines · Khem Raj
Quoted 13 lines · Bruce Ashfield
Quoted 2 lines · Chen Qi

Add a small busybox based container image.

This really isn't a great container reference image. It isn't manipulating many of
the things that you should be in a container image (linux-dummy, etc).

Have you seen the reference images that have either been presented at the various ELC conferences and/or the ones that are in meta-virtualization ? Or the ones from Togan labs, meta-overc, etc ?

Quoted 5 lines

IMHO, It would be better to collaborate on this in a non-core layer for this release and
then consolidate things with the OCI image types, and when we sort out if/what/when
makes sense from meta-virt into oe-core.

Quoted 5 lines

I think this is very much suitable for OE-Core, and I would like us to have container reference image
in core, however, I agree there is prework that should be includes from prior work in other layers and
we should consolidate all that into a reference usable image in oe-core.

I definitely agree on that something belongs in oe-core, and yes, 100% agreed that we shouldn't do this ad-hoc and should at a minimum have documentation and some consolidated images / use cases from the existing layers with container image types.

Cheers,

Bruce

Quoted 51 lines
Quoted 51 lines

This is a topic of many opinions and different implementations and deserves some cycles spent on documenting the choices, what we expect the base image to do, etc.

Cheers,

Bruce

Quoted 24 lines
---
 meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/recipes-core/images/container-image-busybox.bb
meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
--
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#4 lore raw
In reply to Chen Qi

Are you aware of container-test-image.bb? Curious what the point of this is.

Ross

Quoted 31 lines · Chen Qi

Add a small busybox based container image.

---
 meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/recipes-core/images/container-image-busybox.bb
meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#5 lore raw
Quoted 3 lines · Ross

Are you aware of container-test-image.bb? Curious what the point of this is.

Ross

Yes. It exists in meta-selftest, having an empty /usr/bin/theapp, for the purpose of selftest.

I think we could have some reference image for container. So I added this small reference image, from which users could create container and use shell.

I expect it to be like busybox:glibc or busybox:musl in Docker Hub, with the major difference that we use symlinks to /bin/busybox.nosuid and /bin/busybox.suid while official ones use separate binaries.

Regards,
Chen Qi

Quoted 31 lines · Chen Qi
Quoted 30 lines

Add a small busybox based container image.

---
  meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
  1 file changed, 8 insertions(+)

create mode 100644 meta/recipes-core/images/container-image-busybox.bb

meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw
Quoted 4 lines · ChenQi
Quoted 2 lines · Ross

Are you aware of container-test-image.bb? Curious what the point of this is.

Quoted 9 lines
Quoted 1 line

Ross

Yes. It exists in meta-selftest, having an empty /usr/bin/theapp, for the purpose of selftest.

I think we could have some reference image for container. So I added this small reference image, from which users could create container and use shell.

And you do realize that such references already exist in several other layers ? So it would be best to do a study of those options, talk to the interested folks and then we can propose something to oe-core.

Quoted 3 lines

I expect it to be like busybox:glibc or busybox:musl in Docker Hub, with the major difference that we use symlinks to /bin/busybox.nosuid and /bin/busybox.suid while official ones use separate binaries.

Have a look at the ELCe presentations from 2018, this has been covered in great detail at those events.

We can't just drop an image into core without documentation, examples, test cases, etc. That's what I'm talking about as points of collaboration.

Cheers,

Bruce

Quoted 42 lines

Regards,
Chen Qi

Quoted 26 lines · Chen Qi
Quoted 25 lines

Add a small busybox based container image.

---
  meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
  1 file changed, 8 insertions(+)

create mode 100644 meta/recipes-core/images/container-image-busybox.bb

meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
author
#7 lore raw
Quoted 22 lines · Bruce Ashfield
Quoted 11 lines · ChenQi
Quoted 3 lines · Ross

Are you aware of container-test-image.bb? Curious what the point of this is.

Ross

Yes. It exists in meta-selftest, having an empty /usr/bin/theapp, for the purpose of selftest.

I think we could have some reference image for container. So I added this small reference image, from which users could create container and use shell.

And you do realize that such references already exist in several other layers ? So it would be best to do a study of those options, talk to the interested folks and then we can propose something to oe-core.

Quoted 3 lines

I expect it to be like busybox:glibc or busybox:musl in Docker Hub, with the major difference that we use symlinks to /bin/busybox.nosuid and /bin/busybox.suid while official ones use separate binaries.

Have a look at the ELCe presentations from 2018, this has been covered in great detail at those events.

Quoted 6 lines

We can't just drop an image into core without documentation, examples, test cases, etc. That's what I'm talking about as points of collaboration.

Cheers,

Bruce

Hi Bruce,

Thanks for your info and advice.
I'll do more investigation.

Regards,
Chen Qi

Quoted 42 lines
Quoted 40 lines

Regards,
Chen Qi

Quoted 26 lines · Chen Qi
Quoted 25 lines

Add a small busybox based container image.

---
   meta/recipes-core/images/container-image-busybox.bb | 8 ++++++++
   1 file changed, 8 insertions(+)

create mode 100644 meta/recipes-core/images/container-image-busybox.bb

meta/recipes-core/images/container-image-busybox.bb new file +8 -1
new file mode 100644
index 0000000000..a4d63b0eea
@@ -0,0 +1,8 @@
+SUMMARY = "A small busybox based container image."
+LICENSE = "MIT"
+
+IMAGE_INSTALL = "busybox"
+IMAGE_LINGUAS = ""
+IMAGE_FSTYPES = "container"
+
+inherit core-image
--

2.17.1

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core