Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-indexer-worker/Dockerfile
- This file was added.
FROM python:3 | |||||
RUN export DEBIAN_FRONTEND=noninteractive && \ | |||||
apt-get update && \ | |||||
apt-get install -y \ | |||||
libsystemd-dev | |||||
RUN pip install swh-indexer swh-scheduler | |||||
ardumont: Why do you need to install the scheduler as well? | |||||
COPY indexer/ / | |||||
ardumontUnsubmitted Not Done Inline ActionsThat's missing (it's not present in my repository nor in that diff). ardumont: That's missing (it's not present in my repository nor in that diff). | |||||
ardumontUnsubmitted Not Done Inline ActionsI mean the indexer/ configuration folder. ardumont: I mean the indexer/ configuration folder.
There is only an `indexer.yml` file. | |||||
COPY entrypoint.sh / | |||||
# Celery does not want to run as root with 'pickle' enabled. | |||||
ardumontUnsubmitted Not Done Inline ActionsYes fyi, this was fixed lately but most probably not yet pip deployed so we'll keep that ;) ardumont: Yes
fyi, this was fixed lately but most probably not yet pip deployed so we'll keep that ;) | |||||
ardumontUnsubmitted Not Done Inline Actionsardumont: D840 | |||||
RUN useradd -m swh-worker | |||||
USER swh-worker:swh-worker | |||||
ardumontUnsubmitted Not Done Inline ActionsJust call it swh as david did in the lister workers. Otherwise our real user/group in production: ardumont@worker07:~% id swhworker uid=1004(swhworker) gid=1004(swhworker) groups=1004(swhworker),1006(swhdeploy),5000(gitorious) ardumont: Just call it swh as david did in the lister workers.
Otherwise our real user/group in… | |||||
ENTRYPOINT ["/entrypoint.sh"] |
Why do you need to install the scheduler as well?