Conversation
Amended to include nix 2.3.6 which was released meanwhile |
This is a breaking change! Users need to add the following into their Dockerfile files: RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable RUN nix-channel --update
I think we can also remove these 3 lines because they are essentially a no-op now, but it does not hurt to keep them either: Lines 21 to 23 in d4965ab
|
What makes you say those lines were a no-op? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't mix two independent changes into one PR.
RUN wget https://nixos.org/releases/nix/nix-${NIX_VERSION}/nix-${NIX_VERSION}-x86_64-linux.tar.xz \ | ||
&& tar xf nix-${NIX_VERSION}-x86_64-linux.tar.xz \ | ||
&& addgroup -g 30000 -S nixbld \ | ||
&& for i in $(seq 1 30); do adduser -S -D -h /var/empty -g "Nix build user $i" -u $((30000 + i)) -G nixbld nixbld$i ; done \ | ||
&& mkdir -m 0755 /etc/nix \ | ||
&& echo 'sandbox = false' > /etc/nix/nix.conf \ | ||
&& mkdir -m 0755 /nix && USER=root sh nix-${NIX_VERSION}-x86_64-linux/install \ | ||
&& mkdir -m 0755 /nix && USER=root sh nix-${NIX_VERSION}-x86_64-linux/install --no-channel-add \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't add that change to this image because the change would break everyone's scripts and CI setups. Our users rely on the channel being registered.
Upon further investigation, I realized the |
Fixes #18 by using
--no-channel-add
option to reduce the size of the base imageThis is a breaking change! Users need to add the following into their Dockerfile files: