Skip to contentSkip to conversation

buildah: add recipe for buildah v1.26

PATCH In review Sakib Sajal 3 participants 8 messages May 25, 2022 – Jun 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 buildah: add recipe for buildah v1.26

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

   $ . oe-init-build-env <build_dir>

Add to local.conf:
IMAGE_INSTALL:append = " buildah kernel-modules"

   KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
                       features/netfilter/netfilter.scc  \
                       features/lxc/lxc-enable.scc"

IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

   $ bitbake core-image-minimal

Run the image:

   $ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Save the changes to an image

Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

---
 recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 recipes-containers/buildah/buildah_git.bb
recipes-containers/buildah/buildah_git.bb new file +57 -0
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+    git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+    "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+    cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+        export TMPDIR="${GOTMPDIR}"
+        if [ -n "${GO_INSTALL}" ]; then
+                if [ -n "${GO_LINKSHARED}" ]; then
+                        ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+                        ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                        ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+                        rm -rf ${B}/bin
+                fi
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+        fi
+}
+
+do_install:append() {
+    dest_dir=${D}/${sysconfdir}/containers
+    mkdir -p ${dest_dir}
+    install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+    install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
Signature · 1 line
2.33.0
#1 lore raw
Quoted 49 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

   $ . oe-init-build-env <build_dir>

Add to local.conf:

   IMAGE_INSTALL:append = " buildah kernel-modules"
   KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
                       features/netfilter/netfilter.scc  \
                       features/lxc/lxc-enable.scc"
   IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

   $ bitbake core-image-minimal

Run the image:

   $ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Quoted 8 lines

Save the changes to an image

Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power outages here in Ottawa, I'm running way behind in my patch processing.

Bruce

Quoted 82 lines
---
 recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 recipes-containers/buildah/buildah_git.bb
recipes-containers/buildah/buildah_git.bb new file +57 -1
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+    git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+    "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+    cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+        export TMPDIR="${GOTMPDIR}"
+        if [ -n "${GO_INSTALL}" ]; then
+                if [ -n "${GO_LINKSHARED}" ]; then
+                        ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+                        ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                        ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+                        rm -rf ${B}/bin
+                fi
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+        fi
+}
+
+do_install:append() {
+    dest_dir=${D}/${sysconfdir}/containers
+    mkdir -p ${dest_dir}
+    install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+    install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
--

2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7324): https://lists.yoctoproject.org/g/meta-virtualization/message/7324
Mute This Topic: https://lists.yoctoproject.org/mt/91344690/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

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 57 lines · Bruce Ashfield

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 54 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

    $ . oe-init-build-env <build_dir>

Add to local.conf:

    IMAGE_INSTALL:append = " buildah kernel-modules"
    KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
                        features/netfilter/netfilter.scc  \
                        features/lxc/lxc-enable.scc"
    IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

    $ bitbake core-image-minimal

Run the image:

    $ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Save the changes to an image

Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Quoted 6 lines
Quoted 2 lines

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power outages here in Ottawa, I'm running way behind in my patch processing.

Bruce

Thank you for the update, I was about to ping you regarding this.

Sakib

Quoted 87 lines
Quoted 74 lines
---
  recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++
  1 file changed, 57 insertions(+)

create mode 100644 recipes-containers/buildah/buildah_git.bb

recipes-containers/buildah/buildah_git.bb new file +57 -1
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+    git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+    "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+    cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+        export TMPDIR="${GOTMPDIR}"
+        if [ -n "${GO_INSTALL}" ]; then
+                if [ -n "${GO_LINKSHARED}" ]; then
+                        ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+                        ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                        ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+                        rm -rf ${B}/bin
+                fi
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+        fi
+}
+
+do_install:append() {
+    dest_dir=${D}/${sysconfdir}/containers
+    mkdir -p ${dest_dir}
+    install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+    install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
--

2.33.0

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7324): https://lists.yoctoproject.org/g/meta-virtualization/message/7324
Mute This Topic: https://lists.yoctoproject.org/mt/91344690/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

#3 lore raw
Quoted 60 lines · Sakib Sajal
Quoted 57 lines · Bruce Ashfield

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 54 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

    $ . oe-init-build-env <build_dir>

Add to local.conf:

    IMAGE_INSTALL:append = " buildah kernel-modules"
    KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
                        features/netfilter/netfilter.scc  \
                        features/lxc/lxc-enable.scc"
    IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

    $ bitbake core-image-minimal

Run the image:

    $ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Save the changes to an image

Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power outages here in Ottawa, I'm running way behind in my patch processing.

Bruce

Thank you for the update, I was about to ping you regarding this.

