-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
37 lines (29 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y python-pip git-core python-dev python-svn python-mysqldb libssl-dev libffi-dev uwsgi libpq-dev wget uwsgi-plugin-python && \
apt-get clean
ARG dockerize_version=0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/v${dockerize_version}/dockerize-linux-amd64-v${dockerize_version}.tar.gz && \
tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v${dockerize_version}.tar.gz && \
rm dockerize-linux-amd64-v${dockerize_version}.tar.gz
RUN pip install --upgrade pip
RUN pip install -U setuptools cryptography python-memcached psycopg2
ARG reviewboard_version=3.0.18
ARG rbtools_version=1.0.1
RUN pip install -U ReviewBoard==$reviewboard_version RBTools==$rbtools_version
VOLUME "/media"
VOLUME "/var/www"
EXPOSE 8000
ENV DB_TYPE mysql
ENV DB_PORT 3306
ENV DB_NAME reviewboard
ENV DB_USER reviewboard
ENV DB_PASSWORD reviewboard
ENV RB_ADMIN admin
ENV RB_PASSWORD admin
ENV RB_ADMIN_EMAIL [email protected]
ENV UWSGI_PROCESSES 10
COPY uwsgi.ini /etc/reviewboard/uwsgi.ini
COPY run.sh /etc/reviewboard/run.sh
RUN chmod +x /etc/reviewboard/run.sh
CMD ["/etc/reviewboard/run.sh"]