grim/containers/reviewboard

Update to reviewboard 5.0

21 months ago, Gary Kramlich
0cc520b67a7c
Update to reviewboard 5.0
FROM docker.io/beanbag/reviewboard:5.0 AS app
COPY tzdata.selections /
# Setup the time selections
RUN set -ex && \
debconf-set-selections -v /tzdata.selections && \
ln -nsf /usr/share/zoneinfo/Etc/UTC /etc/localtime
# Install dependencies for ReviewBoard[saml]
RUN set -ex && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential pkg-config libxml2-dev libxmlsec1-dev libpython3-dev \
&& \
apt-get autoremove --purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists
# install rbjbhub and ReviewBoard[saml]
RUN set -ex && \
pip install --no-cache rbjbhub ReviewBoard[saml]
COPY saml-fullname.patch /
RUN set -ex && \
cd /venv/lib/python3.8/site-packages && \
patch -p1 < /saml-fullname.patch
FROM docker.io/nginx:1.21 AS nginx
COPY --from=app /venv/lib/python3.8/site-packages/reviewboard/htdocs /var/www/reviewboard/htdocs/
RUN set -ex && \
sed -i -s 's/101/1001/g' /etc/passwd && \
sed -i -s 's/101/1001/g' /etc/group