I did the easier patches this morning, I'll have a look at this more closely on Wednesday.

Bruce

Quoted 89 lines

Sakib

Quoted 87 lines
Quoted 74 lines
---
  recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++
  1 file changed, 57 insertions(+)

create mode 100644 recipes-containers/buildah/buildah_git.bb

recipes-containers/buildah/buildah_git.bb new file +57 -1
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+    git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+    "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+    cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+        export TMPDIR="${GOTMPDIR}"
+        if [ -n "${GO_INSTALL}" ]; then
+                if [ -n "${GO_LINKSHARED}" ]; then
+                        ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+                        ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                        ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+                        rm -rf ${B}/bin
+                fi
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+        fi
+}
+
+do_install:append() {
+    dest_dir=${D}/${sysconfdir}/containers
+    mkdir -p ${dest_dir}
+    install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+    install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
--

2.33.0

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7324): https://lists.yoctoproject.org/g/meta-virtualization/message/7324
Mute This Topic: https://lists.yoctoproject.org/mt/91344690/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

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

Wow great can we get crio and podman updated now also :)

Quoted 163 lines · Bruce Ashfield
Quoted 60 lines · Sakib Sajal
Quoted 57 lines · Bruce Ashfield

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 54 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

$ . oe-init-build-env <build_dir>

Add to local.conf:
IMAGE_INSTALL:append = " buildah kernel-modules" KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
features/netfilter/netfilter.scc \
features/lxc/lxc-enable.scc" IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

$ bitbake core-image-minimal

Run the image:

$ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Save the changes to an image

Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power outages here in Ottawa, I'm running way behind in my patch processing.

Bruce

Thank you for the update, I was about to ping you regarding this.

I did the easier patches this morning, I'll have a look at this more closely on Wednesday.

Bruce

Quoted 84 lines

Sakib

Quoted 82 lines
Quoted 72 lines

---
recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++

1 file changed, 57 insertions(+)

create mode 100644 recipes-containers/buildah/buildah_git.bb

recipes-containers/buildah/buildah_git.bb new file +57 -1
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
 
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+ git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+ "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+ cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+ export TMPDIR="${GOTMPDIR}"
+ if [ -n "${GO_INSTALL}" ]; then
+ if [ -n "${GO_LINKSHARED}" ]; then
+ ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+ ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+ ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+ rm -rf ${B}/bin
+ fi
+ ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+ ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+ ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+ fi
+}
+
+do_install:append() {
+ dest_dir=${D}/${sysconfdir}/containers
+ mkdir -p ${dest_dir}
+ install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+ install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
--
Quoted 5 lines

2.33.0

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Signature · 1 line
Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
#5 lore raw
Quoted 2 lines · Yocto

Wow great can we get crio and podman updated now also :)

I do see the ":)" at the end of that statement .. but since we have no idea who "yocto@" is .. don't expect a full/proper answer.

If you would have checked master-next, you can see the in progress upgrades, and as stated multiple times on the mailing list, the updates to packages typically completes in the M3 timeframe, since there is significant system level testing that happens, so I don't really do, or take, one off upgrades to many packages.

Bruce

Quoted 193 lines · Bruce Ashfield
Quoted 2 lines

On Tue, Jun 7, 2022 at 9:50 AM Sakib Sajal <[email protected]>

Quoted 55 lines · wrote:
Quoted 55 lines · Bruce Ashfield
Quoted 52 lines

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 49 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

$ . oe-init-build-env <build_dir>

Add to local.conf:
IMAGE_INSTALL:append = " buildah kernel-modules" KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
features/netfilter/netfilter.scc \
features/lxc/lxc-enable.scc" IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

$ bitbake core-image-minimal

Run the image:

$ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Save the changes to an image

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power

outages

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

here in Ottawa, I'm running way behind in my patch processing.

Bruce

Quoted 14 lines
Quoted 2 lines

Thank you for the update, I was about to ping you regarding this.

I did the easier patches this morning, I'll have a look at this more closely on Wednesday.

Bruce

Quoted 6 lines

Sakib

Quoted 4 lines
Quoted 4 lines

---
recipes-containers/buildah/buildah_git.bb | 57

+++++++++++++++++++++++

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines
1 file changed, 57 insertions(+)

create mode 100644 recipes-containers/buildah/buildah_git.bb

(quoted diff) +0 -0

b/recipes-containers/buildah/buildah_git.bb

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-containers/buildah/buildah_git.bb line 3

Quoted 8 lines

new file mode 100644
index 0000000..024e82c

recipes-containers/buildah/buildah_git.bb new file +3 -0
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container

images."

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes-containers/buildah/buildah_git.bb

