meta-virtualization/recipes-containers/cri-o/cri-o_git.bb
Bruce Ashfield 82d2ac74cb cri-o: update to 1.29.0
Bumping cri-o to version v1.27.0-662-gf8ccf314a, which comprises the following commits:

    3b7ab35ff build(deps): bump crate-ci/typos from 1.16.17 to 1.16.18
    f7d3228a7 Avoid an unnecessary c/storage lookup in ListImages
    96e6aa9b5 Inline getImageCacheItem into ListImages
    e4f2b888d Split imageIsBeingPulled from ListImages
    c7188518d Simplify ListImages more
    1cfe3c8bb Simplify appendCachedResult
    ae597ba16 Remove the "filter" parameter to ListImages
    e0750462f Turn ListImages(filter) into ImageStatus
    50ce23e89 Simplify storageImageStatus a bit
    2cb166512 Simplify ImageStatus a bit
    1b0e82a22 Split storageImageStatus from ImageStatus
    ad8be44cc Simplify error handling in ImageStatus
    203612b23 Move the ImageResult -> ImageStatusResponse conversion out of the loop
    97329e4fa build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.0
    013a0998c Update release-notes to v0.16.1
    dc44bac35 Fix quoting issue in usage help text
    f22040da2 crio: add support for --imagestore
    1d0e5d074 build(deps): bump crate-ci/typos from 1.16.15 to 1.16.17
    bb4ab8110 Run GitHub actions in `update-nixpkgs-*` branches
    45a6e70e7 Update nixpkgs
    8ec74c5fa contrib/test: pin the latest release of runc
    2505851e0 Update crun to 1.9.2
    f3e53a058 test: Add test for image pinning behavior
    12cabc651 internal/storage: compute Pinned field from recently loaded image
    0fd641c6d build(deps): bump crate-ci/typos from 1.16.14 to 1.16.15
    347194d3f build(deps): bump crate-ci/typos from 1.16.13 to 1.16.14
    f532cbd89 Add nixpkgs update cron
    8fa9260fc build(deps): bump crate-ci/typos from 1.16.12 to 1.16.13
    72280f09c Update install.md removed spaces (markdown lint error)
    fe9ed4e3a storage: add support to split filesystem using imagestore
    544db3209 RFC: Use RuntimeContainerMetadata for passing container data
    c9309ebb6 Add a layer name in one step
    4f5a2e95c Microoptimize reference creation
    3a77cc956 Eliminate the now unused imageAuthFile and isPauseImage parameters
    61d86923c Simplify createContainerOrPodSandbox again
    a936e6861 Simplify CreatePodSandbox
    39095cbb4 CHANGE: Simplify CreateContainer image lookup
    a09320639 Eliminate the clearly dead part of the just copy&pasted code
    a7f841955 Blindly copy the image handling code from createContainerOrPodSandbox into callers
    6cabaaee1 Remove an imageID parameter to CreatePodSandbox
    2b4652c52 Fix/Add error handling
    8e1e1e672 update containers storage to 1.50.2
    5d8538318 build(deps): bump DavidAnson/markdownlint-cli2-action from 12 to 13
    6c1574efc Fix nix `dirty` build
    d951faa32 Make the release branch fast forward a cronjob
    5dee42bcf build(deps): bump crate-ci/typos from 1.16.11 to 1.16.12
    91b83b10c Fix release notes job
    096f803a3 Bump golang dependencies
    7d86c2e25 docs: fix CI failure
    f182fb411 Bump version to 1.29.0
    51bae7a96 Remove the IsFullIdentifier check from Server.pullImage again
    7eb248b1a Don't silently modify the caller's SystemContext
    2d72e13e6 Fix a VERY misleading comment.
    472d2c5f9 Remove an unnecessary check
    23d7c35d5 Remove an unnecessary parse call
    6f9a7173f Remove an unnecessary check
    8c3e301da Optimize handling of full image IDs
    5f45d232a Remove the ErrCannotParseImageID special case
    335d4b0f3 Fix a VERY misleading comment
    b489507c9 Remove a completely unused ErrImageMultiplyTagged
    98f171147 Make Server.pullImage responsible for rejecting image IDs
    e292f17c0 docs: Update the containers/image branch name
    6005b03f2 contrib/test/ci: remove the redundant golang setup file
    059a7b5f8 Add conmon-rs binary to bundle
    4ac3aeef2 internal/storage: address unpredictable behavior of image names
    61a0b7c79 config/server: add functions to check IDMap support in runtime
    9ce778351 Remove golang-go from debian installation
    3d450274e Pause container during checkpointing
    e069cc827 contrib/test: fix golang version extraction for CI
    0774b644d build(deps): bump actions/checkout from 3 to 4
    d6f4c7100 Adopters.md: fix linting issue
    d805d28fd Add new adopter
    940de5009 build(deps): bump crate-ci/typos from 1.16.10 to 1.16.11
    ac9c6fbfe Don't vendor main Kubernetes repo any more
    4a1e406b0 Mention Roadmap GitHub Project in README.md
    bacc5e638 build(deps): bump crate-ci/typos from 1.16.9 to 1.16.10
    9cbd8d555 build(deps): bump cachix/install-nix-action from 22 to 23
    798a8d701 build(deps): bump actions/checkout from 3 to 4
    758e3d8c3 cgmgr: reorder setting of sched_load_balance for pod cgroup
    0e6b13e08 build(deps): bump crate-ci/typos from 1.16.8 to 1.16.9
    ff434ba27 build(deps): bump github.com/containers/podman/v4 from 4.6.1 to 4.6.2
    0002792fa build(deps): bump DavidAnson/markdownlint-cli2-action from 11 to 12
    3aa18aff3 Switch to go 1.21
    5b9f7f96d Add dependabot group for OTEL deps
    d7ad3fcbf build(deps): bump github.com/containers/buildah from 1.31.2 to 1.31.3
    85c3d9db1 Bump conmon and crun dependencies
    5ab387fe5 build(deps): bump github.com/containers/common from 0.55.3 to 0.55.4
    a4f2d8071 server: remove deprecated functionality
    28ae1f81a Fix bundle e2e tests
    a9afa0442 Add ppc64le binaries to release notes
    c8f8ca498 Add Kubernetes package test for static binary bundle
    734e1538c build(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1
    873c0f420 Policy: Allow backport of independent features
    bebd421b5 Configure systemd install path based on OS
    ec4bbac12 feat(cmdrunner): add support for context
    59f9b823d move shmSetup in server/sandbox to internal/factory/sandbox
    d1946b30a blockio: add blockio_reload option
    ce1cdfa54 main: create parent crio dir before creating clean.shutdown.supported

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-11-06 16:21:12 +00:00

116 lines
3.6 KiB
BlitzBasic

HOMEPAGE = "https://github.com/kubernetes-sigs/cri-o"
SUMMARY = "Open Container Initiative-based implementation of Kubernetes Container Runtime Interface"
DESCRIPTION = "cri-o is meant to provide an integration path between OCI conformant \
runtimes and the kubelet. Specifically, it implements the Kubelet Container Runtime \
Interface (CRI) using OCI conformant runtimes. The scope of cri-o is tied to the scope of the CRI. \
. \
At a high level, we expect the scope of cri-o to be restricted to the following functionalities: \
. \
- Support multiple image formats including the existing Docker image format \
- Support for multiple means to download images including trust & image verification \
- Container image management (managing image layers, overlay filesystems, etc) \
- Container process lifecycle management \
- Monitoring and logging required to satisfy the CRI \
- Resource isolation as required by the CRI \
"
SRCREV_cri-o = "f8ccf314a68ac03d3f46097d90c573078ee5e494"
SRC_URI = "\
git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.29;name=cri-o;protocol=https \
file://crio.conf \
"
# Apache-2.0 for docker
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
GO_IMPORT = "import"
PV = "1.29.0+git${SRCREV_cri-o}"
inherit features_check
REQUIRED_DISTRO_FEATURES ?= "seccomp"
DEPENDS = " \
glib-2.0 \
btrfs-tools \
gpgme \
ostree \
libdevmapper \
libseccomp \
"
RDEPENDS:${PN} = " \
cni \
libdevmapper \
"
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
PACKAGECONFIG[selinux] = ",,libselinux"
PACKAGES =+ "${PN}-config"
RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
RDEPENDS:${PN} += " e2fsprogs-mke2fs conmon util-linux iptables conntrack-tools"
inherit systemd
inherit go
inherit goarch
inherit pkgconfig
inherit container-host
EXTRA_OEMAKE="BUILDTAGS=''"
do_compile() {
set +e
cd ${S}/src/import
oe_runmake local-cross
oe_runmake binaries
}
SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}"
SYSTEMD_AUTO_ENABLE:${PN} = "enable"
do_install() {
set +e
localbindir="/usr/local/bin"
install -d ${D}${localbindir}
install -d ${D}/${libexecdir}/crio
install -d ${D}/${sysconfdir}/crio
install -d ${D}${systemd_unitdir}/system/
install -d ${D}/usr/share/containers/oci/hooks.d
install ${WORKDIR}/crio.conf ${D}/${sysconfdir}/crio/crio.conf
# sample config files, they'll go in the ${PN}-config below
install -d ${D}/${sysconfdir}/crio/config/
install -m 755 -D ${S}/src/import/test/testdata/* ${D}/${sysconfdir}/crio/config/
install ${S}/src/import/bin/crio.cross.linux* ${D}/${localbindir}/crio
install ${S}/src/import/bin/crio-status ${D}/${localbindir}/
install ${S}/src/import/bin/pinns ${D}/${localbindir}/
install -m 0644 ${S}/src/import/contrib/systemd/crio.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/src/import/contrib/systemd/crio-shutdown.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/src/import/contrib/systemd/crio-wipe.service ${D}${systemd_unitdir}/system/
install -d ${D}${localstatedir}/lib/crio
}
FILES:${PN}-config = "${sysconfdir}/crio/config/*"
FILES:${PN} += "${systemd_unitdir}/system/*"
FILES:${PN} += "/usr/local/bin/*"
FILES:${PN} += "/usr/share/containers/oci/hooks.d"
# don't clobber hooks.d
ALLOW_EMPTY:${PN} = "1"
INSANE_SKIP:${PN} += "ldflags already-stripped textrel"
deltask compile_ptest_base
COMPATIBLE_HOST = "^(?!(qemu)?mips).*"