# Modifications copyright (c) 2021 AT&T Intellectual Property
#
-# Remove all dangling images
+# Remove all dangling images and cleanup /w/workspace and /tmp
docker image prune -f
+echo "Remove onap repository artifacts"
+rm -r /tmp/r/org/onap
+echo "Remove all target folders from workspace"
+rm -r $(find /w/workspace -name target)
###################### Netconf Simulator Setup ######################
+echo "Clean"
+sudo apt clean
+
# Get integration/simulators
if [ -d ${WORKSPACE}/archives/pnf-simulator ]
then
sed -i "s/pnfaddr/${LOCAL_IP}/g" "${REQUEST_DATA_PATH}"/mount.xml
-# Load test dgs
-docker exec ${SDNC_CONTAINER_NAME} mkdir -p /tmp/gra.patch
-
-for file in ${WORKSPACE}/plans/sdnc/testdata/*xml
-do
- docker cp $file ${SDNC_CONTAINER_NAME}:/tmp/gra.patch
- mname=$(basename $file | cut -d. -f1| cut -d_ -f1)
- bname=$(basename $file | cut -d. -f1| cut -d_ -f2-)
- echo ${mname} ${bname} aai-disabled sync >> ${WORKSPACE}/archives/graph.versions
-done
-docker cp ${WORKSPACE}/archives/graph.versions ${SDNC_CONTAINER_NAME}:/tmp/gra.patch
-docker exec ${SDNC_CONTAINER_NAME} /opt/onap/sdnc/svclogic/bin/svclogic.sh install /tmp/gra.patch /opt/onap/sdnc/svclogic/config/svclogic.properties
-
-
#########################################################################
# Export SDNC, AAF-Certservice-Cient, Netconf-Pnp-Simulator Continer Names