diff --git a/docker/regression/Dockerfile b/docker/regression/Dockerfile index 7d41229b..2cc3e62f 100644 --- a/docker/regression/Dockerfile +++ b/docker/regression/Dockerfile @@ -41,6 +41,16 @@ RUN apt-get update && \ clang \ cmake +ARG MAXMIND_LICENSE_KEY +RUN wget -O GeoLite2-City.mmdb.tar.gz "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=${MAXMIND_LICENSE_KEY}&suffix=tar.gz" || true +RUN wget -O GeoLite2-Country.mmdb.tar.gz "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${MAXMIND_LICENSE_KEY}&suffix=tar.gz" || true +RUN wget -O GeoLite2-ASN.mmdb.tar.gz "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=${MAXMIND_LICENSE_KEY}&suffix=tar.gz" || true +RUN gunzip GeoLite2-*.mmdb.tar.gz || true +RUN tar xvf GeoLite2-City.mmdb.tar || true +RUN tar xvf GeoLite2-Country.mmdb.tar || true +RUN tar xvf GeoLite2-ASN.mmdb.tar || true +RUN mv GeoLite2*/GeoLite2-*.mmdb /usr/share/GeoIP || true + RUN pip3 install bottle virtualenv WORKDIR /wforce/