From a7fbe48e6232388bb0d344045ba01bfa63dc8b3e Mon Sep 17 00:00:00 2001 From: mbadibanga <83414778+mbadibanga@users.noreply.github.com> Date: Sat, 9 Oct 2021 18:03:44 +0200 Subject: [PATCH] Correct location "git apply --stat" does not have correct location of the patch file "aws ecr" used old syntax AWS CLI version 1 which does not work "docker build " does not have the correct location of ecsdemo-crystal directory causing the command to fail --- content/deployment/updatecrystal.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/deployment/updatecrystal.md b/content/deployment/updatecrystal.md index 649f3f5..db7b3af 100644 --- a/content/deployment/updatecrystal.md +++ b/content/deployment/updatecrystal.md @@ -63,7 +63,7 @@ EOF * First, take a look at what changes are in the patch. ```bash -git apply --stat ecsdemo-crystal/add_time_ms.patch +git apply --stat ~/environment/ecsdemo-crystal/add_time_ms.patch ``` * Run **git apply** to apply the patch. @@ -77,9 +77,9 @@ git -C ~/environment/ecsdemo-crystal apply add_time_ms.patch ```bash CRYSTAL_ECR_REPO=$(jq < cfn-output.json -r '.CrystalEcrRepo') -$(aws ecr get-login --no-include-email) +aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin $CRYSTAL_ECR_REPO -docker build -t crystal-service ecsdemo-crystal +docker build -t crystal-service ~/environment/ecsdemo-crystal docker tag crystal-service:latest $CRYSTAL_ECR_REPO:epoch docker push $CRYSTAL_ECR_REPO:epoch ```