37 lines
1.0 KiB
Docker
37 lines
1.0 KiB
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 python3 curl build-essential python3-dev libffi-dev libssl-dev patch libmariadbclient-dev cvs git-core subversion apache2 libapache2-mod-wsgi liboauth0 liboauth-dev python3-oauth python3-ldap python3-subvertpy && \
|
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
|
python3 get-pip.py && \
|
|
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
|
|
|
|
|
|
|