Skip to content

Commit 4e71d67

Browse files
committed
test: preserve BusyBox dispatch name in runtime smoke check
1 parent 27bea67 commit 4e71d67

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ ENTRYPOINT ["sh", "-c", "exec java $JAVA_OPTS -jar /app/app.jar"]
7171
# Run the packaged app as the production UID to verify the linked Java modules,
7272
# PDF extraction, content parsing, and the actual generated web assets.
7373
FROM runtime-base AS smoke-test
74-
RUN --mount=type=bind,from=node-toolchain,source=/bin/busybox,target=/tmp/smoke-busybox \
74+
RUN --mount=type=bind,from=node-toolchain,source=/bin/busybox,target=/tmp/busybox \
7575
set -eu; \
76-
/tmp/smoke-busybox mkdir /tmp/website-smoke-tools; \
77-
/tmp/smoke-busybox --install -s /tmp/website-smoke-tools; \
76+
/tmp/busybox mkdir /tmp/website-smoke-tools; \
77+
/tmp/busybox --install -s /tmp/website-smoke-tools; \
7878
export PATH="/tmp/website-smoke-tools:$PATH"; \
7979
test "$(id -u)" = 1001; \
8080
test ! -e /bin/busybox; \
@@ -83,7 +83,7 @@ RUN --mount=type=bind,from=node-toolchain,source=/bin/busybox,target=/tmp/smoke-
8383
java -version; \
8484
java $JAVA_OPTS -jar /app/app.jar > /tmp/website-smoke.log 2>&1 & \
8585
app_pid=$!; \
86-
cleanup() { kill "$app_pid" 2>/dev/null || true; wait "$app_pid" 2>/dev/null || true; /tmp/smoke-busybox rm -rf /tmp/website-smoke-tools; }; \
86+
cleanup() { kill "$app_pid" 2>/dev/null || true; wait "$app_pid" 2>/dev/null || true; /tmp/busybox rm -rf /tmp/website-smoke-tools; }; \
8787
trap cleanup EXIT; \
8888
attempt=0; \
8989
while [ "$attempt" -lt 60 ]; do \

0 commit comments

Comments
 (0)