Skip to content

Commit 4f04140

Browse files
committed
fix(evals): build /run.sh with printf so legacy builder works
The Dockerfile.template used a BuildKit heredoc (`RUN cat <<-'EOF' >/run.sh`). With the legacy builder it parses as `RUN cat >/run.sh` — empty stdin, 0-byte file. Every eval container then dies with `exec /run.sh: exec format error`, emits no events, and the run ends with Total Cost=$0 / Errors=N/N. Replace the heredoc with a single `RUN printf … > /run.sh && chmod +x`. Same resulting file, works on both legacy builder and BuildKit.
1 parent 9513dbd commit 4f04140

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

pkg/evaluation/Dockerfile.template

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
FROM alpine:latest
44
LABEL "io.docker.agent.evals.image"="default"
55
COPY --from=docker/docker-agent:edge /docker-agent /
6-
RUN cat <<-'EOF' >/run.sh
7-
#!/usr/bin/env sh
8-
set -euo pipefail
9-
exec "$@"
10-
EOF
11-
RUN chmod +x /run.sh
6+
RUN printf '#!/usr/bin/env sh\nset -euo pipefail\nexec "$@"\n' > /run.sh && chmod +x /run.sh
127
WORKDIR /working_dir
138
ENV TELEMETRY_ENABLED=false
149
ENV DOCKER_AGENT_HIDE_TELEMETRY_BANNER=1

0 commit comments

Comments
 (0)