From acd884fb1a8292b450e66c8f48156f4cef52a082 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Thu, 15 Feb 2024 17:43:01 +0530 Subject: [PATCH] fix: allow building images in arm64 (#2161) This should allow building images in arm64, fixing our release issue. I have tried this by running the docker image builder script locally ( on mac) to produce an arm64 image --- core/server/Dockerfile | 2 +- core/server/Dockerfile.debug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/Dockerfile b/core/server/Dockerfile index 83fa2599d1..31a9b1f382 100644 --- a/core/server/Dockerfile +++ b/core/server/Dockerfile @@ -5,7 +5,7 @@ RUN apk update && apk add --no-cache bash protobuf-dev sudo shadow curl xz # Install Nix # We need to set filter-syscalls to false to allow Nix to work properly inside a container: https://github.com/NixOS/nix/issues/5258 -ENV NIX_CONFIG=$'filter-syscalls = false\nexperimental-features = nix-command flakes' +ENV NIX_INSTALL_ARGS="--extra-conf 'filter-syscalls = false'" RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes ARG TARGETARCH diff --git a/core/server/Dockerfile.debug b/core/server/Dockerfile.debug index 0061f97af8..212f5d92f4 100644 --- a/core/server/Dockerfile.debug +++ b/core/server/Dockerfile.debug @@ -5,7 +5,7 @@ RUN apk update && apk add --no-cache bash protobuf-dev sudo shadow curl xz # Install Nix # We need to set filter-syscalls to false to allow Nix to work properly inside a container: https://github.com/NixOS/nix/issues/5258 -ENV NIX_CONFIG=$'filter-syscalls = false\nexperimental-features = nix-command flakes' +ENV NIX_INSTALL_ARGS="--extra-conf 'filter-syscalls = false'" RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes # Make sure that you changed the port inside the APIC's code before changing it here