Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce378b82ba | ||
|
|
a29f65ee6a | ||
|
|
630da4ea2e | ||
|
|
b06b3e4ddb | ||
|
|
6165125fda | ||
|
|
0666f3ce79 |
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM registry.fedoraproject.org/fedora:rawhide
|
||||
FROM registry.fedoraproject.org/fedora:29
|
||||
MAINTAINER "Fedora Infrastructure" <admin@fedoraproject.org>
|
||||
|
||||
ENV VERSION=0.8.4
|
||||
|
|
@ -7,11 +7,13 @@ LABEL BZComponent="mirrormanager2-mirrorlist" \
|
|||
Version="$VERSION" \
|
||||
Architecture="x86_64"
|
||||
|
||||
RUN dnf install -y mirrormanager2-mirrorlist httpd mod_wsgi GeoIP-GeoLite-data-extra
|
||||
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
|
||||
|
|
@ -20,3 +22,4 @@ VOLUME ["/var/lib/mirrormanager"]
|
|||
EXPOSE 80
|
||||
ENTRYPOINT ["/usr/bin/bash", "/root/run.sh"]
|
||||
CMD []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue