diff --git a/docs/04_lab_secrets/0403.md b/docs/04_lab_secrets/0403.md index 07b3179..9110e17 100644 --- a/docs/04_lab_secrets/0403.md +++ b/docs/04_lab_secrets/0403.md @@ -67,14 +67,9 @@ The following three apps of your application use the database hosted by the Azur ```bash cd staging-acr - rm spring-petclinic-customers-service-$VERSION.jar - rm spring-petclinic-visits-service-$VERSION.jar - rm spring-petclinic-vets-service-$VERSION.jar - cp ../spring-petclinic-customers-service/target/spring-petclinic-customers-service-$VERSION.jar spring-petclinic-customers-service-$VERSION.jar - cp ../spring-petclinic-visits-service/target/spring-petclinic-visits-service-$VERSION.jar spring-petclinic-visits-service-$VERSION.jar - cp ../spring-petclinic-vets-service/target/spring-petclinic-vets-service-$VERSION.jar spring-petclinic-vets-service-$VERSION.jar export APP_NAME="customers-service" + cp ../spring-petclinic-$APP_NAME/target/spring-petclinic-$APP_NAME-$VERSION.jar spring-petclinic-$APP_NAME-$VERSION.jar sed -i "s|my-service|$APP_NAME|g" Dockerfile az containerapp update \ @@ -84,9 +79,10 @@ The following three apps of your application use the database hosted by the Azur --set-env-vars APPLICATIONINSIGHTS_CONNECTION_STRING=$AI_CONNECTIONSTRING APPLICATIONINSIGHTS_CONFIGURATION_CONTENT='{"role": {"name": "customers-service"}}' InstrumentationKey=$AI_CONNECTIONSTRING sed -i "s|$APP_NAME|my-service|g" Dockerfile - + rm spring-petclinic-$APP_NAME-$VERSION.jar export APP_NAME="vets-service" + cp ../spring-petclinic-$APP_NAME/target/spring-petclinic-$APP_NAME-$VERSION.jar spring-petclinic-$APP_NAME-$VERSION.jar sed -i "s|my-service|$APP_NAME|g" Dockerfile az containerapp update \ @@ -96,12 +92,12 @@ The following three apps of your application use the database hosted by the Azur --set-env-vars APPLICATIONINSIGHTS_CONNECTION_STRING=$AI_CONNECTIONSTRING APPLICATIONINSIGHTS_CONFIGURATION_CONTENT='{"role": {"name": "vets-service"}}' InstrumentationKey=$AI_CONNECTIONSTRING sed -i "s|$APP_NAME|my-service|g" Dockerfile - + rm spring-petclinic-$APP_NAME-$VERSION.jar export APP_NAME="visits-service" + cp ../spring-petclinic-$APP_NAME/target/spring-petclinic-$APP_NAME-$VERSION.jar spring-petclinic-$APP_NAME-$VERSION.jar sed -i "s|my-service|$APP_NAME|g" Dockerfile - az containerapp update \ --name $APP_NAME \ --resource-group $RESOURCE_GROUP \ @@ -109,6 +105,7 @@ The following three apps of your application use the database hosted by the Azur --set-env-vars APPLICATIONINSIGHTS_CONNECTION_STRING=$AI_CONNECTIONSTRING APPLICATIONINSIGHTS_CONFIGURATION_CONTENT='{"role": {"name": "visits-service"}}' InstrumentationKey=$AI_CONNECTIONSTRING sed -i "s|$APP_NAME|my-service|g" Dockerfile + rm spring-petclinic-$APP_NAME-$VERSION.jar ``` 1. This will redeploy each of your apps. After redeploy, double check that yu are still able to connect to the database and see data in the apps. If that is not the case, use the logs to troubleshoot.