forked from redhat-exd-rebuilds/freshmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (30 loc) · 1.37 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
38
39
40
41
42
43
44
45
FROM registry.fedoraproject.org/fedora:37-x86_64
LABEL \
name="Freshmaker application" \
vendor="Freshmaker developers" \
license="GPLv2+"
# Use Copr repo for python3-rhmsg package
RUN dnf install -y 'dnf-command(copr)' && dnf copr enable -y qwan/python-rhmsg
COPY yum-packages.txt /tmp/yum-packages.txt
RUN \
dnf -y install $(cat /tmp/yum-packages.txt) python3-rhmsg findutils && \
dnf clean all
WORKDIR /src
COPY . .
RUN \
# All dependencies should've been installed from RPMs
echo '' > requirements.txt && \
pip3 install . --no-deps
RUN pip install jsonformatter==0.3.2 gql[requests]==3.3.0
RUN mkdir /var/log/freshmaker/
RUN mkdir -p /usr/share/freshmaker && cp contrib/freshmaker.wsgi /usr/share/freshmaker/
# Delete the default logging configuration
RUN rm -f fedmsg.d/freshmaker-logging.py
RUN \
FRESHMAKER_CONFIG_FILE=/etc/freshmaker/config.py FRESHMAKER_CONFIG_SECTION=DevConfiguration freshmaker-manager --help &&\
FRESHMAKER_CONFIG_FILE=/etc/freshmaker/config.py FRESHMAKER_CONFIG_SECTION=DevConfiguration freshmaker-frontend --help &&\
FRESHMAKER_CONFIG_FILE=/etc/freshmaker/config.py FRESHMAKER_CONFIG_SECTION=DevConfiguration freshmaker-gencert --help &&\
FRESHMAKER_CONFIG_FILE=/etc/freshmaker/config.py FRESHMAKER_CONFIG_SECTION=DevConfiguration freshmaker-upgradedb --help
USER 1001
EXPOSE 8080
ENTRYPOINT fedmsg-hub-3