Dockerfile: set environment variable $ELIXIR_ROOT

Set env variable $ELIXIR_ROOT inside the Dockerfile. That is used by
utils/index-all-repositories to know where to put repo/data directories.

With that adjustment the docker setup is working as indicated in the
README.

Fix the following error:

$ docker exec -it -e PYTHONUNBUFFERED=1 elixir-container /bin/bash -c \
  'export "PATH=/usr/local/elixir/venv/bin:$PATH" ; /usr/local/elixir/utils/index-all-repositories'
Error: ELIXIR_ROOT environment variable not set
It's where Elixir data are stored
This commit is contained in:
Lukas Joisten 2024-11-28 17:18:44 +01:00 committed by Théo Lebrun
parent 5fe2a8eef1
commit 1a761e98d3

View file

@ -54,4 +54,6 @@ EXPOSE 80
ARG ELIXIR_VERSION
ENV ELIXIR_VERSION=$ELIXIR_VERSION
ENV ELIXIR_ROOT=/srv/elixir-data
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]