gctf2023/misc/glacier-military-daemon/glacier-military-daemon/run-challenge-local.sh
2023-11-24 13:18:56 -05:00

29 lines
600 B
Bash
Executable File

#!/bin/sh
ENGINE=podman
if ! [ -x "$(command -v podman)" ]; then
ENGINE=docker
if ! [ -x "$(command -v docker)" ]; then
echo "[!] Please install a container engine such as podman or docker."
exit 1
fi
fi
$ENGINE build -t glacier-military-daemon .
$ENGINE run -it \
--log-driver=none \
--env PWD=/home/sci33098 \
--read-only-tmpfs=true \
--restart no \
--uts=private \
--pull never \
--read-only \
--no-hosts \
--network none \
--memory 5m \
--user sci33098 \
--hostname pmclab006 \
--rm localhost/glacier-military-daemon:latest \
/bin/zsh
#--timeout=300