tweag / nixpkgs-graph-explorer

Explore the nixpkgs dependency graph
MIT License
15 stars 0 forks source link

docker to run elt script can't be created #32

Closed rapenne-s closed 1 year ago

rapenne-s commented 1 year ago

Describe the bug

Running the elt script from docker isn't working

To Reproduce

(venv) solene@x1 ~/dev/nixpkgs-graph-explorer/etl $ docker build -t etl .
Sending build context to Docker daemon  22.02kB
Step 1/8 : FROM python:3.10.7
 ---> da84e66c3a7c
Step 2/8 : WORKDIR /code
 ---> Using cache
 ---> 92fca8090dd3
Step 3/8 : ENV PYTHONDONTWRITEBYTECODE 1
 ---> Using cache
 ---> 7fa6233b06db
Step 4/8 : ENV PYTHONUNBUFFERED 1
 ---> Using cache
 ---> 8be8004e0cf3
Step 5/8 : RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
 ---> Running in f60e18e4018f
info: downloading installer (https://install.determinate.systems/nix/tag/v0.6.0/nix-installer-x86_64-linux)
Error: 
   0: Planner error
   1: Error executing action
   2: Could not detect systemd; you may be able to get up and running without systemd with `nix-installer install linux --init none`.
      See https://github.com/DeterminateSystems/nix-installer#without-systemd-linux-only for documentation on usage and drawbacks.

Location:
   src/cli/subcommand/install.rs:146

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Planner+error%0A+++1%3A+Error+executing+action%0A+++2%3A+Could+not+detect+systemd%3B+you+may+be+able+to+get+up+and+running+without+systemd+with+%60nix-installer+install+linux+--init+none%60.%0A++++++See+https%3A%2F%2Fgithub.com%2FDeterminateSystems%2Fnix-installer%23without-systemd-linux-only+for+documentation+on+usage+and+drawbacks.%0A%60%60%60

Expected behavior

it should work

Environment

Additional context

The nix installer shipped by DeterminateSystems requires Systemd, which doesn't seem provided in the python docker environment used.

GuillaumeDesforges commented 1 year ago

@zz1874 do you have an idea of what could be happening here?