Skip to content

kaojiri/nru-for-aws-containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Install New Relic APM for nru-for-aws-containers

How to build docker image

Get license key from New Relic

Ar first get license key from New Relic UI.

Modify Dockerfile

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

Build image and push to ECR registory

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

Create new version of Task definition

To use image you built avobe, create new version of your task definition.

Update Service

To deploy latest task definition, update Service.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published