Quoted 4 lines
recipes-containers/buildah/buildah_git.bb new file +4 -0
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
recipes-containers/buildah/buildah_git.bb new file +11 -0
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-containers/buildah/buildah_git.bb line 28

Quoted 8 lines
recipes-containers/buildah/buildah_git.bb new file +8 -0
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+

git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https
\

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
recipes-containers/buildah/buildah_git.bb new file +13 -0
+ "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+ cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+ export TMPDIR="${GOTMPDIR}"
+ if [ -n "${GO_INSTALL}" ]; then
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-containers/buildah/buildah_git.bb

Quoted 8 lines
recipes-containers/buildah/buildah_git.bb new file +8 -0
+ if [ -n "${GO_LINKSHARED}" ]; then
+ ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+ ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+ ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+ rm -rf ${B}/bin
+ fi
+ ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+ ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS}

./tests/imgtype/imgtype.go

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipes-containers/buildah/buildah_git.bb line 48

Quoted 1 line
recipes-containers/buildah/buildah_git.bb new file +1 -0
+ ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS}

./tests/copy/copy.go

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes-containers/buildah/buildah_git.bb

Quoted 7 lines
recipes-containers/buildah/buildah_git.bb new file +7 -0
+ fi
+}
+
+do_install:append() {
+ dest_dir=${D}/${sysconfdir}/containers
+ mkdir -p ${dest_dir}
+ install -m 666

${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipes-containers/buildah/buildah_git.bb line 56

Quoted 1 line
recipes-containers/buildah/buildah_git.bb new file +1 -0
+ install -m 666

${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
recipes-containers/buildah/buildah_git.bb new file +1 -1
+}
--

2.33.0

--
- Thou shalt not follow the NULL pointer, for chaos and madness

await

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

--
Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7343): https://lists.yoctoproject.org/g/meta-virtualization/message/7343
Mute This Topic: https://lists.yoctoproject.org/mt/91344690/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

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
#6 lore raw
In reply to Sakib Sajal
Quoted 60 lines · Sakib Sajal
Quoted 57 lines · Bruce Ashfield

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 54 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

    $ . oe-init-build-env <build_dir>

Add to local.conf:

    IMAGE_INSTALL:append = " buildah kernel-modules"
    KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
                        features/netfilter/netfilter.scc  \
                        features/lxc/lxc-enable.scc"
    IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

    $ bitbake core-image-minimal

Run the image:

    $ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

Quoted 1 line

cnt=$(buildah from fedora)

Or build from Dockerfile

Quoted 1 line

buildah bud -t <image_name>:<tag> .

Mount the image:

Quoted 1 line

mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

Quoted 1 line

dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:

Quoted 1 line

buildah copy $cnt <local_file> <dest_on_container>

Save the changes to an image

Quoted 1 line

buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:

Quoted 1 line

buildah run $cnt /bin/sh

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Or using docker:

Quoted 1 line

docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power outages here in Ottawa, I'm running way behind in my patch processing.

Bruce

Thank you for the update, I was about to ping you regarding this.

I've been held up with some larger system integration issues for the past week or so, I've got this staged locally and will get it tested and merged as soon as possible.

Bruce

Quoted 90 lines

Sakib

Quoted 87 lines
Quoted 74 lines
---
  recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++
  1 file changed, 57 insertions(+)

create mode 100644 recipes-containers/buildah/buildah_git.bb

recipes-containers/buildah/buildah_git.bb new file +57 -1
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+    git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+    "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+    cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+        export TMPDIR="${GOTMPDIR}"
+        if [ -n "${GO_INSTALL}" ]; then
+                if [ -n "${GO_LINKSHARED}" ]; then
+                        ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+                        ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                        ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+                        rm -rf ${B}/bin
+                fi
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+        fi
+}
+
+do_install:append() {
+    dest_dir=${D}/${sysconfdir}/containers
+    mkdir -p ${dest_dir}
+    install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+    install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
--

2.33.0

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7324): https://lists.yoctoproject.org/g/meta-virtualization/message/7324
Mute This Topic: https://lists.yoctoproject.org/mt/91344690/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

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
#7 lore raw
Quoted 67 lines · Bruce Ashfield

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 64 lines · Sakib Sajal
Quoted 62 lines · Bruce Ashfield

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 48 lines · On Wed, May 25, 2022 at 7:43 PM <[email protected]> wrote:

