Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-scheduler-worker/Dockerfile
FROM python:3 | FROM python:3 | ||||
RUN export DEBIAN_FRONTEND=noninteractive && \ | RUN export DEBIAN_FRONTEND=noninteractive && \ | ||||
apt-get update && \ | apt-get update && \ | ||||
apt-get install -y \ | apt-get install -y \ | ||||
libsystemd-dev postgresql-client libpq-dev | libsystemd-dev postgresql-client libpq-dev | ||||
RUN pip install swh-scheduler --no-binary psycopg2 | RUN pip install swh-scheduler --no-binary psycopg2 | ||||
RUN mkdir /etc/softwareheritage/ | RUN mkdir -p /etc/softwareheritage/worker/ | ||||
ardumont: fyi, the COPY seems to already take care of that step (creating the folder if not existing).
(i… | |||||
Done Inline Actionsyes but since I duct-taped the pb with a symlink below, we do nees this /etc/softwareheritage/worker/ directory... douardda: yes but since I duct-taped the pb with a symlink below, we do nees this… | |||||
COPY scheduler.yml /etc/softwareheritage/ | COPY scheduler.yml /etc/softwareheritage/ | ||||
# XXX this should NOT be needed. | |||||
# Some cleanup work in config files handling seems necessary... | |||||
RUN ln -s /etc/softwareheritage/scheduler.yml /etc/softwareheritage/worker/ | |||||
COPY entrypoint.sh / | COPY entrypoint.sh / | ||||
ENTRYPOINT ["/entrypoint.sh"] | ENTRYPOINT ["/entrypoint.sh"] | ||||
EXPOSE 5008 | EXPOSE 5008 |
fyi, the COPY seems to already take care of that step (creating the folder if not existing).
(i did not need this in other part).