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

Build docker image for Mac (arm64) #648

Closed
jamest-pin opened this issue Apr 23, 2024 · 3 comments
Closed

Build docker image for Mac (arm64) #648

jamest-pin opened this issue Apr 23, 2024 · 3 comments

Comments

@jamest-pin
Copy link

jamest-pin commented Apr 23, 2024

Is your feature request related to a problem? Please describe.
I want to run the docker image locally at work first before deploying in CI.
Currently I get this:

~$ docker pull nablac0d3/sslyze:6.0.0
6.0.0: Pulling from nablac0d3/sslyze
no matching manifest for linux/arm64/v8 in the manifest list entries

Describe the solution you'd like
I'd like to be able to pull the docker image from docker hub and run it on my Mac M series.
This could be accomplished by adding one keyword , linux/arm64 to your github actions workflow.

     - name: Build and Push
        uses: docker/build-push-action@v2 # <<<<<<<< fyi, v5 is the latest.
        with:
          context: ./
          file: ./Dockerfile
          platforms: linux/amd64, linux/arm64 # <<<<<<<<< update here

Describe alternatives you've considered
I attempte to git clone and docker build . myself, but got some python build script error which is above my head to resolve.

Additional context
No additional context. Thanks in advance.

@nabla-c0d3
Copy link
Owner

Hello,
I don't know Docker well enough to figure this out...

@nabla-c0d3 nabla-c0d3 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
@jamest-pin
Copy link
Author

jamest-pin commented Jun 24, 2024

Hello, I don't know Docker well enough to figure this out...

Hi, @nabla-c0d3 all you need to do is add the single keyword onto the line I recommended. There's not figuring out anything 😢

Just edit this line only:

platforms: linux/amd64

Add this onto the end of the line: , linux/arm64
that's it 😃

@gostega
Copy link

gostega commented Jun 24, 2024

@nabla-c0d3 I did a PR for you in case it helps: #655

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

No branches or pull requests

3 participants