aws-samples / aws-samples/amazon-cloudwatch-container-insights

Unable to build the sample Dockerfile with multi architecture

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
178
Forks
117
Avg merge
1d 10h
Merged PRs (30d)
3

Description

using this sample:
https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/master/cloudwatch-agent-dockerfile/Dockerfile

when building it with this command :
`docker buildx build --platform linux/amd64,linux/arm64/v8 .`

I'm getting this error:
#13 117.7 dpkg: error processing archive amazon-cloudwatch-agent.deb (--install):
#13 117.7 package architecture (amd64) does not match system (arm64)
#13 117.7 Errors were encountered while processing:
#13 117.7 amazon-cloudwatch-agent.deb

Could you assist to resolve it?

Contributor guide

Open the contributing guide

Research direction

Start with the sample cloudwatch-agent-dockerfile/Dockerfile and reproduce the reported `docker buildx build --platform linux/amd64,linux/arm64/v8 .` command. Trace how amazon-cloudwatch-agent.deb is selected and installed for each target architecture. Done means the sample builds successfully for both linux/amd64 and linux/arm64/v8 without the dpkg architecture error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile, shell
Domain
build-system, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.