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

add ARM64/M1 support for building olbase image #8254

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

RayBB
Copy link
Collaborator

@RayBB RayBB commented Sep 1, 2023

Closes #6316

I want to be able to build on my m1 mac and this fix enables that.

Technical

Solution based on discussion in the issue above.
TARGETARCH wasn't working so I went with uname -m which seems to be a common solution.

Testing

It works on my m1 mac. I also tested it on gitpod and had no problems.
But ultimately openresty isn't used for dev so someone will need to check it on testing to be sure.

Run docker build -t openlibrary/olbase:my-test-label -f docker/Dockerfile.olbase .

Stakeholders

@cdrini @cclauss

@cdrini
Copy link
Collaborator

cdrini commented Sep 11, 2023

Merging this one through without testing it ; this does add some complexity to our olbase, but I can see the value for Mac users who might want to build olbase. We'll try it in the next deploy, and if it fails we will roll this change back.

Actually maybe @scottbarnes would you mind testing olbase build on linux with these changes? Then merge if the build succeeds. Ty!

@cdrini cdrini assigned scottbarnes and unassigned cdrini Sep 11, 2023
@scottbarnes
Copy link
Collaborator

This built for me with --no-cache. Looks good!

@scottbarnes scottbarnes merged commit 34c4256 into internetarchive:master Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot build olbase image on ARM machines (eg M1 Macs)
4 participants