Osmocom docker containers
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.
 
 
 
 
 
docker-playground/ttcn3-mgw-test/jenkins.sh

38 lines
862 B

#!/bin/sh
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
docker_images_require \
"osmo-mgw-$IMAGE_SUFFIX" \
"ttcn3-mgw-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/mgw-tester
cp MGCP_Test.cfg $VOL_BASE_DIR/mgw-tester/
mkdir $VOL_BASE_DIR/mgw
cp osmo-mgw.cfg $VOL_BASE_DIR/mgw/
SUBNET=4
network_create $SUBNET
# start container with mgw in background
docker run --rm \
$(docker_network_params $SUBNET 180) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/mgw:/data \
--name ${BUILD_TAG}-mgw -d \
$DOCKER_ARGS \
$REPO_USER/osmo-mgw-$IMAGE_SUFFIX
# start docker container with testsuite in foreground
docker run --rm \
$(docker_network_params $SUBNET 181) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/mgw-tester:/data \
-e "TTCN3_PCAP_PATH=/data" \
--name ${BUILD_TAG}-ttcn3-mgw-test \
$DOCKER_ARGS \
$REPO_USER/ttcn3-mgw-test