Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc2cc22ca8 | ||
| 76d51a984e | |||
| b90c1a709c | |||
| e4e12b69c3 | |||
|
|
45cbbab3d2 | ||
|
|
e98b7c91f6 |
3 changed files with 14 additions and 8 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -1,14 +1,18 @@
|
|||
FROM registry.fedoraproject.org/fedora:26
|
||||
MAINTAINER "Fedora Infrastructure" <admin@fedoraproject.org>
|
||||
|
||||
ENV VERSION=0.7.3 RELEASE=1 SUFFIX=fc26
|
||||
LABEL BZComponent="mirrormanager2-mirrorlist" \
|
||||
Name="$FGC/mirrormanager2-mirrorlist" \
|
||||
Version="$VERSION" \
|
||||
Release="$RELEASE" \
|
||||
Architecture="x86_64"
|
||||
ENV NAME=mirrormanager2-mirrorlist VERSION=0.7.3 RELEASE=13 ARCH=x86_64
|
||||
LABEL com.redhat.component="$NAME" \
|
||||
name="$FGC/$NAME" \
|
||||
version="$VERSION" \
|
||||
release="$RELEASE.$DISTTAG" \
|
||||
architecture="$ARCH" \
|
||||
usage="docker run -p 9000:9000 f26/mirrormanager2-mirrorlist" \
|
||||
help="Runs mirrormanager2 mirrorlist server. Needs a data pkl in /srv/ and listens on port 80"
|
||||
|
||||
RUN dnf install -y mirrormanager2-mirrorlist httpd mod_wsgi
|
||||
RUN dnf install -y mirrormanager2-mirrorlist httpd mod_wsgi python GeoIP-GeoLite-data GeoIP-GeoLite-data-extra
|
||||
|
||||
COPY headers.conf /etc/httpd/conf.d/
|
||||
|
||||
RUN dnf install -y patch
|
||||
COPY logging.patch /root
|
||||
|
|
@ -18,6 +22,7 @@ COPY run.sh /root
|
|||
RUN chmod +x /root/run.sh
|
||||
|
||||
VOLUME ["/var/lib/mirrormanager"]
|
||||
VOLUME ["/var/log/mirrormanager"]
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["/usr/bin/bash", "/root/run.sh"]
|
||||
CMD []
|
||||
|
|
|
|||
1
headers.conf
Normal file
1
headers.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
Header set ServedFrom "ContainerInfra"
|
||||
2
run.sh
2
run.sh
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
/usr/sbin/httpd &
|
||||
/usr/bin/python2 /usr/share/mirrormanager2/mirrorlist_server.py
|
||||
exec /usr/bin/python2 /usr/share/mirrormanager2/mirrorlist_server.py $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue