-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDockerfile
43 lines (29 loc) · 1.33 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
FROM registry.fedoraproject.org/fedora:39-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 && dnf copr enable -y mfoganho/python3-qpid-proton
COPY yum-packages.txt /tmp/yum-packages.txt
RUN \
dnf -y install $(cat /tmp/yum-packages.txt) && \
dnf clean all
WORKDIR /src
COPY . .
RUN \
pip3 install -r requirements.txt && \
pip3 install .
ENV REQUESTS_CA_BUNDLE='/etc/pki/tls/certs/ca-bundle.crt'
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