Skip to content

Commit

Permalink
fix#8
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualespica committed Aug 31, 2023
1 parent 21f7e0a commit c03dcdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ obj/
**/*.lock.hcl
**/node_modules
**/coverage
yarn.lock
yarn.lock
**/docker/.env
8 changes: 6 additions & 2 deletions docker/run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ done


stack_name=$(cd .. && basename "$PWD")
docker build -t pagopa-pdf-engine ../java/
docker run -d -p 60486:80 --name="${stack_name}-java" pagopa-pdf-engine-java -e PDF_ENGINE_NODE_GEN_ENDPOINT="http://${stack_name}-node/api/pdf-generate" -e PDF_ENGINE_NODE_INFO_ENDPOINT="http://${stack_name}-node/api/info"

echo "Node srv ..."
docker build -t pagopa-pdf-engine-node ../node/
docker run -d -p 60487:80 --name="${stack_name}-node" pagopa-pdf-engine-node

echo "Java srv ..."
docker build -t pagopa-pdf-engine-java ../java/
docker run -d -p 60486:80 --name="${stack_name}-java" pagopa-pdf-engine-java -e PDF_ENGINE_NODE_GEN_ENDPOINT="http://${stack_name}-node/api/pdf-generate" -e PDF_ENGINE_NODE_INFO_ENDPOINT="http://${stack_name}-node/api/info"

# waiting the containers
printf 'Waiting for the service'
attempt_counter=0
Expand Down

0 comments on commit c03dcdb

Please sign in to comment.