-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
35 lines (31 loc) · 1.2 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
FROM registry.fedoraproject.org/fedora:33
LABEL \
name="ResultsDB-Updater application" \
vendor="ResultsDB-Updater developers" \
license="LGPL-2.1" \
description="ResultsDB-Updater is a micro-service that listens for test \
results on the CI message bus and updates ResultsDB in a standard format." \
usage="https://github.com/release-engineering/resultsdb-updater" \
build-date=""
RUN dnf install -y --nodocs --setopt=install_weak_deps=false \
git-core \
fedmsg \
python3-pip \
python3-requests \
python3-semantic_version \
# replace fedmsg with latest bug-fixed version
&& dnf remove -y --setopt=clean_requirements_on_remove=false fedmsg python3-fedmsg \
&& pip install --no-deps "fedmsg>=1.1.2" \
&& dnf clean -y all
COPY . /tmp/code
# Dependencies should be resolved in the dnf install step above,
# in order to avoid pulling something unsafe from pypi.
RUN pushd /tmp/code \
&& sed --regexp-extended -i -e "/^ version=/c\\ version='$(./version.sh)'," setup.py \
&& pip install --no-deps . \
&& popd \
&& dnf remove -y git-core \
&& rm -rf /tmp/*
USER 1001
VOLUME ["/etc/resultsdb", "/etc/fedmsg.d"]
CMD ["fedmsg-hub"]