3 #Stop all running containers
4 docker kill "$(docker ps -q -a)"
5 docker rm "$(docker ps -q -a)"
8 # Clone Simulators for DFC from integration repo.
9 mkdir -p $WORKSPACE/archives/dfc
10 cd $WORKSPACE/archives/dfc
15 git clone --depth 1 https://gerrit.onap.org/r/integration -b master
16 #Location of all individual simulators for DFC
17 echo "Determine SIM_ROOT based on the WORKSPACE"
18 SIM_ROOT=$WORKSPACE/archives/dfc/integration/test/mocks/datafilecollector-testharness
20 rm $SIM_ROOT/simulator-group/consul/consul/cbs_localhost_config.hcl || true
22 echo "Using SIM_ROOT from environmental variable: " $SIM_ROOT
25 #Location of the above simulators when run as a group. For start+config and stop.
26 SIMGROUP_ROOT=$SIM_ROOT/simulator-group
28 #Default IP for all containers
30 #Location of script to start and stop dfc
31 DFC_ROOT=$WORKSPACE/scripts/dcaegen2-collectors-datafile/dfc-management
33 #Make the env vars availble to the robot scripts
34 ROBOT_VARIABLES="-b debug.log -v SIMGROUP_ROOT:${SIMGROUP_ROOT} -v SIM_IP:${SIM_IP} -v DFC_ROOT:${DFC_ROOT}"
40 #Build needed simulator images. DR and MR simulators
44 docker build -t mrsim:latest .
48 docker build -t drsim_common:latest .
50 #Prepare the ftp simulator files.
54 #Copy ftp config for the ftp servers
55 cp -r ../ftpes-sftp-server/configuration .
56 cp -r ../ftpes-sftp-server/tls .
58 cd ../ftpes-sftp-server
59 docker build -t ftpes_vsftpd:latest -f Dockerfile-ftpes .
62 #All containers will be started and stopped via the robot tests.