pranadb icon indicating copy to clipboard operation
pranadb copied to clipboard

Fix Docker compose demo for M1 chips

Open severb opened this issue 2 years ago • 3 comments

make start fails on M1 with the following error:

 => ERROR [build_base 7/7] RUN go build -tags musl -o ./out/pranadb ./cmd/pranadb                                                                                                                                                                                                                      13.9s
------
 > [build_base 7/7] RUN go build -tags musl -o ./out/pranadb ./cmd/pranadb:
#14 13.37 # github.com/confluentinc/confluent-kafka-go/kafka
#14 13.37 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux.a(rdkafka_error.o): Relocations in generic ELF (EM: 62)
#14 13.37 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux.a(rdkafka_error.o): Relocations in generic ELF (EM: 62)
#14 13.37 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux.a: error adding symbols: file in wrong format
#14 13.37 collect2: error: ld returned 1 exit status

Running DOCKER_DEFAULT_PLATFORM=linux/amd64 make start fixes it, but we should make it work out of the box.

severb avatar May 12 '22 18:05 severb

@severb assigning this to you. I don't have an M1 so this is hard for me to reproduce.

purplefox avatar Jun 11 '22 09:06 purplefox

Will adding DOCKER_DEFAULT_PLATFORM=linux/amd64 make start to Docker-based demo doc be sufficient to close this issue?

xuebingli avatar Aug 26 '22 21:08 xuebingli

Will adding DOCKER_DEFAULT_PLATFORM=linux/amd64 make start to Docker-based demo doc be sufficient to close this issue?

We need someone who has an M1 laptop to verify that. If it works, then the issue can be closed.

purplefox avatar Sep 15 '22 11:09 purplefox