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

Support ARM64 #15

Closed
rathboma opened this issue Oct 28, 2020 · 5 comments
Closed

Support ARM64 #15

rathboma opened this issue Oct 28, 2020 · 5 comments
Assignees

Comments

@rathboma
Copy link

I run unit test suites on both x64 and arm64 and use testcontainers-node.

Unfortunately I have to disable the ryuk container on arm64, but I'd like to enable it!

Would it be possible to add an arm64 build of the container?

@codefromthecrypt
Copy link

codefromthecrypt commented Nov 7, 2020

Here's the Dockerfile I used to temporarily work around this and #16 I suspect it is cheating a little, but hope the tips help:

FROM golang:1.15.4-alpine3.12 as workspace
WORKDIR /go/src/github.com/testcontainers/moby-ryuk
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 go build -i -v -ldflags '-s' -o ./bin/moby-ryuk ./


FROM alpine:3.12.1
RUN apk --no-cache add ca-certificates
COPY --from=workspace /go/src/github.com/testcontainers/moby-ryuk/bin/moby-ryuk /app
CMD ["/app"]
docker buildx build --progress plain --tag ghcr.io/openzipkin/testcontainers-ryuk:latest --platform=linux/amd64,linux/arm64,linux/s390x --push .

buildx was setup with qemu per https://github.com/openzipkin/zipkin/blob/master/build-bin/setup_multiarch_docker

@codefromthecrypt
Copy link

once this is done, zipkin can switch to the main images (which also helps remove a log message about overriding them)

Note: we are also asked recently about s390x openzipkin/zipkin#3310

@codefromthecrypt
Copy link

tls: invalid signature by the server certificate: ECDSA verification failure on s390x

mentioned here golang/go#40949

@sscarduzio
Copy link

16:20:39.429 [scala-execution-context-global-12] ERROR org.testcontainers.utility.ResourceReaper - Timed out waiting for Ryuk container to start. Ryuk's logs:
standard_init_linux.go:211: exec user process caused "exec format error"

We are blocked too on this.

@rnorth
Copy link
Member

rnorth commented Apr 17, 2021

This was done in #21

@rnorth rnorth closed this as completed Apr 17, 2021
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

4 participants