Skip to content

Commit c5d6871

Browse files
authored
Merge pull request #4056 from crazy-max/cdi
CDI support
2 parents 021dea6 + 60d305d commit c5d6871

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3356
-629
lines changed

Dockerfile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ARG GO_VERSION=1.23
2222
ARG ALPINE_VERSION=3.21
2323
ARG XX_VERSION=1.6.1
2424
ARG BUILDKIT_DEBUG
25+
ARG EXPORT_BASE=alpine
2526

2627
# minio for s3 integration tests
2728
FROM minio/minio:${MINIO_VERSION} AS minio
@@ -194,12 +195,28 @@ RUN --mount=from=binaries \
194195
FROM scratch AS release
195196
COPY --link --from=releaser /out/ /
196197

197-
FROM alpine:${ALPINE_VERSION} AS buildkit-export
198+
FROM alpine:${ALPINE_VERSION} AS buildkit-export-alpine
198199
RUN apk add --no-cache fuse3 git openssh pigz xz iptables ip6tables \
199200
&& ln -s fusermount3 /usr/bin/fusermount
200201
COPY --link examples/buildctl-daemonless/buildctl-daemonless.sh /usr/bin/
201202
VOLUME /var/lib/buildkit
202203

204+
FROM ubuntu:24.04 AS buildkit-export-ubuntu
205+
RUN apt-get update \
206+
&& apt-get install -y --no-install-recommends \
207+
fuse3 \
208+
git \
209+
openssh-client \
210+
pigz \
211+
xz-utils \
212+
iptables \
213+
ca-certificates \
214+
&& rm -rf /var/lib/apt/lists/*
215+
COPY --link examples/buildctl-daemonless/buildctl-daemonless.sh /usr/bin/
216+
VOLUME /var/lib/buildkit
217+
218+
FROM buildkit-export-${EXPORT_BASE} AS buildkit-export
219+
203220
FROM gobuild-base AS containerd-build
204221
WORKDIR /go/src/github.com/containerd/containerd
205222
ARG TARGETPLATFORM

api/types/worker.pb.go

Lines changed: 141 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/types/worker.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ message WorkerRecord {
1212
repeated pb.Platform platforms = 3;
1313
repeated GCPolicy GCPolicy = 4;
1414
BuildkitVersion BuildkitVersion = 5;
15+
repeated CDIDevice CDIDevices = 6;
1516
}
1617

1718
message GCPolicy {
@@ -30,3 +31,10 @@ message BuildkitVersion {
3031
string version = 2;
3132
string revision = 3;
3233
}
34+
35+
message CDIDevice {
36+
string Name = 1;
37+
bool AutoAllow = 2;
38+
map<string, string> Annotations = 3;
39+
bool OnDemand = 4;
40+
}

0 commit comments

Comments
 (0)