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

Docker with GoReplay on Mac M1 get "exec ./gor: exec format error" #1190

Open
mosheeshel opened this issue May 22, 2023 · 2 comments
Open

Docker with GoReplay on Mac M1 get "exec ./gor: exec format error" #1190

mosheeshel opened this issue May 22, 2023 · 2 comments

Comments

@mosheeshel
Copy link

Trying to create a docker-compose harness to run goreplay locally
this is the dockerfile

FROM alpine:3.16 as builder

ARG RELEASE_VERSION=1.3.3

RUN apk add --no-cache ca-certificates openssl
RUN wget https://github.com/buger/goreplay/releases/download/${RELEASE_VERSION}/gor_${RELEASE_VERSION}_mac.tar.gz -O gor.tar.gz
RUN tar xzf gor.tar.gz
RUN chmod 775 gor

ENTRYPOINT ["./gor"]

This is the docker-compose.yml

version: '3.8'
services:
#..... more services, not important
  golistener:
    network_mode: "host"
    build: ./goreplay

    stdin_open: true
    platform: linux/amd64
    entrypoint:
      - './gor'
      - '--input-raw=:8080'
      - '--output-stdout'

I build this with docker-compose --verbose up --build

My buildX configuration uses --platform linux/amd64
I also tried using the x86_64 and x64 - then I get the error:
2023/05/22 15:16:01 tunl0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: Function not implemented

another thing I tried was to run it as an application on the terminal directly (no Docker) - this works just fine, but I need it in a docker - any ideas?

@mosheeshel mosheeshel closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
@buger
Copy link
Owner

buger commented May 25, 2023

Hi! To be frank it works find on mac using standard binaries. Docker on M1 is a tricky one...

@mosheeshel mosheeshel reopened this May 29, 2023
@mosheeshel
Copy link
Author

@buger Yes, I tested the Mac build on my M1 and it indeed works fine.
If you have any tips on a docker version with M1, I'd love to hear...
Having known GoReplay when it was simply Gor :-) about 10 years ago, I am constantly amazed by your work! so thanks!

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