Blame dev/docker/logcom

Lubomír Sedlář 1bbc64
FROM registry.fedoraproject.org/fedora:28
Adam Williamson c604a9
MAINTAINER Patrick Uiterwijk <patrick@puiterwijk.org></patrick@puiterwijk.org>
Adam Williamson c604a9
Adam Williamson c604a9
VOLUME ["/repos"]
Adam Williamson c604a9
RUN mkdir /code
Adam Williamson c604a9
Adam Williamson c604a9
RUN dnf install -y python2-devel python-setuptools python-nose python2-bcrypt python-alembic \
Adam Williamson c604a9
                   python-arrow python-binaryornot python-bleach python-blinker \
Adam Williamson c604a9
                   python-chardet python-cryptography python-docutils python-flask \
Pierre-Yves Chibon e9046e
                   python-flask-wtf python-markdown python-psutil \
Pierre-Yves Chibon 32dba7
                   python-pygit2 python-fedora python-openid python-openid-cla \
Adam Williamson c604a9
                   python-openid-teams python-straight-plugin python-wtforms python-munch \
Adam Williamson c604a9
                   python-enum34 python-redis python-sqlalchemy systemd gitolite3 python-filelock \
Adam Williamson c604a9
                   python-fedora-flask python2-pillow python2-psycopg2
Adam Williamson c604a9
Adam Williamson c604a9
RUN dnf install -y python2-celery
Adam Williamson c604a9
Adam Williamson c604a9
WORKDIR /code
Adam Williamson c604a9
ENTRYPOINT ["/usr/bin/celery", "-A", "pagure.lib.tasks_services", "worker", "--loglevel", "info", "-Q", "pagure_logcom"]
Adam Williamson c604a9
Adam Williamson c604a9
# Code injection is last to make optimal use of caches
Adam Williamson c604a9
VOLUME ["/code"]
Adam Williamson c604a9
# Openshift: COPY / /code
Adam Williamson c604a9
VOLUME ["/attachments"]
Adam Williamson c604a9
# Ideally this would run as non-root, but that needs the /repos owned correctly
Adam Williamson c604a9
ENV C_FORCE_ROOT true