Files
adf-codec/docker-runner.sh
T
lilleman edf11304e3
CI / gate (push) Successful in 5m27s
CI / publish (push) Has been skipped
5d: the browser leg
2026-09-04 09:49:44 +02:00

21 lines
606 B
Bash

bun_image=oven/bun:1.4.0-alpine
deno_image=denoland/deno:2.9.6
firefox_image=instrumentisto/geckodriver:149.0.2
floor_image=node:18.20.8-alpine3.21
node_image=node:24.19.0-alpine3.24
in_image() {
local image=$1 entrypoint=$2
shift 2
docker run --rm -u "$(id -u):$(id -g)" -e HOME=/tmp ${network:+--network "$network"} -v "$PWD:/app" -w /app --entrypoint "$entrypoint" "$image" "$@"
}
with_firefox() {
local container network status=0
container=$(docker run -d --rm "$firefox_image")
network="container:$container"
"$@" || status=$?
docker rm -f "$container" >/dev/null
return $status
}