forked from siderolabs/pkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg.yaml
37 lines (37 loc) · 1.56 KB
/
pkg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: containerd
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- stage: libseccomp
steps:
- sources:
- url: https://github.com/containerd/containerd/archive/v1.3.3.tar.gz
destination: containerd.tar.gz
sha256: f5a3079210660a65a4ba36e322da03b465a83f18af563d33c4ef841ccb4411ae
sha512: 8ec9696388c2f21def34396f0dd2432a24d55c9c1b8624e47c51a624ed1fe51fde717015cd891705438c1c317f95c5601e58ceca8b4e5d813f55ff515eb1e269
prepare:
- |
export GOPATH=/go
mkdir -p ${GOPATH}/src/github.com/containerd/containerd
tar -xzf containerd.tar.gz --strip-components=1 -C ${GOPATH}/src/github.com/containerd/containerd
build:
- |
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
export CC=/toolchain/bin/cc
# This is required due to "loadinternal: cannot find runtime/cgo".
export CGO_ENABLED=1
export GOPATH=/go
export PATH=${PATH}:${TOOLCHAIN}/go/bin
cd ${GOPATH}/src/github.com/containerd/containerd
make bin/containerd bin/containerd-shim bin/containerd-shim-runc-v2 BUILDTAGS='seccomp no_btrfs' VERSION=v1.3.3 REVISION=d76c121f76a5fc8a462dc64594aea72fe18e1178
install:
- |
mkdir -p /rootfs/bin
export GOPATH=/go
cp ${GOPATH}/src/github.com/containerd/containerd/bin/containerd /rootfs/bin
cp ${GOPATH}/src/github.com/containerd/containerd/bin/containerd-shim /rootfs/bin
cp ${GOPATH}/src/github.com/containerd/containerd/bin/containerd-shim-runc-v2 /rootfs/bin
finalize:
- from: /rootfs
to: /