Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce378b82ba | ||
|
|
a29f65ee6a | ||
|
|
630da4ea2e | ||
|
|
b06b3e4ddb | ||
|
|
6165125fda | ||
|
|
0666f3ce79 |
2 changed files with 7 additions and 5 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1,18 +1,19 @@
|
|||
FROM registry.fedoraproject.org/fedora:28
|
||||
FROM registry.fedoraproject.org/fedora:29
|
||||
MAINTAINER "Fedora Infrastructure" <admin@fedoraproject.org>
|
||||
|
||||
ENV VERSION=0.7.3 RELEASE=1 SUFFIX=fc28
|
||||
ENV VERSION=0.8.4
|
||||
LABEL BZComponent="mirrormanager2-mirrorlist" \
|
||||
Name="$FGC/mirrormanager2-mirrorlist" \
|
||||
Version="$VERSION" \
|
||||
Release="$RELEASE" \
|
||||
Architecture="x86_64"
|
||||
|
||||
RUN dnf install -y mirrormanager2-mirrorlist httpd mod_wsgi
|
||||
RUN dnf install -y mirrormanager2-mirrorlist httpd mod_wsgi GeoIP-GeoLite-data-extra sed
|
||||
|
||||
RUN dnf install -y patch
|
||||
COPY logging.patch /root
|
||||
RUN patch -p1 /usr/share/mirrormanager2/mirrorlist_server.py </root/logging.patch
|
||||
# Change wsgi options see https://pagure.io/fedora-infrastructure/issue/7553
|
||||
RUN sed -i -e 's|WSGIDaemonProcess mirrorlist user=apache processes=45 threads=1 display-name=mirrorlist maximum-requests=1000|WSGIDaemonProcess mirrorlist user=apache processes=20 threads=1 display-name=mirrorlist graceful-timeout=30 maximum-requests=1000 request-timeout=30 listen-backlog=1000 queue-timeout=30|' /etc/httpd/conf.d/mirrorlist-server.conf
|
||||
|
||||
COPY run.sh /root
|
||||
RUN chmod +x /root/run.sh
|
||||
|
|
@ -21,3 +22,4 @@ VOLUME ["/var/lib/mirrormanager"]
|
|||
EXPOSE 80
|
||||
ENTRYPOINT ["/usr/bin/bash", "/root/run.sh"]
|
||||
CMD []
|
||||
|
||||
|
|
|
|||
2
run.sh
2
run.sh
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
/usr/sbin/httpd &
|
||||
/usr/bin/python2 /usr/share/mirrormanager2/mirrorlist_server.py
|
||||
/usr/bin/python2 /usr/share/mirrormanager2/mirrorlist_server.py $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue