Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-scheduler-worker/Dockerfile
FROM python:3.6 | FROM python:3.6 | ||||
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 --upgrade pip setuptools wheel | |||||
RUN pip install swh-scheduler --no-binary psycopg2 | RUN pip install swh-scheduler --no-binary psycopg2 | ||||
RUN mkdir -p /etc/softwareheritage/worker/ | |||||
COPY scheduler.yml /etc/softwareheritage/ | COPY scheduler.yml / | ||||
# 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"] |