diff --git a/deploy_manager.sh b/deploy_manager.sh deleted file mode 100755 index b67ec5c..0000000 --- a/deploy_manager.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/deploy_nomanager.sh b/deploy_nomanager.sh deleted file mode 100755 index 757c84a..0000000 --- a/deploy_nomanager.sh +++ /dev/null @@ -1,3 +0,0 @@ - -rm -fr tomcat/webapps -deploy.sh \ No newline at end of file diff --git a/deploy_tomcat_manager.sh b/deploy_tomcat_manager.sh new file mode 100755 index 0000000..6d816fe --- /dev/null +++ b/deploy_tomcat_manager.sh @@ -0,0 +1,2 @@ +echo "deploying tomcat with tomcat/manager applications" +cp -a tomcat/manager/* tomcat/webapps \ No newline at end of file diff --git a/deploy.sh b/docker_start.sh similarity index 57% rename from deploy.sh rename to docker_start.sh index 1ffc2c9..f7de91a 100755 --- a/deploy.sh +++ b/docker_start.sh @@ -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 \ No newline at end of file +# curl http://localhost:8080/identity-manager/gcube/resource/healthx \ No newline at end of file diff --git a/docker_stop_clean.sh b/docker_stop_clean.sh new file mode 100755 index 0000000..3d38b6f --- /dev/null +++ b/docker_stop_clean.sh @@ -0,0 +1,4 @@ +docker compose stop + +rm -fr tomcat/logs/* +rm -fr tomcat/webapps/*