Skip to content

Commit 025231a

Browse files
author
shucheng
committed
v2.1.3
1 parent c787fb9 commit 025231a

25 files changed

+254
-2483
lines changed

.beagle/README.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# containerd
2+
3+
<https://github.com/containerd/containerd>
4+
5+
```bash
6+
git remote add upstream git@github.com:containerd/containerd.git
7+
8+
git fetch upstream
9+
10+
git merge v2.1.3
11+
```
12+
13+
## build
14+
15+
```bash
16+
# golang build cross
17+
docker run -it --rm \
18+
-v $PWD/:/go/src/github.com/containerd/containerd/v2 \
19+
-w /go/src/github.com/containerd/containerd/v2 \
20+
-e VERSION=2.1.3-beagle \
21+
registry.cn-qingdao.aliyuncs.com/wod/golang:1.24-alpine \
22+
bash .beagle/build-cross.sh
23+
24+
# golang build
25+
docker run -it --rm \
26+
-v $PWD/:/go/src/github.com/containerd/containerd/v2 \
27+
-w /go/src/github.com/containerd/containerd/v2 \
28+
-e VERSION=2.1.3-beagle \
29+
registry.cn-qingdao.aliyuncs.com/wod/golang:1.24 \
30+
bash .beagle/build.sh
31+
```
32+
33+
## test
34+
35+
```bash
36+
file _output/linux-amd64/containerd
37+
38+
# amd64-test
39+
docker run -it --rm \
40+
-v $PWD/:/go/src/github.com/containerd/containerd/v2 \
41+
-w /go/src/github.com/containerd/containerd/v2 \
42+
registry.cn-qingdao.aliyuncs.com/wod/debian:bullseye-amd64 \
43+
./_output/linux-amd64/containerd -v
44+
45+
docker run -it --rm \
46+
-v $PWD/:/go/src/github.com/containerd/containerd/v2 \
47+
-w /go/src/github.com/containerd/containerd/v2 \
48+
registry.cn-qingdao.aliyuncs.com/wod/alpine:3-amd64 \
49+
./_output/linux-amd64/containerd -v
50+
51+
# arm64-test
52+
docker run -it --rm \
53+
-v $PWD/:/go/src/github.com/containerd/containerd/v2 \
54+
-w /go/src/github.com/containerd/containerd/v2 \
55+
registry.cn-qingdao.aliyuncs.com/wod/debian:bullseye-arm64 \
56+
./_output/linux-arm64/containerd -v
57+
58+
docker run -it --rm \
59+
-v $PWD/:/go/src/github.com/containerd/containerd/v2 \
60+
-w /go/src/github.com/containerd/containerd/v2 \
61+
registry.cn-qingdao.aliyuncs.com/wod/alpine:3-arm64 \
62+
./_output/linux-arm64/containerd -v
63+
```
64+
65+
## cache
66+
67+
```bash
68+
# 构建缓存-->推送缓存至服务器
69+
docker run --rm \
70+
-e PLUGIN_REBUILD=true \
71+
-e PLUGIN_ENDPOINT=$S3_ENDPOINT_ALIYUN \
72+
-e PLUGIN_ACCESS_KEY=$S3_ACCESS_KEY_ALIYUN \
73+
-e PLUGIN_SECRET_KEY=$S3_SECRET_KEY_ALIYUN \
74+
-e DRONE_REPO_OWNER="open-beagle" \
75+
-e DRONE_REPO_NAME="containerd" \
76+
-e PLUGIN_MOUNT="./.git" \
77+
-v $(pwd):$(pwd) \
78+
-w $(pwd) \
79+
registry.cn-qingdao.aliyuncs.com/wod/devops-s3-cache:1.0
80+
81+
# 读取缓存-->将缓存从服务器拉取到本地
82+
docker run --rm \
83+
-e PLUGIN_RESTORE=true \
84+
-e PLUGIN_ENDPOINT=$S3_ENDPOINT_ALIYUN \
85+
-e PLUGIN_ACCESS_KEY=$S3_ACCESS_KEY_ALIYUN \
86+
-e PLUGIN_SECRET_KEY=$S3_SECRET_KEY_ALIYUN \
87+
-e DRONE_REPO_OWNER="open-beagle" \
88+
-e DRONE_REPO_NAME="containerd" \
89+
-v $(pwd):$(pwd) \
90+
-w $(pwd) \
91+
registry.cn-qingdao.aliyuncs.com/wod/devops-s3-cache:1.0
92+
```

.beagle/build-cross.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
git config --global --add safe.directory $PWD
6+
7+
export CGO_ENABLED=0
8+
export GO111MODULE=off
9+
export STATIC=true
10+
export BUILDTAGS="seccomp"
11+
export VERSION=${VERSION:-2.0.0}
12+
export REVISION=$(git rev-parse --short HEAD)
13+
14+
export TARGETPLATFORM=linux/amd64
15+
xx-apk add musl-dev gcc btrfs-progs-dev
16+
xx-go --wrap
17+
make
18+
mkdir -p _output/$TARGETPLATFORM/
19+
mv bin/* _output/$TARGETPLATFORM/
20+
21+
export TARGETPLATFORM=linux/arm64
22+
xx-apk add musl-dev gcc btrfs-progs-dev
23+
xx-go --wrap
24+
make
25+
mkdir -p _output/$TARGETPLATFORM/
26+
mv bin/* _output/$TARGETPLATFORM/

.beagle/build-loong64.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
git config --global --add safe.directory $PWD
6+
7+
apt-get update
8+
apt-get install -y --no-install-recommends libbtrfs-dev
9+
10+
export CGO_ENABLED=0
11+
export GO111MODULE=off
12+
export STATIC=true
13+
export BUILDTAGS="seccomp"
14+
export VERSION=${VERSION:-v2.0.0}
15+
export REVISION=$(git rev-parse --short HEAD)
16+
17+
export GOARCH=loong64
18+
export CC=loongarch64-linux-gnu-gcc
19+
make
20+
mkdir -p _output/linux/$GOARCH/
21+
mv bin/* _output/linux/$GOARCH/

.beagle/dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ARG BASE=alpine:3
2+
3+
FROM ${BASE}
4+
5+
ARG AUTHOR
6+
ARG VERSION
7+
8+
LABEL maintainer=${AUTHOR} version=${VERSION}
9+
10+
ARG TARGETOS
11+
ARG TARGETARCH
12+
13+
COPY ./_output/${TARGETOS}/${TARGETARCH}/ /usr/local/bin/

.github/ISSUE_TEMPLATE/cri_kep.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/actions/install-go/action.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/api-release.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)