adobe / experience-platform-streaming-connect

Experience platform Streaming Connectors for Data Ingress
Apache License 2.0
23 stars 20 forks source link

Unable to run it on Mac M1 c #60

Open arpanmerkle opened 1 year ago

arpanmerkle commented 1 year ago

Subject of the issue

Unable to run it on Mac M1 c

Your environment

Docker Desktop 4.20.1 (110738)

Steps to reproduce

Ran it for the first time on Mac pro with M1 chip

Expected behaviour

Actual behaviour

AchimKre commented 1 year ago

I have the same problem.

`docker build -t streaming-connect . [+] Building 2.3s (4/4) FINISHED
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.58kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 700B 0.0s => ERROR [internal] load metadata for docker.io/adoptopenjdk/openjdk11:jre-11.0.11_9-alpine 2.3s => [auth] adoptopenjdk/openjdk11:pull token for registry-1.docker.io 0.0s

[internal] load metadata for docker.io/adoptopenjdk/openjdk11:jre-11.0.11_9-alpine:

Dockerfile:13

11 | ## 12 |
13 | >>> FROM adoptopenjdk/openjdk11:jre-11.0.11_9-alpine 14 |
15 | ENV SCALA_VERSION="2.12" \

ERROR: failed to solve: adoptopenjdk/openjdk11:jre-11.0.11_9-alpine: no match for platform in manifest sha256:ed7ea16ca04b09cb381a094dff07c5d5ce5f0ead97540fcfc4b67c054e25e217: not found`

docker image build with parameter --platform linux/amd64 works, but docker-compose up seems not work correctly in this emulation mode (services kafka-connect-1, kafka-rest-proxy-1 and kafka1-1 are exited right after the startup). It works with my old MacBook with Intel processor.

OneCricketeer commented 10 months ago

This isn't an issue with the Connector; running connect-standaone / connect-distributed directly on your Mac with this connector should work.

Otherwise, you can switch the Java Docker base image to eclipse-temurin:11-jre, which replaced adoptopenjdk images. Done in #56