-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
60 lines (53 loc) · 1.67 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM registry.fedoraproject.org/fedora:39
ENV PYTHONPATH=/usr/share/koschei
EXPOSE 8080
RUN : \
&& dnf -y --refresh update \
&& dnf -y install \
python3-pip \
python3-sqlalchemy \
python3-psycopg2 \
python3-rpm \
python3-flask \
python3-flask-sqlalchemy \
python3-flask-wtf \
python3-wtforms \
python3-humanize \
python3-jinja2 \
python3-markupsafe \
python3-memcached \
python3-mod_wsgi \
python3-fedora-messaging \
httpd \
js-jquery \
mod_auth_openidc \
python3-koji \
python3-hawkey \
python3-librepo \
python3-dogpile-cache \
python3-alembic \
postgresql \
python3-copr \
postgresql-server \
python3-pytest \
python3-mock \
python3-vcrpy \
&& dnf -y clean all \
&& useradd koschei \
&& :
# Install koschei-messages from PyPI as it is not packaged yet
RUN : \
&& pip-3 install koschei-messages==1.0.1 \
&& :
# Avoid version conflict between fedora-bootstrap and jQuery
RUN curl https://code.jquery.com/jquery-3.3.1.min.js -o /usr/share/web-assets/jquery/latest/jquery.min.js
COPY bin/ /usr/bin/
COPY ./ /usr/share/koschei/
RUN sudo -u koschei koschei-selfcheck
RUN : \
&& sed 's|@CACHEDIR@|/var/cache/koschei|g; s|@DATADIR@|/usr/share/koschei|g; s|@CONFDIR@|/etc/koschei|g; s|@STATEDIR@|/var/lib/koschei|g' /usr/share/koschei/config.cfg.template >/usr/share/koschei/config.cfg \
&& sed -i s/@VERSION@/$(/usr/share/koschei/aux/version.sh /usr/share/koschei)/ /usr/share/koschei/config.cfg \
&& chmod -R a+rwX /usr/share/koschei/ \
&& mkdir -m 777 /var/cache/koschei/ /var/cache/koschei/repodata/ \
&& :
USER koschei