reviewboard/Dockerfile

35 lines
972 B
Docker

FROM debian:latest
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.hottis.de/dockerized/reviewboard"
LABEL AlternativeImageName="wollud1969/reviewboard"
LABEL Repository="https://home.hottis.de/gitlab/dockerized/reviewboard"
ENV DBHOST "mariadb"
ENV DBNAME "reviewboard"
ENV DBUSER "reviewboard"
ENV DBPASS "geheim"
ENV ADMINPASS "geheim"
ENV SITEROOT "/"
ARG RB_VERSION
RUN \
apt update && \
apt install -y python curl build-essential python-dev libffi-dev libssl-dev patch libmariadbclient-dev cvs git-core subversion apache2 libapache2-mod-wsgi liboauth0 liboauth-dev python-oauth python-ldap python-subvertpy python-pip && \
pip install -U pip setuptools && \
pip install -U mysqlclient && \
pip install -U mercurial && \
pip install ReviewBoard${RB_VERSION} django-storages==1.1.8 oauthlib==1.0.1
COPY start.sh /usr/local/sbin/
EXPOSE 80
VOLUME /usr/local/share/ca-certificates/
CMD /usr/local/sbin/start.sh