#!/bin/bash
set -exo pipefail

cd "$(dirname ${BASH_SOURCE})"

docker run --rm -it \
        -w /home/yann/dev/NG112 \
        -e GEN_DIR=/home/yann/dev/NG112 \
        -p 0.0.0.0:443:443 \
        -p 0.0.0.0:5060:5060/udp \
        -p 0.0.0.0:5061:5061/udp \
        -u "$(id -u):$(id -g)" \
        -v "${PWD}/../..:/home/yann/dev/NG112" \
        --entrypoint /home/yann/dev/NG112/virtualization/docker/docker-entrypoint.sh \
        alpine-ng112:latest "$@"
