-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f2c6e
commit 02f54f2
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
terraform/terraform-modules/ecs-ecr/docker/deploy-ecr-images.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Login to ECR | ||
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 441083951559.dkr.ecr.us-west-2.amazonaws.com | ||
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com | ||
|
||
# Deploy pds-nucleus-config-init ECR image | ||
cd ./terraform-modules/ecs-ecr/docker/config-init | ||
docker build -t pds-nucleus-config-init . | ||
docker tag pds-nucleus-config-init:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest | ||
docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest | ||
docker tag pds-nucleus-config-init:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest | ||
docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest | ||
|
||
# Deploy pds-nucleus-s3-to-efs-copy ECR image | ||
cd ../s3-to-efs-copy | ||
docker build -t pds-nucleus-s3-to-efs-copy . | ||
docker tag pds-nucleus-s3-to-efs-copy:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest | ||
docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest | ||
docker tag pds-nucleus-s3-to-efs-copy:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest | ||
docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest | ||
|
||
# Deploy pds-registry-loader-harvest ECR image | ||
docker image pull nasapds/registry-loader | ||
docker tag nasapds/registry-loader:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest | ||
docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest | ||
docker tag nasapds/registry-loader:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest | ||
docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest | ||
|
||
# Deploy pds-validate ECR image | ||
docker image pull nasapds/validate | ||
docker tag nasapds/validate:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest | ||
docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest | ||
docker tag nasapds/validate:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest | ||
docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest |