Skip to content

Commit

Permalink
Add back the maxmind DB downloads to regression Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcook committed Jul 9, 2024
1 parent a0c72ae commit 7382fa0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/regression/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 7382fa0

Please sign in to comment.