grim/containers/reviewboard
Move to the offical image and build s simple nginx container that contains the static files
--- a/Dockerfile Mon Jul 19 20:41:20 2021 -0500
+++ b/Dockerfile Fri Aug 06 02:59:24 2021 -0500
@@ -1,47 +1,10 @@
-MAINTAINER grim@reaperworld.com
+FROM beanbag/reviewboard:4.0.4 AS app -# install the dependencies for reviewboard
-RUN apt-get update -y && \
- apt-get install --no-install-recommends -y \
- build-essential python-dev libffi-dev libssl-dev patch \
- python-pip python-setuptools python-wheel python-virtualenv \
- uwsgi uwsgi-plugin-python \
- python-psycopg2 python-ldap \
- git-core mercurial subversion python-svn \
- rm -rf /var/lib/apt/lists/*
- python -m virtualenv --system-site-packages /opt/venv && \
- . /opt/venv/bin/activate && \
- "ReviewBoard==${RB_VERSION}" \
- django-storages==1.1.8 \
-# additional housekeeping
-ENV PATH="/opt/venv/bin:${PATH}"
+ pip install --no-cache rbjbhub -COPY start.sh uwsgi.ini shell.sh upgrade-site.py /
+FROM nginx:1.21 AS nginx -# install rbjbhub and rbintegrations 2.0beta1
- . /opt/venv/bin/activate && \
- python -m pip install -U \
- https://downloads.reviewboard.org/releases/rbintegrations/2.0/rbintegrations-2.0b1-py2.py3-none-any.whl#md5=df8fa4b93e13a17d99500a5bdd14d483
+COPY --from=app /venv/lib/python3.8/site-packages/reviewboard/htdocs /var/www/reviewboard/htdocs/ --- a/convey.yml Mon Jul 19 20:41:20 2021 -0500
+++ b/convey.yml Fri Aug 06 02:59:24 2021 -0500
@@ -10,10 +10,17 @@
- tag: ${REGISTRY}/${REPO}:${TAG}
+ tag: ${REGISTRY}/${REPO}-app:${TAG} + tag: ${REGISTRY}/${REPO}-nginx:${TAG} @@ -28,16 +35,18 @@
- images: ${REGISTRY}/${REPO}:${TAG}
+ - ${REGISTRY}/${REPO}-app:${TAG} + - ${REGISTRY}/${REPO}-nginx:${TAG} - - tasks: [import, build]
+ - tasks: [import, build-app, build-nginx] - - tasks: [import, build, login, push]
+ - tasks: [import, build-app, build-nginx, login, push]