Skip to content

Commit caba63c

Browse files
authored
[docker] fix for devbox docker image root-user build (#1811)
## Summary This fix is due to customer message in discord mentioning the launcher having old version. Nix installation in `docker-image-build-publish` workflow was failing for root-user mode. This PR fixes it. The fix was based on recommendation from LnL7/nix-docker#41 (comment) ## How was it tested? https://github.com/jetpack-io/devbox/actions/runs/7893709911
1 parent 821906b commit caba63c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/devbox/generate/tmpl/DevboxImageDockerfileRootUser

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN apt-get update
55
RUN apt-get -y install bash binutils git xz-utils wget sudo
66

77
# Step 2: Installing Nix
8-
RUN wget --output-document=/dev/stdout https://nixos.org/nix/install | sh -s -- --daemon
8+
RUN mkdir -p /etc/nix/
9+
RUN echo "filter-syscalls = false" >> /etc/nix/nix.conf && wget --output-document=/dev/stdout https://nixos.org/nix/install | sh -s -- --daemon
910
RUN . ~/.nix-profile/etc/profile.d/nix.sh
1011

1112
ENV PATH="/root/.nix-profile/bin:$PATH"

0 commit comments

Comments
 (0)