2023-11-29 18:01:01 +01:00
|
|
|
#!/bin/sh -eu
|
|
|
|
|
|
|
|
|
|
: "${DOCKER_BIN:=docker}"
|
2024-05-10 17:01:18 +02:00
|
|
|
: "${UNWIND_PORT:=8097}"
|
2023-11-29 18:01:01 +01:00
|
|
|
|
|
|
|
|
cd "$RUN_DIR"
|
|
|
|
|
|
|
|
|
|
[ -z "${DEBUG:-}" ] || set -x
|
|
|
|
|
|
|
|
|
|
version=$(cat build/version)
|
|
|
|
|
|
2024-05-10 17:01:18 +02:00
|
|
|
localhost=127.0.0.1
|
|
|
|
|
localport=8000
|
|
|
|
|
netloc="$localhost:$localport"
|
|
|
|
|
|
|
|
|
|
echo >&2 "Unwind will be available on http://$netloc/
|
|
|
|
|
"
|
|
|
|
|
|
2023-11-29 18:01:01 +01:00
|
|
|
$DOCKER_BIN run \
|
|
|
|
|
--init \
|
|
|
|
|
-it --rm \
|
|
|
|
|
--read-only \
|
|
|
|
|
--memory '500m' \
|
2024-05-10 17:01:18 +02:00
|
|
|
--publish "$netloc":"$UNWIND_PORT" \
|
2023-11-29 18:01:01 +01:00
|
|
|
--volume "$RUN_DIR"/data:/data \
|
|
|
|
|
"code.dumpr.org/ducklet/unwind":"$version"
|