mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Create run_process.sh
This commit is contained in:
parent
e501d7672b
commit
edc876d62a
1 changed files with 14 additions and 0 deletions
14
deploy/scripts/run_process.sh
Normal file
14
deploy/scripts/run_process.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
REGION="ap-northeast-2"
|
||||||
|
ECR_REPOSITORY="257307634175.dkr.ecr.ap-northeast-2.amazonaws.com"
|
||||||
|
ECR_DOCKER_IMAGE="${ECR_REPOSITORY}/aws01-spring-petclinic"
|
||||||
|
ECR_DOCKER_TAG="latest"
|
||||||
|
|
||||||
|
aws ecr get-login-password --region ${REGION} \
|
||||||
|
| docker login --username AWS --password-stdin ${ECR_REPOSITORY};
|
||||||
|
|
||||||
|
export IMAGE=${ECR_DOCKER_IMAGE};
|
||||||
|
export TAG=${ECR_DOCKER_TAG};
|
||||||
|
cd /home/ubuntu/deploy
|
||||||
|
docker-compose up -d --build;
|
Loading…
Reference in a new issue