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

hadolint in Docker image fails on Apple silicon (M1) mac #642

Open
nhhagen opened this issue Jan 13, 2023 · 4 comments
Open

hadolint in Docker image fails on Apple silicon (M1) mac #642

nhhagen opened this issue Jan 13, 2023 · 4 comments

Comments

@nhhagen
Copy link
Member

nhhagen commented Jan 13, 2023

When building docker images with devtools-golang-v1beta1 on a mac qemu fails with a core dump.

docker compose run --rm devtools build \
    APP_NAME=helloworld \
    APP_DOCKERFILE=/usr/local/share/devtools-golang/Dockerfile.app
...
...
hadolint /usr/local/share/devtools-golang/Dockerfile.app
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
@aucampia
Copy link
Contributor

What process fails? Is it hadolint? Maybe try running without hadolint?

My local development flow for this is to build the image from here using:

make IMAGE_NAMES=devtools-golang-v1beta1 build

And then in the project I'm testing it with, specify:

services:
  golang-devtools:
     image: ocreg.invalid/coopnorge/engineering/image/devtools-golang-v1beta1:built

@nhhagen
Copy link
Member Author

nhhagen commented Jan 13, 2023

hadolint. I will explore this issue further and see if I can provide more context and detail.

@nhhagen
Copy link
Member Author

nhhagen commented Jan 16, 2023

It seems like hadolint runs under build as well during validate, this is not the case for building Go code. This is unrelated to the issue, but perhaps something we want to align.

@nhhagen
Copy link
Member Author

nhhagen commented Jan 18, 2023

@nhhagen nhhagen changed the title qemu fails on mac hadolint in Docker image fails on Apple silicon (M1) mac Jan 18, 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

No branches or pull requests

2 participants