diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2018-09-18 19:33:35 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2018-11-29 10:48:57 +0100 |
commit | bf304cc068e16edcf9656375bb85cb5d4244a405 (patch) | |
tree | 4ef6c94ea64829fb955aab770b52fdc5173d04f1 | |
parent | 0ecaea664ae28f28619e42f8e7e815494b8fbb65 (diff) |
Add run.sh script to run the container
Change-Id: Iff3bb061afc0ae5ad532cc7413beeb6628368457
-rwxr-xr-x | osmo-cn-latest/run.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/osmo-cn-latest/run.sh b/osmo-cn-latest/run.sh new file mode 100755 index 0000000..bfd198a --- /dev/null +++ b/osmo-cn-latest/run.sh @@ -0,0 +1,27 @@ +#! /bin/sh + +. ../jenkins-common.sh + +network_create 192.168.42.0/24 + +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 \ + --network $NET_NAME --ip 192.168.42.10 \ + -v $VOL_BASE_DIR/osmo-cn:/data \ + --name osmo-cn \ + $REPO_USER/osmo-cn-latest + +echo Stopping containers + +docker container kill osmo-cn + +network_remove |