Open legut2 opened 2 years ago
I do not have an M1 machine to test on. Did you try the suggestion in that Stackoverflow post to add --platform=
to the Dockerfile?
To get up-and-running, the easiest solution might be to just use a temporary Cloud9 instance to run the installation.
I don't consider this issue solved. I did just end up using a different machine (which has ubuntu and an intel chip) and it worked to get me past this point. So I do believe I have confirmed the problem does seem to be related to the mac M1 arm processor.
Looks like there are ARM flavors of both the Amazon Corretto and Alpine images available from Docker Hub. You can alter the dockerfile in the Java sample project accordingly and see if it will build on your M1 mac.
I'm using a M1 machine and had the same issue. Tried to follow the suggestion from the stack overflow page, cleaned some internal cache and changed the following line:
FROM --platform=linux/amd64 amazoncorretto:11-alpine AS build
It worked for building the docker image, but when trying to provision a new tenant using this image. ECS tasks are giving errors, so it is not a right solution:
[FATAL tini (6)] exec java failed: No such file or directory
as suggested by @brtrvn, the easiest installation solution is probably just use cloud9 directly. https://github.com/awslabs/aws-saas-boost/blob/main/docs/install_using_cloud9.md
:question: General Issue
I am unfamiliar with this codebase and was going through the getting started steps. I got to step 7 and when running install.sh it gave me an error. When I looked into the error I stumbled across this stackoverflow post. Which leads me to believe it's my machine's architecture that is the problem.
The Question
How do I finish deploying the sample app? I think I have to modify the dockerfile but what do I change it to. I'm unfamiliar with the architecture of this project.
Environment
cdk version 2.15.0 (build 151055e)
Other information