Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 549 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 549 Bytes

Set ENV Variable

export ECR_REPO=""

Build Docker Image

docker build -t pvs_demo .

Run Docker Image

docker run --name pvs_demo -d -p 8040:8040  <image_name>

Authenticate with ECR

aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin $ECR_REPO

Tag Image with ECR repo

docker tag pvs_demo:latest $ECR_REPO

Push Image to ECR

docker push $ECR_REPO

Pull Image from ECR

docker pull $ECR_REPO