deploy docker

This commit is contained in:
Alfredo Oliviero 2024-02-16 16:39:02 +01:00
parent 4bd8a871b4
commit 3ba601922d
5 changed files with 13 additions and 16 deletions

View File

@ -1,11 +0,0 @@
echo "deploying tomcat with tomcat/manager applications"
mkdir tomcat/logs
mkdir tomcat/webapps
rm -fr tomcat/webapps
touch tomcat/logs
touch tomcat/webapps
cp -a tomcat/manager tomcat/webapps
./deploy.sh

View File

@ -1,3 +0,0 @@
rm -fr tomcat/webapps
deploy.sh

2
deploy_tomcat_manager.sh Executable file
View File

@ -0,0 +1,2 @@
echo "deploying tomcat with tomcat/manager applications"
cp -a tomcat/manager/* tomcat/webapps

View File

@ -1,4 +1,9 @@
mkdir -p tomcat/logs
mkdir -p tomcat/webapps
rm -fr tomcat/logs/*
rm -fr tomcat/webapps/*
mvn clean package
rm -f tomcat/logs/*.log
docker compose up -d --build --force-recreate
# curl http://localhost:8080/identity-manager/gcube/resource/health
# curl http://localhost:8080/identity-manager/gcube/resource/healthx

4
docker_stop_clean.sh Executable file
View File

@ -0,0 +1,4 @@
docker compose stop
rm -fr tomcat/logs/*
rm -fr tomcat/webapps/*