This repository is considered EXPERIMENTAL and under active development
until further notice. Please refer to docker-ce-packaging
repository
to request changes to the packaging process.
This repository creates packages (apk, deb, rpm, static) for various projects and are published as a Docker image on Docker Hub.
Packages are published to Docker Hub as non-runnable images that only contains the artifacts. You can check the GitHub Releases for the list of published Docker tags.
Note
We are also publishing nightly builds using the
nightly-<project>-<version>
tags.
For testing purpose you can use a tool like Undock to extract packages:
# extract packages for all platforms and output to ./bin/undock folder
$ undock --wrap --rm-dist --all dockereng/packaging:buildx-v0.9.1 ./bin/undock
tree ./bin/undock
./buildx/v0.9.1/
βββ centos
β βββ 7
β β βββ amd64
β β β βββ docker-buildx-plugin-0.9.1-1.el7.x86_64.rpm
β β βββ arm64
β β βββ docker-buildx-plugin-0.9.1-1.el7.aarch64.rpm
β βββ 8
β β βββ amd64
β β β βββ docker-buildx-plugin-0.9.1-1.el8.x86_64.rpm
β β βββ arm64
β β βββ docker-buildx-plugin-0.9.1-1.el8.aarch64.rpm
β βββ 9
β βββ amd64
β β βββ docker-buildx-plugin-0.9.1-1.el9.x86_64.rpm
β βββ arm64
β βββ docker-buildx-plugin-0.9.1-1.el9.aarch64.rpm
βββ debian
β βββ bullseye
β β βββ amd64
β β β βββ docker-buildx-plugin_0.9.1-0_amd64.buildinfo
β β β βββ docker-buildx-plugin_0.9.1-0_amd64.changes
β β β βββ docker-buildx-plugin_0.9.1-0_amd64.deb
β β βββ arm
β β β βββ v6
β β β β βββ docker-buildx-plugin_0.9.1-0_armel.buildinfo
β β β β βββ docker-buildx-plugin_0.9.1-0_armel.changes
β β β β βββ docker-buildx-plugin_0.9.1-0_armel.deb
β β β βββ v7
β β β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β β β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β β β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
β β βββ arm64
β β β βββ docker-buildx-plugin_0.9.1-0_arm64.buildinfo
β β β βββ docker-buildx-plugin_0.9.1-0_arm64.changes
β β β βββ docker-buildx-plugin_0.9.1-0_arm64.deb
β β βββ s390x
β β βββ docker-buildx-plugin_0.9.1-0_s390x.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_s390x.changes
β β βββ docker-buildx-plugin_0.9.1-0_s390x.deb
β βββ buster
β βββ amd64
β β βββ docker-buildx-plugin_0.9.1-0_amd64.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_amd64.changes
β β βββ docker-buildx-plugin_0.9.1-0_amd64.deb
β βββ arm
β β βββ v7
β β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
β βββ arm64
β βββ docker-buildx-plugin_0.9.1-0_arm64.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_arm64.changes
β βββ docker-buildx-plugin_0.9.1-0_arm64.deb
βββ fedora
β βββ 35
β β βββ amd64
β β β βββ docker-buildx-plugin-0.9.1-1.fc35.x86_64.rpm
β β βββ arm64
β β β βββ docker-buildx-plugin-0.9.1-1.fc35.aarch64.rpm
β β βββ s390x
β β βββ docker-buildx-plugin-0.9.1-1.fc35.s390x.rpm
β βββ 36
β β βββ amd64
β β β βββ docker-buildx-plugin-0.9.1-1.fc36.x86_64.rpm
β β βββ arm64
β β β βββ docker-buildx-plugin-0.9.1-1.fc36.aarch64.rpm
β β βββ s390x
β β βββ docker-buildx-plugin-0.9.1-1.fc36.s390x.rpm
β βββ 37
β βββ amd64
β β βββ docker-buildx-plugin-0.9.1-1.fc37.x86_64.rpm
β βββ arm64
β β βββ docker-buildx-plugin-0.9.1-1.fc37.aarch64.rpm
β βββ s390x
β βββ docker-buildx-plugin-0.9.1-1.fc37.s390x.rpm
βββ oraclelinux
β βββ 7
β β βββ amd64
β β β βββ docker-buildx-plugin-0.9.1-1.el7.x86_64.rpm
β β βββ arm64
β β βββ docker-buildx-plugin-0.9.1-1.el7.aarch64.rpm
β βββ 8
β β βββ amd64
β β β βββ docker-buildx-plugin-0.9.1-1.el8.x86_64.rpm
β β βββ arm64
β β βββ docker-buildx-plugin-0.9.1-1.el8.aarch64.rpm
β βββ 9
β βββ amd64
β β βββ docker-buildx-plugin-0.9.1-1.el9.x86_64.rpm
β βββ arm64
β βββ docker-buildx-plugin-0.9.1-1.el9.aarch64.rpm
βββ raspbian
β βββ bullseye
β β βββ arm
β β βββ v7
β β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
β βββ buster
β βββ arm
β βββ v7
β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
βββ static
β βββ darwin
β β βββ amd64
β β β βββ docker-buildx-plugin_0.9.1.tgz
β β βββ arm64
β β βββ docker-buildx-plugin_0.9.1.tgz
β βββ linux
β β βββ amd64
β β β βββ docker-buildx-plugin_0.9.1.tgz
β β βββ arm
β β β βββ v6
β β β β βββ docker-buildx-plugin_0.9.1.tgz
β β β βββ v7
β β β βββ docker-buildx-plugin_0.9.1.tgz
β β βββ arm64
β β β βββ docker-buildx-plugin_0.9.1.tgz
β β βββ riscv64
β β β βββ docker-buildx-plugin_0.9.1.tgz
β β βββ s390x
β β βββ docker-buildx-plugin_0.9.1.tgz
β βββ windows
β βββ amd64
β β βββ docker-buildx-plugin_0.9.1.zip
β βββ arm64
β βββ docker-buildx-plugin_0.9.1.zip
βββ ubuntu
βββ bionic
β βββ amd64
β β βββ docker-buildx-plugin_0.9.1-0_amd64.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_amd64.changes
β β βββ docker-buildx-plugin_0.9.1-0_amd64.deb
β βββ arm
β β βββ v7
β β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
β βββ arm64
β β βββ docker-buildx-plugin_0.9.1-0_arm64.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_arm64.changes
β β βββ docker-buildx-plugin_0.9.1-0_arm64.deb
β βββ s390x
β βββ docker-buildx-plugin_0.9.1-0_s390x.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_s390x.changes
β βββ docker-buildx-plugin_0.9.1-0_s390x.deb
βββ focal
β βββ amd64
β β βββ docker-buildx-plugin_0.9.1-0_amd64.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_amd64.changes
β β βββ docker-buildx-plugin_0.9.1-0_amd64.deb
β βββ arm
β β βββ v7
β β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
β βββ arm64
β β βββ docker-buildx-plugin_0.9.1-0_arm64.buildinfo
β β βββ docker-buildx-plugin_0.9.1-0_arm64.changes
β β βββ docker-buildx-plugin_0.9.1-0_arm64.deb
β βββ s390x
β βββ docker-buildx-plugin_0.9.1-0_s390x.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_s390x.changes
β βββ docker-buildx-plugin_0.9.1-0_s390x.deb
βββ jammy
βββ amd64
β βββ docker-buildx-plugin_0.9.1-0_amd64.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_amd64.changes
β βββ docker-buildx-plugin_0.9.1-0_amd64.deb
βββ arm
β βββ v7
β βββ docker-buildx-plugin_0.9.1-0_armhf.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_armhf.changes
β βββ docker-buildx-plugin_0.9.1-0_armhf.deb
βββ arm64
β βββ docker-buildx-plugin_0.9.1-0_arm64.buildinfo
β βββ docker-buildx-plugin_0.9.1-0_arm64.changes
β βββ docker-buildx-plugin_0.9.1-0_arm64.deb
βββ s390x
βββ docker-buildx-plugin_0.9.1-0_s390x.buildinfo
βββ docker-buildx-plugin_0.9.1-0_s390x.changes
βββ docker-buildx-plugin_0.9.1-0_s390x.deb
87 directories, 97 files
Before building packages, you need to use a compatible Buildx driver
to be able to build multi-plaform packages such as docker-container
:
# create docker-container builder and use it by default
# https://docs.docker.com/build/building/drivers/docker-container/
$ docker buildx create --driver docker-container --name mybuilder --use --bootstrap
Note
Some packages don't have cross-compilation support and therefore QEMU will be used. As it can be slow, it is recommended to use a builder with native nodes like we do in CI. See "Set up remote builders" step for more details.
If you just want to build packages for the current platform, you can set
LOCAL_PLATFORM=1
environment variable.
common
folder contains helpers that will be used by the main Makefile
and
also across projects in pkg folder like the list of supported apk, deb
and rpm releases to produce.
Makefile
contains targets to build specific or all packages and will output
to ./bin
folder.
# build debian packages for buildx project
$ make deb-buildx
# build deb and rpm packages for all projects
$ make deb rpm
# build deb and rpm packages for all projects (only local platform)
$ LOCAL_PLATFORM=1 make deb rpm
Each project has also its own Makefile
, Dockerfile
and bake
definition to build and push packages.
$ cd pkg/buildx/
# build all packages
$ make
# build all debian packages
$ make pkg-deb
# build debian bullseye packages
$ make run-pkg-debian11
# build centos 7 packages
$ make run-pkg-centos7
To create a new release of Buildx v0.9.1:
# build all packages for buildx v0.9.1 and output to ./bin folder
$ cd pkg/buildx/
$ BUILDX_REF=v0.9.1 make
# build and push image to dockereng/packaging:buildx-v0.9.1 using bake.
# "release" target will use the "bin" folder as named context to create the
# image with artifacts previously built with make.
$ docker buildx bake --push --set *.tags=dockereng/packaging:buildx-v0.9.1 release
Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md