Choria/Vagrant Demo on M1 Mac #36
-
Hi: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
At present I don’t have a m1 build that will work. But I got a m2 this week so it will probsbly get fixed soon |
Beta Was this translation helpful? Give feedback.
-
That said, you can run x86_64 linux images on a m1, its a bit slow (uses qemu) but if you patch https://github.com/ripienaar/choria-compose like this below then it will work for you diff --git a/docker-compose.yaml b/docker-compose.yaml
index 1737a93..d8c379c 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -1,6 +1,7 @@
version: "3"
services:
broker.choria:
+ platform: linux/amd64
hostname: broker.choria.local
image: docker.io/choria/choria:${CHORIA_TAG}
dns_search: choria.local
@@ -22,6 +23,7 @@ services:
- nats
replicator.choria:
+ platform: linux/amd64
hostname: replicator.choria.local
image: choria/stream-replicator:${SR_TAG}
dns_search: choria.local
@@ -37,6 +39,7 @@ services:
- nats.choria
provisioner.choria:
+ platform: linux/amd64
hostname: provisioner.choria.local
image: choria/provisioner:${PROV_TAG}
dns_search: choria.local
@@ -50,6 +53,7 @@ services:
- broker.choria
server.choria:
+ platform: linux/amd64
image: docker.io/choria/choria:${CHORIA_TAG}
dns_search: choria.local
domainname: choria.local
@@ -66,6 +70,7 @@ services:
- broker.choria
aaa.choria:
+ platform: linux/amd64
hostname: aaa.choria.local
image: choria/aaasvc:${AAA_TAG}
dns_search: choria.local
@@ -80,6 +85,7 @@ services:
- broker.choria
client.choria:
+ platform: linux/amd64
hostname: client.choria.local
image: docker.io/choria/choria:${CHORIA_TAG}
dns_search: choria.local
diff --git a/setup.sh b/setup.sh
index 046567f..3f93498 100755
--- a/setup.sh
+++ b/setup.sh
@@ -21,6 +21,7 @@ then
. .env
docker run \
+ --platform linux/amd64 \
--rm \
--entrypoint /tmp/choria/setup.sh \
-v `pwd`/credentials:/tmp/choria/credentials \ |
Beta Was this translation helpful? Give feedback.
At present I don’t have a m1 build that will work. But I got a m2 this week so it will probsbly get fixed soon