Add docker-compose.yml and friends

This commit is contained in:
xmrcheckout
2026-01-04 17:57:07 +01:00
parent c92dfd2ef1
commit 5e0ca00af2
8 changed files with 376 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
#!/bin/sh
set -e
normalize_address() {
value="$1"
if [ -z "$value" ]; then
return
fi
case "$value" in
http://*)
value="${value#http://}"
;;
https://*)
value="${value#https://}"
;;
esac
value="${value%%/*}"
printf '%s' "$value"
}
args=""
while [ "$#" -gt 0 ]; do
case "$1" in
--daemon-address)
shift
normalized="$(normalize_address "$1")"
args="$args --daemon-address $normalized"
;;
--daemon-address=*)
value="${1#--daemon-address=}"
normalized="$(normalize_address "$value")"
args="$args --daemon-address=$normalized"
;;
*)
args="$args $1"
;;
esac
shift
done
# shellcheck disable=SC2086
exec $args