Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Leaving platform unspecified builds for local platform not for default #5938

Open
zackdotcomputer opened this issue Sep 9, 2024 · 0 comments
Labels
type/bug Issues that are bugs.

Comments

@zackdotcomputer
Copy link

Description:

In a task with manifest.yml unspecified, where our target servers are amd64 and on a local machine running arm64 architecture, running copilot svc deploy causes the project to be built targeting linux/arm64 rather than the documentation-specified default of linux/x86_64. This means that the image cannot be started and the deploy fails.

Details:

I'm running an M2 Macbook Pro
I am deploying from local to us-east-2

copilot version: v1.34.0
Docker version 27.2.0, build 3ab4256958
(Docker Desktop CE)

Observed result:

The process will proceed as normal, but the container will fail to start. After several failed attempts, it will roll back. The logs will just say that the core container "failed to start". No additional logs are given.

Expected result:

I would have expected the copilot svc deploy command to build for the documented default value of linux/x86_64 rather than for the local platform.

In the event that this mismatch did occur, I would have liked a more descriptive failure state.

Debugging:

I downloaded the image uploaded, used docker image inspect to verify its Architecture was incorrect, specified the platform manually to x86_64, redeployed, and observed a successful deployment.

@zackdotcomputer zackdotcomputer added the type/bug Issues that are bugs. label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issues that are bugs.
Projects
None yet
Development

No branches or pull requests

1 participant