Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Mel 462 #82

Merged
merged 17 commits into from
Jul 29, 2019
Merged

Mel 462 #82

merged 17 commits into from
Jul 29, 2019

Conversation

wsill
Copy link
Contributor

@wsill wsill commented Jul 8, 2019

Deployment for ECS docker image as part of pipeline

Copy link
Contributor

@rdoughty rdoughty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried testing and got an error. I deleted the dockerhub image(hesburgh/marble-image-processing), pulled this branch, deployed it, and ran a test through the manifest pipeline. I got the following error - "Reason":"CannotPullContainerError: Error response from daemon: manifest for hesburgh/marble-image-processing:latest not found","TaskArn":"arn:aws:ecs:us-east-1:333680067100:task/7534c42a-5897-46f8-83f3-748f5e08397b"}],

The deploy/cloudformation/manifest-pipeline.yml parameter ContainerImageUrl default pointing to the Docker Hub image. Do we have to specify an image url? Or is something else wrong?

@ialford
Copy link
Contributor

ialford commented Jul 8, 2019

I tried testing and got an error. I deleted the dockerhub image(hesburgh/marble-image-processing), pulled this branch, deployed it, and ran a test through the manifest pipeline. I got the following error - "Reason":"CannotPullContainerError: Error response from daemon: manifest for hesburgh/marble-image-processing:latest not found","TaskArn":"arn:aws:ecs:us-east-1:333680067100:task/7534c42a-5897-46f8-83f3-748f5e08397b"}],

The deploy/cloudformation/manifest-pipeline.yml parameter ContainerImageUrl default pointing to the Docker Hub image. Do we have to specify an image url? Or is something else wrong?

Is the stack you built still up somewhere? I'd like to see the CloudFormation that is being deployed by the pipeline.

@wsill
Copy link
Contributor Author

wsill commented Jul 8, 2019

The latest image for the container repo is "marbl-image-1cs1q74l7njir:latest". The one you are using is the old hard coded one. As Ian suggested, we would have to look at your CloudFormation to see what ContainerImageUrl value it is passing.

@rdoughty
Copy link
Contributor

rdoughty commented Jul 8, 2019

Do we want that has a default value then?

I have updated that parameter and am now facing - Error response from daemon: pull access denied for marbl-image-1cs1q74l7njir, repository does not exist or may require 'docker login'","TaskArn":"arn:aws:ecs:us-east-1:333680067100:task/ea852ef4-623a-46f8-ad6c-f6ecc39de4d7"}

I'll try and work through that as well

@jgondron
Copy link
Contributor

jgondron commented Jul 15, 2019

The existing changes look good. One additional thing we need added is tagging the ECR with the most recent build that passed testing and was successfully deployed to production. For an example of this, see https://github.com/ndlib/marble-blueprints/blob/master/deploy/cloudformation/iiif-service-pipeline.yml#L494

Copy link
Contributor

@ialford ialford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see @jgondron 's review on tagging the built images in ECR - other than that it looks pretty good to me.

@wsill
Copy link
Contributor Author

wsill commented Jul 17, 2019

Changes to add tag to ECR for production have been added.

@wsill wsill closed this Jul 17, 2019
@wsill wsill reopened this Jul 17, 2019
@wsill
Copy link
Contributor Author

wsill commented Jul 17, 2019

Okay, added GitHub posting as requested by Justin. Ran a full test of pipeline at https://us-east-1.console.aws.amazon.com/codesuite/codepipeline/pipelines/marble-manifest-deployment-ProjectPipeline-QPTKU43ETC8H/view

@jgondron jgondron merged commit 7e8adae into master Jul 29, 2019
@jgondron jgondron deleted the MEL-462 branch July 29, 2019 19:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants