Skip to content

Commit 9ad6394

Browse files
committed
Use dockerd builtin buildkit
1 parent f954394 commit 9ad6394

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/ci.yml

+22-15
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,29 @@ jobs:
8888
with:
8989
egress-policy: audit
9090

91-
- name: checkout
92-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9391
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
9492
with:
9593
go-version: '1.22'
9694
cache: false
9795

96+
- name: Configure dockerd
97+
run: |
98+
set -ex -o pipefail
99+
100+
docker ps -a
101+
docker images
102+
103+
sudo mkdir -p /etc/docker
104+
test ! -f /etc/docker/daemon.json && echo '{}' | sudo tee /etc/docker/daemon.json
105+
106+
tmp="$(mktemp)"
107+
jq '.features["containerd-snapshotter"] = true' /etc/docker/daemon.json | tee "${tmp}"
108+
sudo cp "${tmp}" /etc/docker/daemon.json
109+
rm "${tmp}"
110+
111+
sudo systemctl restart docker
112+
- name: checkout
113+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
98114
- name: Setup jaeger
99115
run: |
100116
set -e
@@ -104,7 +120,9 @@ jobs:
104120
echo "OTEL_SERVICE_NAME=dalec-integration-test" >> "${GITHUB_ENV}"
105121
106122
tmp="$(mktemp)"
107-
echo "Environment=\"OTEL_EXPORTER_OTLP_ENDPOINT=http://${docker0_ip}:4318\"" > "${tmp}"
123+
echo "[Service]" > "${tmp}"
124+
echo "Environment=\"OTEL_EXPORTER_OTLP_ENDPOINT=http://${docker0_ip}:4318\"" >> "${tmp}"
125+
108126
sudo mkdir -p /etc/systemd/system/docker.service.d
109127
sudo mkdir -p /etc/systemd/system/containerd.service.d
110128
sudo cp "${tmp}" /etc/systemd/system/docker.service.d/otlp.conf
@@ -114,17 +132,6 @@ jobs:
114132
sudo systemctl restart containerd
115133
sudo systemctl restart docker
116134
117-
# Tests currently require buildkit v0.12.0 or higher
118-
# The version of buildkit builtin to moby currently (v24) is too old
119-
# So we need to setup a custom builder.
120-
- name: Set up builder
121-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
122-
with:
123-
driver-opts: |
124-
network=host
125-
env.OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318
126-
env.OTEL_SERVICE_NAME=buildkitd
127-
128135
- name: download deps
129136
run: go mod download
130137
- name: Run integration tests
@@ -150,7 +157,7 @@ jobs:
150157
mkdir -p /tmp/reports
151158
curl -sSLf localhost:16686/api/traces?service=${OTEL_SERVICE_NAME} > /tmp/reports/jaeger-tests.json
152159
curl -sSLf localhost:16686/api/traces?service=containerd > /tmp/reports/jaeger-containerd.json
153-
curl -sSLf localhost:16686/api/traces?service=buildkitd > /tmp/reports/jaeger-buildkitd.json
160+
curl -sSLf localhost:16686/api/traces?service=docker > /tmp/reports/jaeger-docker.json
154161
- name: Upload reports
155162
if: always()
156163
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)