Skip to content
Snippets Groups Projects
setup-eccs-dev.sh 798 B
#!/bin/bash

echo "Stop and remove all"
docker compose down

echo "Remove old container image to be able to create it from scratch"
docker rmi gitlab.software.geant.org:5050/edugain/eccs:dev

echo "Start docker container creation"
docker compose up -d

echo ""
echo "ECCS URL:"
echo ""
echo "http://localhost:8080/eccs"
echo ""
echo "Useful command to access the 'eccs' terminal:"
echo ""
echo "docker exec -it -u root eccs bash"
echo ""
echo "Run ECCS manually for today:"
echo ""
echo "docker exec -it -u eccs -w /home/eccs eccs ./cleanAndRunEccs.sh > /proc/1/fd/1 2>&1"
echo ""
echo "Delete all results of today"
echo ""
echo "docker exec -it -u eccs -w /home/eccs/ eccs rm -rf html/$(date +%Y-%m-%d) output/eccs_$(date +%Y-%m-%d).log logs/*_$(date +%Y-%m-%d).log stats/*_$(date +%Y-%m-%d).log"