Linux distro packaging for containerd
Перейти к файлу
Sebastiaan van Stijn 32f5c873ff
Merge pull request #406 from vvoland/release
[main] prepare release 1.7.25
2025-01-10 17:38:12 +01:00
.github add pull-request template 2024-03-18 11:19:12 +01:00
common Jenkinsfile: build both release/1.7 and main branches 2024-06-11 18:29:12 +02:00
debian prepare release 1.7.25 2025-01-10 15:14:09 +01:00
dockerfiles deb, rpm: update to github.com/cpuguy83/go-md2man v2.0.5 2024-12-13 00:04:33 +01:00
rpm prepare release 1.7.25 2025-01-10 15:14:09 +01:00
scripts scripts/.rpm-helpers: prioritize dnf over yum 2024-07-20 20:21:27 +02:00
.dockerignore Add a .dockerignore 2020-04-20 12:28:07 +02:00
.gitignore Use upstream systemd unit file 2020-08-13 16:04:48 +02:00
CONTRIBUTING.md Add Contribution guide 2020-02-27 10:49:17 +01:00
Jenkinsfile Jenkinsfile: update Debian EOL dates 2025-01-02 00:20:37 +01:00
LICENSE Add Apache License to open source the repository 2020-02-20 15:11:31 +01:00
Makefile rpm: minimal RHEL support 2024-07-23 18:10:45 +02:00
Makefile.win update years in license headers 2022-03-04 10:30:39 +01:00
NOTICE update years in license headers 2022-03-04 10:30:39 +01:00
README.md README: fix missing value for RUNC_REF in example 2024-06-12 10:05:36 +02:00

README.md

containerd-packaging

Usage:

To build a distro-specific package (rpm or deb):

make clean
make docker.io/library/<distro>:<version> [docker.io/library/<distro>:<version> ...]

# for example:
# make quay.io/centos/centos:stream9
# make docker.io/library/ubuntu:24.04

After build completes, packages can be found in the build directory.

Specifying the version to build

By default, packages are built from HEAD of the release/1.7 branch, as defines in common/common.mk. The version of runc defaults to the version as specified by the containerd project through the script/setup/runc-version file in the containerd repository.

Use the REF and RUNC_REF make variables to specify the versions to build. The provided values must be a valid Git reference, which can be a commit (e.g., ae71819 or ae71819c4f5e67bb4d5ae76a6b735f29cc25774e), branch (e.g. main or release/1.7), or tag (e.g. v1.7.18).

The following example builds packages for containerd v1.7.18 with runc v1.1.12 for Ubuntu 24.04:

make REF=v1.7.18 RUNC_REF=v1.1.12 docker.io/library/ubuntu:24.04

Building a package from a local source directory

Specify the path to the local source directory using CONTAINERD_DIR and/or RUNC_DIR:

make REF=<git reference> CONTAINERD_DIR=<path to repository> docker.io/library/<distro>:<version>

For example:

make clean
make REF=HEAD CONTAINERD_DIR=/home/me/go/src/github.com/containerd/containerd docker.io/library/ubuntu:jammy

For package maintainers: