File tree Expand file tree Collapse file tree
internal/test/vm/lvh/al2023 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# This is a renovate-friendly source of Docker images.
2+ FROM busybox:musl@sha256:19b646668802469d968a05342a601e78da4322a414a7c09b1c9ee25165042138 AS busybox-musl
23FROM davidanson/markdownlint-cli2:v0.22.1@sha256:0ed9a5f4c77ef447da2a2ac6e67caf74b214a7f80288819565e8b7d2ac148fe5 AS markdown
34FROM gradle:9.6.0-jdk21-noble@sha256:9cb63c2ebb4121e92aa7ed9b781a0ee154bd7ea3e45f97dbeabf7b1d3f910667 AS gradle-java
45FROM ghcr.io/astral-sh/uv:python3.9-trixie-slim@sha256:b0c547dc901317540957794bf099c1cc2229edd1a8610d672388d035eb815c5b AS python39
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ KERNEL_PKG="${2:-kernel}"
2424
2525SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
2626REPO_ROOT=" $( cd " ${SCRIPT_DIR} /../../../../.." && pwd) "
27+ BUSYBOX_IMAGE=" $( awk ' $1=="FROM" && $4=="busybox-musl" {print $2}' " ${REPO_ROOT} /dependencies.Dockerfile" ) "
28+ if [ -z " ${BUSYBOX_IMAGE} " ]; then
29+ echo " Unable to find busybox-musl image in dependencies.Dockerfile" >&2
30+ exit 1
31+ fi
2732WORKDIR=" $( mktemp -d) "
2833trap ' rm -rf "$WORKDIR"' EXIT
2934
@@ -58,7 +63,7 @@ mkdir -p "${IRD}/sys/fs/bpf" "${IRD}/sys/kernel/debug" "${IRD}/sys/kernel/tracin
5863
5964# Static (musl) busybox so it runs without any libc.
6065docker run --rm --platform linux/amd64 -v " ${IRD} /bin" :/out \
61- busybox:musl sh -c ' cp /bin/busybox /out/busybox' >&2
66+ " ${BUSYBOX_IMAGE} " sh -c ' cp /bin/busybox /out/busybox' >&2
6267
6368cp " ${TEST_BIN} " " ${IRD} /verifier.test"
6469chmod +x " ${IRD} /verifier.test"
You can’t perform that action at this time.
0 commit comments