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-hnodeb-test/jenkins.sh

48 lines
1.2 KiB

#!/bin/sh
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
docker_images_require \
"osmo-hnodeb-$IMAGE_SUFFIX" \
"ttcn3-hnodeb-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/hnodeb-tester
mkdir $VOL_BASE_DIR/hnodeb-tester/unix
cp HNB_Tests.cfg $VOL_BASE_DIR/hnodeb-tester/
write_mp_osmo_repo "$VOL_BASE_DIR/hnodeb-tester/HNB_Tests.cfg"
mkdir $VOL_BASE_DIR/hnodeb
mkdir $VOL_BASE_DIR/hnodeb/unix
cp osmo-hnodeb.cfg $VOL_BASE_DIR/hnodeb/
mkdir $VOL_BASE_DIR/unix
SUBNET=33
network_create $SUBNET
echo Starting container with HNodeB
docker run --rm \
$(docker_network_params $SUBNET 20) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/hnodeb:/data \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-hnodeb -d \
$DOCKER_ARGS \
$REPO_USER/osmo-hnodeb-$IMAGE_SUFFIX
echo Starting container with HNodeB testsuite
docker run --rm \
$(docker_network_params $SUBNET 203) \
--ulimit core=-1 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/hnodeb-tester:/data \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-ttcn3-hnodeb-test \
$DOCKER_ARGS \
$REPO_USER/ttcn3-hnodeb-test
echo Stopping containers
docker container kill ${BUILD_TAG}-hnodeb