Skip to content

feat(dogfood): install nix package manager #5308

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

Merged
merged 19 commits into from
Jan 26, 2023
Merged
Changes from 1 commit
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
Next Next commit
feat(dogfood): install nix package manager
  • Loading branch information
ghuntley committed Dec 22, 2022
commit 78e395e14ab18ecb3ef42185bcb17a1d9c5ad295
9 changes: 9 additions & 0 deletions dogfood/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,17 @@ COPY --from=go /tmp/bin /usr/local/bin
COPY --from=rust-utils /tmp/bin /usr/local/bin
COPY --from=proto /tmp/bin /usr/local/bin

# Configure Nix without sandboxing - https://github.com/NixOS/nix/issues/2636#issuecomment-455302745
RUN mkdir -p /nix /etc/nix \
&& chmod a+rwx /nix \
&& echo 'sandbox = false' > /etc/nix/nix.conf


USER coder

# Install Nix
RUN sh <(curl -L https://nixos.org/nix/install) --no-daemon

# Ensure go bins are in the 'coder' user's path. Note that no go bins are
# installed in this docker file, as they'd be mounted over by the persistent
# home volume.
Expand Down