Ar first get license key from New Relic UI.
Replace <replace your license key>
to your license key you getted and save Dockerfile.
ARG NR_LICENSEKEY=<replace your license key>
ARG NR_APP_NAME=nru-ecs-petclinic-app
Before build image, check your ECR's URI. You can see from AWS Management console named like nru-ecs-petclinic-repo
.
Execute docker build
, tag
and push
command to push your ECR Registory.
aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin <replace your acountID>.dkr.ecr.ap-northeast-1.amazonaws.com
docker build -t nru-ecs-petclinic-app .
docker tag nru-ecs-petclinic-app:latest <your ECR URI>:latest
docker push <your ECR URI>:latest:latest
To use image you built avobe, create new version of your task definition.
To deploy latest task definition, update Service.