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

fix: replace nix installer #2163

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ FROM alpine:3.17
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_INSTALL_ARGS="--extra-conf 'filter-syscalls = false'"
RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes
# We need to set filter-syscalls to false to allow Nix install to work properly inside a container with cross platform emulation
# via QEMU: https://github.com/NixOS/nix/issues/5258 and use a more flexible installer https://github.com/DeterminateSystems/nix-installer
# with a workaround on the same issue: https://github.com/DeterminateSystems/nix-installer/issues/324)
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --no-confirm --init none --extra-conf "filter-syscalls = false"

ARG TARGETARCH

Expand Down
7 changes: 4 additions & 3 deletions core/server/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ FROM alpine:3.19
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_INSTALL_ARGS="--extra-conf 'filter-syscalls = false'"
RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes
# We need to set filter-syscalls to false to allow Nix install to work properly inside a container with cross platform emulation
# via QEMU: https://github.com/NixOS/nix/issues/5258 and use a more flexible installer https://github.com/DeterminateSystems/nix-installer
# with a workaround on the same issue: https://github.com/DeterminateSystems/nix-installer/issues/324)
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --no-confirm --init none --extra-conf "filter-syscalls = false"

# Make sure that you changed the port inside the APIC's code before changing it here
EXPOSE 50103
Expand Down
Loading