buildah is a command line tool, to be installed and run on target, that can be used to:
- create a working container, either from scratch or using an image as a starting point
- create an image, either from a working container or via the instructions in a Dockerfile
- images can be built in either the OCI image format or the traditional upstream docker image format
- mount a working container's root filesystem for manipulation
- unmount a working container's root filesystem
- use the updated contents of a container's root filesystem as a filesystem layer to create a new image
- delete a working container or an image
- rename a local container

Testing:
Setup the build directory:

     $ . oe-init-build-env <build_dir>

Add to local.conf:

     IMAGE_INSTALL:append = " buildah kernel-modules"
     KERNEL_FEATURES += "features/overlayfs/overlayfs.cfgi \
                         features/netfilter/netfilter.scc  \
                         features/lxc/lxc-enable.scc"
     IMAGE_ROOTFS_EXTRA_SPACE = "5242880"

Build image:

     $ bitbake core-image-minimal

Run the image:

     $ runqemu nographic kvm qemuparams="-m 4096"

On target:
Pull an image:

     > cnt=$(buildah from fedora)

Or build from Dockerfile
> buildah bud -t <image_name>:<tag> .

Mount the image:

     > mnt=$(buildah mount ${cnt})

Install packages on the container rootfs:

     > dnf install --installroot $mnt <packages_to_install> -y

Copy local files to the container:
> buildah copy $cnt <local_file> <dest_on_container>

Quoted 8 lines

Save the changes to an image

     > buildah commit --format docker $cnt <name>:<tag>

Run the image using buildah:
> buildah run $cnt /bin/sh

Or using docker:
> docker run -it <name>:<tag>

I haven't forgotten about this, just with the storms and power outages here in Ottawa, I'm running way behind in my patch processing.

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

Bruce

Thank you for the update, I was about to ping you regarding this.

I've been held up with some larger system integration issues for the past week or so, I've got this staged locally and will get it tested and merged as soon as possible.

Bruce

Thanks for the update. :)

Quoted 93 lines
Quoted 87 lines

Sakib

Quoted 85 lines
Quoted 73 lines
---
   recipes-containers/buildah/buildah_git.bb | 57 +++++++++++++++++++++++
   1 file changed, 57 insertions(+)

create mode 100644 recipes-containers/buildah/buildah_git.bb

recipes-containers/buildah/buildah_git.bb new file +57 -1
new file mode 100644
index 0000000..024e82c
@@ -0,0 +1,57 @@
+HOMEPAGE = "https://buildah.io"
+SUMMARY = "A tool that facilitates building OCI container images."
+DESCRIPTION = "A tool that facilitates building OCI container images."
+
+# Apache-2.0 for containerd
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/containers/buildah/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+S = "${WORKDIR}/git"
+
+BUILDAH_VERSION = "1.26"
+SRCREV_buildah = "0a9d6e6eaef2e2e7936313d449a4e226022eb865"
+
+PV = "${BUILDAH_VERSION}"
+
+inherit go
+inherit goarch
+inherit pkgconfig
+
+GO_IMPORT = "github.com/containers/buildah"
+GO_INSTALL = "${GO_IMPORT}"
+GO_WORKDIR = "${GO_INSTALL}"
+GOBUILDFLAGS += "-mod vendor"
+
+SRC_URI = " \
+    git://github.com/containers/buildah;branch=release-${BUILDAH_VERSION};name=buildah;protocol=https \
+    "
+
+DEPENDS = "libdevmapper btrfs-tools gpgme"
+RDEPENDS:${PN} = "cgroup-lite fuse-overlayfs libdevmapper podman"
+RDEPENDS:${PN}-dev = "bash perl"
+
+do_compile:prepend() {
+    cd ${S}/src/github.com/containers/buildah
+}
+
+go_do_compile() {
+        export TMPDIR="${GOTMPDIR}"
+        if [ -n "${GO_INSTALL}" ]; then
+                if [ -n "${GO_LINKSHARED}" ]; then
+                        ${GO} install ${GOBUILDFLAGS} ./cmd/buildah
+                        ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                        ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
+                        rm -rf ${B}/bin
+                fi
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./cmd/buildah
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
+                ${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} ./tests/copy/copy.go
+        fi
+}
+
+do_install:append() {
+    dest_dir=${D}/${sysconfdir}/containers
+    mkdir -p ${dest_dir}
+    install -m 666 ${S}/src/github.com/containers/buildah/docs/samples/registries.conf ${dest_dir}/buildah.registries.conf.sample
+    install -m 666 ${S}/src/github.com/containers/buildah/tests/policy.json ${dest_dir}/buildah.policy.json.sample
+}
--

2.33.0

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7324): https://lists.yoctoproject.org/g/meta-virtualization/message/7324
Mute This Topic: https://lists.yoctoproject.org/mt/91344690/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II