Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Mohan Boddu
bc2cc22ca8 "Bump RELEASE for automatic rebuild" 2018-03-15 14:39:33 +00:00
76d51a984e Bump RELEASE for automatic rebuild 2017-11-14 14:17:19 -06:00
b90c1a709c Bump RELEASE for automatic rebuild 2017-09-21 14:01:46 -05:00
e4e12b69c3 Bump RELEASE for automatic rebuild 2017-08-24 16:54:10 -05:00
Kevin Fenzi
45cbbab3d2 also add headers.conf file 2017-08-02 12:51:00 -07:00
Kevin Fenzi
e98b7c91f6 sync up with f25 container 2017-08-02 12:04:05 -07:00
3 changed files with 14 additions and 8 deletions

View file

@ -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
View file

@ -0,0 +1 @@
Header set ServedFrom "ContainerInfra"

2
run.sh
View file

@ -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 $@