Skip to content

Commit f470fb5

Browse files
Merge branch 'main' into remove-signal-reason-unable-to-verify-signature
2 parents ca34567 + 896685c commit f470fb5

File tree

8 files changed

+23
-260
lines changed

8 files changed

+23
-260
lines changed

.buildkite/steps/build-docker-image.sh

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ trap "docker buildx rm $builder_name || true" EXIT
6363
echo --- Copying files into build context
6464
cp -a packaging/linux/root/usr/share/buildkite-agent/hooks/ "${packaging_dir}/hooks/"
6565
cp pkg/buildkite-agent-linux-{amd64,arm64} "$packaging_dir"
66-
cp packaging/docker/common/docker-compose "$packaging_dir"
6766

6867
echo "--- Building :docker: $image_tag for all architectures"
6968
docker buildx build --progress plain --builder "$builder_name" --platform linux/amd64,linux/arm64 "$packaging_dir"

.github/dependabot.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ updates:
1010
- /packaging/docker/ubuntu-24.04
1111
schedule:
1212
interval: weekly
13-
ignore:
14-
- dependency-name: ubuntu
1513
- package-ecosystem: gomod
1614
directory: /
1715
schedule:
@@ -20,12 +18,12 @@ updates:
2018
groups:
2119
otel:
2220
patterns:
23-
- go.opentelemetry.io/*
21+
- go.opentelemetry.io/*
2422
golang-x:
2523
patterns:
26-
- golang.org/x/*
24+
- golang.org/x/*
2725
cloud-providers:
2826
patterns:
29-
- github.com/Azure/*
30-
- github.com/aws/*
31-
- google.golang.org/*
27+
- github.com/Azure/*
28+
- github.com/aws/*
29+
- google.golang.org/*

packaging/docker/alpine-k8s/Dockerfile

+1-54
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,9 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM public.ecr.aws/docker/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS base
4-
5-
RUN apk update && apk add --no-cache \
6-
bash \
7-
curl \
8-
docker-cli \
9-
docker-cli-buildx \
10-
docker-cli-compose \
11-
git \
12-
jq \
13-
libc6-compat \
14-
openssh-client \
15-
perl \
16-
py-pip \
17-
rsync \
18-
run-parts \
19-
su-exec \
20-
tini \
21-
tini-static \
22-
tzdata
23-
24-
COPY docker-compose /usr/local/bin/docker-compose
25-
26-
FROM public.ecr.aws/docker/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS kubectl-downloader
27-
ARG TARGETOS
28-
ARG TARGETARCH
29-
30-
ENV K8_VERSION=v1.31.0
31-
32-
RUN <<EOF
33-
set -eu
34-
wget -qO kubectl \
35-
"https://storage.googleapis.com/kubernetes-release/release/$K8_VERSION/bin/linux/$TARGETARCH/kubectl"
36-
chmod +x kubectl
37-
EOF
38-
39-
FROM public.ecr.aws/docker/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS kustomize-downloader
3+
FROM public.ecr.aws/buildkite/agent-base:alpine-k8s@sha256:7ae077893231e2dc316f5420567118f85b347b5348e4d453ccb2d1dc6a9100ab
404
ARG TARGETOS
415
ARG TARGETARCH
426

43-
RUN <<EOF
44-
set -eu
45-
46-
apk update
47-
apk add jq
48-
URL=$(wget -qO- https://api.github.com/repos/kubernetes-sigs/kustomize/releases | jq -r '.[] | select(has("assets") and .assets != []) | .assets[].browser_download_url' | grep "${TARGETOS}_${TARGETARCH}" | head)
49-
wget -qO- $URL | tar xz
50-
EOF
51-
52-
FROM base AS runtime
53-
54-
ARG TARGETOS
55-
ARG TARGETARCH
56-
57-
COPY --from=kubectl-downloader /kubectl /usr/local/bin/kubectl
58-
COPY --from=kustomize-downloader /kustomize /usr/local/bin/kustomize
59-
607
ENV BUILDKITE_AGENT_CONFIG=/buildkite/buildkite-agent.cfg
618

629
RUN mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins \

packaging/docker/alpine/Dockerfile

+2-22
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
1-
FROM public.ecr.aws/docker/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
1+
# syntax=docker/dockerfile:1.4
22

3+
FROM public.ecr.aws/buildkite/agent-base:alpine@sha256:6334b2999afef6a97557eb6f5b60b4dfe6cac1611dde152b9fffc883ee472e30
34
ARG TARGETOS
45
ARG TARGETARCH
56

6-
RUN apk add --no-cache \
7-
bash \
8-
curl \
9-
docker-cli \
10-
docker-cli-compose \
11-
docker-cli-buildx \
12-
git \
13-
jq \
14-
libc6-compat \
15-
openssh-client \
16-
perl \
17-
py-pip \
18-
rsync \
19-
run-parts \
20-
su-exec \
21-
tini \
22-
tini-static \
23-
tzdata
24-
25-
COPY docker-compose /usr/local/bin/docker-compose
26-
277
ENV BUILDKITE_AGENT_CONFIG=/buildkite/buildkite-agent.cfg
288

299
RUN mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins \

packaging/docker/common/docker-compose

-20
This file was deleted.

packaging/docker/ubuntu-20.04/Dockerfile

+5-52
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,16 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM public.ecr.aws/ubuntu/ubuntu:20.04@sha256:4a885c102bc7de9ff2ffc4b11b65f35e46827d608069cd959181718aa7d14731
4-
3+
FROM public.ecr.aws/buildkite/agent-base:ubuntu-20.04@sha256:6bcb19149500f017fa4fa75fc2a3c082d3f35df94784594737beaf62568e2613
54
ARG TARGETOS
65
ARG TARGETARCH
76

8-
RUN <<BASH
9-
#!/usr/bin/env bash
10-
11-
set -eufo pipefail
12-
13-
export DEBIAN_FRONTEND=noninteractive
14-
15-
# Install main packages
16-
apt-get update
17-
apt-get install -y --no-install-recommends \
18-
apt-transport-https \
19-
bash \
20-
ca-certificates \
21-
curl \
22-
git \
23-
gnupg-agent \
24-
jq \
25-
openssh-client \
26-
perl \
27-
python3 \
28-
python3-pip \
29-
rsync \
30-
software-properties-common \
31-
tini
32-
33-
# Install Docker Engine
34-
install -m 0755 -d /etc/apt/keyrings
35-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
36-
chmod a+r /etc/apt/keyrings/docker.asc
37-
echo \
38-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
39-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
40-
tee /etc/apt/sources.list.d/docker.list > /dev/null
41-
42-
# We just updated the main sources. This only updates the docker source
43-
apt-get update -o Dir::Etc::sourcelist="sources.list.d/docker.list" \
44-
-o Dir::Etc::sourceparts="-" \
45-
-o APT::Get::List-Cleanup="0"
46-
apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
47-
48-
rm -rf /var/lib/apt/lists/*
49-
50-
ln -s /usr/bin/tini /usr/sbin/tini
51-
52-
mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins
53-
curl -Lfs -o /usr/local/bin/ssh-env-config.sh https://raw.githubusercontent.com/buildkite/docker-ssh-env-config/master/ssh-env-config.sh
54-
chmod +x /usr/local/bin/ssh-env-config.sh
55-
BASH
56-
577
ENV BUILDKITE_AGENT_CONFIG=/buildkite/buildkite-agent.cfg \
588
PATH="/usr/local/bin:${PATH}"
599

60-
COPY ./docker-compose /usr/local/bin/docker-compose
10+
RUN mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins \
11+
&& curl -Lfs -o /usr/local/bin/ssh-env-config.sh https://raw.githubusercontent.com/buildkite/docker-ssh-env-config/master/ssh-env-config.sh \
12+
&& chmod +x /usr/local/bin/ssh-env-config.sh
13+
6114
COPY ./buildkite-agent.cfg /buildkite/buildkite-agent.cfg
6215
COPY ./buildkite-agent-$TARGETOS-$TARGETARCH /usr/local/bin/buildkite-agent
6316
COPY ./entrypoint.sh /usr/local/bin/buildkite-agent-entrypoint

packaging/docker/ubuntu-22.04/Dockerfile

+5-52
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,16 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM public.ecr.aws/ubuntu/ubuntu:22.04@sha256:1582c29f34a48752e406f1a261fe9545fad895da3f6bb4be55bc82485557564e
4-
3+
FROM public.ecr.aws/buildkite/agent-base:ubuntu-22.04@sha256:ca90fbc56ff1813f486bc3d3787c4d2802f31eede330baf1dde3d6923ee89ea6
54
ARG TARGETOS
65
ARG TARGETARCH
76

8-
RUN <<BASH
9-
#!/usr/bin/env bash
10-
11-
set -eufo pipefail
12-
13-
export DEBIAN_FRONTEND=noninteractive
14-
15-
# Install main packages
16-
apt-get update
17-
apt-get install -y --no-install-recommends \
18-
apt-transport-https \
19-
bash \
20-
ca-certificates \
21-
curl \
22-
git \
23-
gnupg-agent \
24-
jq \
25-
openssh-client \
26-
perl \
27-
python3 \
28-
python3-pip \
29-
rsync \
30-
software-properties-common \
31-
tini
32-
33-
# Install Docker Engine
34-
install -m 0755 -d /etc/apt/keyrings
35-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
36-
chmod a+r /etc/apt/keyrings/docker.asc
37-
echo \
38-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
39-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
40-
tee /etc/apt/sources.list.d/docker.list > /dev/null
41-
42-
# We just updated the main sources. This only updates the docker source
43-
apt-get update -o Dir::Etc::sourcelist="sources.list.d/docker.list" \
44-
-o Dir::Etc::sourceparts="-" \
45-
-o APT::Get::List-Cleanup="0"
46-
apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
47-
48-
rm -rf /var/lib/apt/lists/*
49-
50-
ln -s /usr/bin/tini /usr/sbin/tini
51-
52-
mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins
53-
curl -Lfs -o /usr/local/bin/ssh-env-config.sh https://raw.githubusercontent.com/buildkite/docker-ssh-env-config/master/ssh-env-config.sh
54-
chmod +x /usr/local/bin/ssh-env-config.sh
55-
BASH
56-
577
ENV BUILDKITE_AGENT_CONFIG=/buildkite/buildkite-agent.cfg \
588
PATH="/usr/local/bin:${PATH}"
599

60-
COPY ./docker-compose /usr/local/bin/docker-compose
10+
RUN mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins \
11+
&& curl -Lfs -o /usr/local/bin/ssh-env-config.sh https://raw.githubusercontent.com/buildkite/docker-ssh-env-config/master/ssh-env-config.sh \
12+
&& chmod +x /usr/local/bin/ssh-env-config.sh
13+
6114
COPY ./buildkite-agent.cfg /buildkite/buildkite-agent.cfg
6215
COPY ./buildkite-agent-$TARGETOS-$TARGETARCH /usr/local/bin/buildkite-agent
6316
COPY ./entrypoint.sh /usr/local/bin/buildkite-agent-entrypoint

packaging/docker/ubuntu-24.04/Dockerfile

+5-52
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,16 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM public.ecr.aws/ubuntu/ubuntu:24.04@sha256:fb95efe0d22be277f10250f15e5172ec0fe22c37eca2ba55e78b526c447eec23
4-
3+
FROM public.ecr.aws/buildkite/agent-base:ubuntu-24.04@sha256:7a48132055c0356b422b2d6a977987d22af65f14d45c357531dbf290e58b66aa
54
ARG TARGETOS
65
ARG TARGETARCH
76

8-
RUN <<BASH
9-
#!/usr/bin/env bash
10-
11-
set -eufo pipefail
12-
13-
export DEBIAN_FRONTEND=noninteractive
14-
15-
# Install main packages
16-
apt-get update
17-
apt-get install -y --no-install-recommends \
18-
apt-transport-https \
19-
bash \
20-
ca-certificates \
21-
curl \
22-
git \
23-
gnupg-agent \
24-
jq \
25-
openssh-client \
26-
perl \
27-
python3 \
28-
python3-pip \
29-
rsync \
30-
software-properties-common \
31-
tini
32-
33-
# Install Docker Engine
34-
install -m 0755 -d /etc/apt/keyrings
35-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
36-
chmod a+r /etc/apt/keyrings/docker.asc
37-
echo \
38-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
39-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
40-
tee /etc/apt/sources.list.d/docker.list > /dev/null
41-
42-
# We just updated the main sources. This only updates the docker source
43-
apt-get update -o Dir::Etc::sourcelist="sources.list.d/docker.list" \
44-
-o Dir::Etc::sourceparts="-" \
45-
-o APT::Get::List-Cleanup="0"
46-
apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
47-
48-
rm -rf /var/lib/apt/lists/*
49-
50-
ln -s /usr/bin/tini /usr/sbin/tini
51-
52-
mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins
53-
curl -Lfs -o /usr/local/bin/ssh-env-config.sh https://raw.githubusercontent.com/buildkite/docker-ssh-env-config/master/ssh-env-config.sh
54-
chmod +x /usr/local/bin/ssh-env-config.sh
55-
BASH
56-
577
ENV BUILDKITE_AGENT_CONFIG=/buildkite/buildkite-agent.cfg \
588
PATH="/usr/local/bin:${PATH}"
599

60-
COPY ./docker-compose /usr/local/bin/docker-compose
10+
RUN mkdir -p /buildkite/builds /buildkite/hooks /buildkite/plugins \
11+
&& curl -Lfs -o /usr/local/bin/ssh-env-config.sh https://raw.githubusercontent.com/buildkite/docker-ssh-env-config/master/ssh-env-config.sh \
12+
&& chmod +x /usr/local/bin/ssh-env-config.sh
13+
6114
COPY ./buildkite-agent.cfg /buildkite/buildkite-agent.cfg
6215
COPY ./buildkite-agent-$TARGETOS-$TARGETARCH /usr/local/bin/buildkite-agent
6316
COPY ./entrypoint.sh /usr/local/bin/buildkite-agent-entrypoint

0 commit comments

Comments
 (0)