sparse-intern-71089
01/22/2021, 8:15 PMshy-oxygen-8874
01/22/2021, 8:17 PMbillowy-army-68599
shy-oxygen-8874
01/22/2021, 8:36 PMshy-oxygen-8874
01/22/2021, 8:37 PMvar image = awsx.ecs.Image.fromDockerBuild("WebAuthImage", {
dockerfile: "D:/code/kaiju/deploy/Dockerfile",
context: "D:/code/kaiju",
args: {
"APP_NAME": "web-auth",
"GITHUB_TOKEN": process.env.GITHUB_TOKEN ?? "ERROR TOKEN"
}
});
shy-oxygen-8874
01/22/2021, 8:37 PMshy-oxygen-8874
01/22/2021, 8:38 PMbillowy-army-68599
shy-oxygen-8874
01/22/2021, 8:55 PM/**
* Creates an [Image] using the detailed build instructions provided in [build].
*
* Either a [name] or [repository] needs to be provided where the built image will be pushed
* to. If [repository] is provided, it will be used as-is. Otherwise, a new one will be
* created on-demand, using the [name] value.
*/
In my account I can see the following ECR repo created:
webauthimage-22f1781
The build command that pulumi is running is tagging the output as:
d0a2603d-container
So if pulumi is trying to make that tag match the repo name, it doesn't appear to match.shy-oxygen-8874
01/22/2021, 8:57 PMbillowy-army-68599
image.ecr.foo:d0a2603d-container
shy-oxygen-8874
01/22/2021, 9:02 PMbillowy-army-68599
shy-oxygen-8874
01/22/2021, 9:19 PMshy-oxygen-8874
01/22/2021, 9:23 PMawsx:x:ecs:FargateTaskDefinition (WebAuthService):
debug: Building container image at '{"dockerfile":"D:/code/kaiju/deploy/Dockerfile","context":"D:/code/kaiju","args":{"APP_NAME":"web-auth","GITHUB_TOKEN":"REDACTED"}}'
debug: build complete: d0a2603d-container (<http://ACCOUNT.dkr.ecr.us-west-2.amazonaws.com/webauthimage-22f1781:2b0fd997c9deadf744316f3e2f0a3e5fa81790c1610b8d775a5be960e7079302|ACCOUNT.dkr.ecr.us-west-2.amazonaws.com/webauthimage-22f1781:2b0fd997c9deadf744316f3e2f0a3e5fa81790c1610b8d775a5be960e7079302>)
But then when I open up the image manifest, the repo digest is:
<http://ACCOUNT.dkr.ecr.us-west-2.amazonaws.com/cdk-hnb659fds-container-assets-ACCOUNT-us-west-2@sha256:d7268bfc79b08ebff55959cb4455e4f90ce1d2f83aee7cef8ee382d8a615b9bd|ACCOUNT.dkr.ecr.us-west-2.amazonaws.com/cdk-hnb659fds-container-assets-ACCOUNT-us-west-2@sha256:d7268bfc79b08ebff55959cb4455e4f90ce1d2f83aee7cef8ee382d8a615b9bd>
shy-oxygen-8874
01/22/2021, 9:37 PMshy-oxygen-8874
01/22/2021, 9:42 PM