-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix/docker m1 #1353
Fix/docker m1 #1353
Conversation
Thanks for this investigation and write-up. I have two different questions / curious if either works:
|
|
|
|
Re-opened PR with the platform fix #1354 |
Using this PR to test and log issues.
Prepping my machine
Docker version 20.10.24, build 297e128
benefits
dev
, notmain
🙃How I arrived here
Eligibility Server
bin/build.sh
fails at the Server step b/c of Fix platform for Apple hardware eligibility-server#247docker compose build --no-cache client
successfullyBenefits dev container installation
Unable to build dev image #989
add workaround for BuildKit issue on Apple M1 hardware #1027 fix no longer working.
Open VS Code. Then tried to open Dev Container (no cache mode). Fails quickly, with this error at the benefits_client step:
bash failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Not finding local images that do exist, trying to pull instead moby/moby#42893
Docker cant find local images on macbook m1 docker/cli#3286
https://forums.docker.com/t/not-finding-local-unprefixed-docker-image-in-the-local-cache/113297/2
Making this change 4ef33da, then running
docker compose build --no-cache client
, then Re-open in Container without Cache, worked.Benefits dev container usage
Does not work
Does work
Tested
git pull
git commit
, pre-commitbin/makemessages.sh
bin/makemigrations.sh
tests/pytest.run.sh