Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit cc2668d8 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

export container logs

parent 16682f04
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ PREFIX="smp-sml-tomcat-mysql"
# clear volume and containers - to run restart from scratch
function clearOldContainers {
echo "Save docker log to docker-file"
docker logs ${PREFIX} 2>&1 > smp-container.log
echo "Clear containers and volumes"
docker-compose -p "${PREFIX}" rm -s -f -v
}
......
......@@ -8,6 +8,8 @@ PREFIX="smp-tomcat-mysql"
# clear volume and containers - to run restart from scratch
function clearOldContainers {
echo "Save docker log to docker-file"
docker logs ${PREFIX} 2>&1 > smp-container.log
echo "Clear containers and volumes"
docker-compose -p "${PREFIX}" rm -s -f -v
}
......
......@@ -12,6 +12,10 @@ PREFIX="smp-wls-orcl"
function clearOldContainers {
echo "Database stopped" > ./status-folder/database.status
echo "Save docker log to docker-file"
docker logs ${PREFIX} 2>&1 > smp-container.log
echo "Clear containers and volumes"
docker-compose -p "${PREFIX}" rm -s -f -v
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment