etix / mirrorbits

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors.
MIT License
503 stars 91 forks source link

docker build fails - geoipupdate requires a valid AccountID and LicenseKey combination #99

Closed timja closed 4 years ago

timja commented 4 years ago

The error is:

geoipupdate requires a valid AccountID and LicenseKey combination

Am I expected to modify the AccountID / LicenseKey or is something else wrong?

Full log:

$ docker build -t mirrorbits .
Sending build context to Docker daemon  14.09MB
Step 1/9 : FROM golang:latest
 ---> ed081345a3da
Step 2/9 : LABEL maintainer="etix@l0cal.com"
 ---> Using cache
 ---> 13faae8105fc
Step 3/9 : ADD . /go/mirrorbits
 ---> Using cache
 ---> 8ff3233048bf
Step 4/9 : RUN apt-get update -y &&     DEBIAN_FRONTEND=noninteractive apt-get install -y pkg-config zlib1g-dev protobuf-compiler libprotoc-dev rsync &&     apt-get clean
 ---> Using cache
 ---> fc2a496cef49
Step 5/9 : RUN go get -u github.com/maxmind/geoipupdate2/cmd/geoipupdate &&     go install -ldflags "-X main.defaultConfigFile=/etc/GeoIP.conf -X main.defaultDatabaseDirectory=/usr/share/GeoIP" github.com/maxmind/geoipupdate2/cmd/geoipupdate &&     echo "AccountID 0\nLicenseKey 000000000000\nEditionIDs GeoLite2-City GeoLite2-Country GeoLite2-ASN" > /etc/GeoIP.conf &&     mkdir /usr/share/GeoIP &&     /go/bin/geoipupdate
 ---> Running in 777b58575f70
error loading configuration file: geoipupdate requires a valid AccountID and LicenseKey combination
The command '/bin/sh -c go get -u github.com/maxmind/geoipupdate2/cmd/geoipupdate &&     go install -ldflags "-X main.defaultConfigFile=/etc/GeoIP.conf -X main.defaultDatabaseDirectory=/usr/share/GeoIP" github.com/maxmind/geoipupdate2/cmd/geoipupdate &&     echo "AccountID 0\nLicenseKey 000000000000\nEditionIDs GeoLite2-City GeoLite2-Country GeoLite2-ASN" > /etc/GeoIP.conf &&     mkdir /usr/share/GeoIP &&     /go/bin/geoipupdate' returned a non-zero code: 1
stormi commented 4 years ago

Looks related to this: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/