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

[docker] fix for devbox docker image root-user build #1811

Merged
merged 6 commits into from
Feb 15, 2024

Conversation

mohsenari
Copy link
Collaborator

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

@@ -5,7 +5,8 @@ RUN apt-get update
RUN apt-get -y install bash binutils git xz-utils wget sudo

# Step 2: Installing Nix
RUN wget --output-document=/dev/stdout https://nixos.org/nix/install | sh -s -- --daemon
RUN mkdir -p /etc/nix/
RUN echo "filter-syscalls = false" >> /etc/nix/nix.conf && wget --output-document=/dev/stdout https://nixos.org/nix/install | sh -s -- --daemon
Copy link
Contributor

@mikeland73 mikeland73 Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: split into 2 RUN commands for readability (or format so it's one command per line using \)

@mohsenari mohsenari merged commit caba63c into main Feb 15, 2024
24 checks passed
@mohsenari mohsenari deleted the mohsen--devbox-image-test branch February 15, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants