Skip to content

Commit 382ff54

Browse files
authored
chore: fix assets bundling integ test (#35228)
In this test, the platform specified to bundle the asset is `linux/amd64`. But the image used doesn't specify any platform. This is causing the `integ.assets.bundling.docker-opts.ts` to fail with the message: >Unable to find image 'cdk-66687611b68d3de0f92ed971e4c457e4828f2e0c877c8b1f5fab42ac3d2772ec:latest' locally >docker: Error response from daemon: pull access denied for cdk-66687611b68d3de0f92ed971e4c457e4828f2e0c877c8b1f5fab42ac3d2772ec, repository does not exist or may require 'docker login' > >Run 'docker run --help' for more information Add the platform to the build parameters of the Docker image. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent dd1fccc commit 382ff54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ const stack = new Stack(app, 'cdk-integ-assets-bundling-docker-opts');
99
new assets.Asset(stack, 'BundledAsset', {
1010
path: path.join(__dirname, 'markdown-asset'), // /asset-input and working directory in the container
1111
bundling: {
12-
image: DockerImage.fromBuild(path.join(__dirname, 'alpine-markdown')), // Build an image
12+
// Build an image
13+
image: DockerImage.fromBuild(path.join(__dirname, 'alpine-markdown'), {
14+
platform: 'linux/amd64',
15+
}),
1316
command: [
1417
'sh', '-c', `
1518
markdown index.md > /asset-output/index.html

0 commit comments

Comments
 (0)