Skip to content

Commit b448081

Browse files
committed
WIP: get geoip database differently
1 parent ed284f0 commit b448081

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

backend/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM hseeberger/scala-sbt:8u252_1.3.13_2.12.11
33
LABEL maintainer="fgabler@tue.mpg.de"
44

55
ENV TK_BASE_PATH "/root/Toolkit"
6+
# remove this before VC !!!!!!!!!!!!!
7+
ENV MAXMIND_LICENSE ""
68
ENV MAXMIND_DB "$TK_BASE_PATH/data/GeoLite2-City.mmdb"
79

810
RUN mkdir -p $TK_BASE_PATH/bioprogs/tools
@@ -48,7 +50,7 @@ RUN git clone https://github.com/felixgabler/maxmind-geoip2-scala.git && \
4850
sbt publishLocal
4951

5052
# Download maxmind geoip data
51-
RUN curl -fsL http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz | gunzip -c > $MAXMIND_DB
53+
RUN curl https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAXMIND_LICENSE&suffix=tar.gz | tar xvz -C $MAXMIND_DB
5254

5355
VOLUME /toolkit/backend
5456
WORKDIR /toolkit/backend
@@ -60,6 +62,7 @@ EXPOSE 9000
6062

6163
RUN mv ~/.ivy2 ~/.ivy_image
6264
COPY ./docker-entrypoint.sh /
65+
RUN chmod +x ./docker-entrypoint.sh
6366
ENTRYPOINT ["/docker-entrypoint.sh"]
6467

6568
CMD ["shell"]

0 commit comments

Comments
 (0)