You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
794 B

#! /bin/sh
. ../
docker_images_require \
docker network create --subnet $NET_NAME
mkdir $VOL_BASE_DIR/osmo-cn
cp osmo-stp.cfg $VOL_BASE_DIR/osmo-cn/
cp osmo-msc.cfg $VOL_BASE_DIR/osmo-cn/
cp osmo-hlr.cfg $VOL_BASE_DIR/osmo-cn/
cp osmo-mgw.cfg $VOL_BASE_DIR/osmo-cn/
cp osmo-sgsn.cfg $VOL_BASE_DIR/osmo-cn/
cp osmo-ggsn.cfg $VOL_BASE_DIR/osmo-cn/
cp hlr.db $VOL_BASE_DIR/osmo-cn/
echo Starting Osmocom core services
docker run --rm \
--cap-add=NET_ADMIN \
--device /dev/net/tun:/dev/net/tun \
--network $NET_NAME --ip \
-p \
-v $VOL_BASE_DIR/osmo-cn:/data \
--name osmo-cn \
echo Stopping containers
docker_kill_wait osmo-cn