1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00
github.com_openSUSE_osc/behave/container-run.sh

23 lines
389 B
Bash
Executable File

#!/bin/sh
TOPDIR=$(dirname $(readlink -f $0))
podman run \
--name obs-server \
--hostname obs-server \
--replace \
--rm \
--detach \
--interactive \
--tty \
--volume="$TOPDIR":/opt/obs \
--cap-add SYS_PTRACE \
-p 1443:443 \
-p 1082:82 \
obs-server
sleep 0.5
podman exec -it obs-server /usr/bin/systemctl is-system-running --wait
exit $?