Skip to content

Commit a4567a5

Browse files
committed
Fix GeoLite2 DB download
1 parent 92b6a0d commit a4567a5

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

backend/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ 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 ""
6+
ARG MAXMIND_LICENSE
87
ENV MAXMIND_DB "$TK_BASE_PATH/data/GeoLite2-City.mmdb"
98

109
RUN mkdir -p $TK_BASE_PATH/bioprogs/tools
@@ -50,7 +49,7 @@ RUN git clone https://github.com/felixgabler/maxmind-geoip2-scala.git && \
5049
sbt publishLocal
5150

5251
# Download maxmind geoip data
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
52+
RUN curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAXMIND_LICENSE&suffix=tar.gz" | tar xvz --strip-components=1 -C "$TK_BASE_PATH/data/"
5453

5554
VOLUME /toolkit/backend
5655
WORKDIR /toolkit/backend

backend/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Toolkit Backend Docker Image
2-
Dockerfile for the toolkit's backend docker image. It should be built automatically by DockerCloud.
2+
Dockerfile for the toolkit's backend docker image. It should be built automatically by DockerHub.
33

44
To build it manually, run:
5-
``docker image build -t "proteinevolution/toolkit-docker:1.3.0" -t "proteinevolution/toolkit-docker:latest" .``
5+
``docker image build -t "proteinevolution/toolkit-docker:1.3.0" -t "proteinevolution/toolkit-docker:latest" --build-arg MAXMIND_LICENSE="<LICENSE>" .``
66

77
To push the image, run:
88
``docker push proteinevolution/toolkit-docker:latest``

frontend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Toolkit Frontend Docker Image
2-
Dockerfile for the toolkit's frontend docker image. It should be built automatically by DockerCloud.
2+
Dockerfile for the toolkit's frontend docker image. It should be built automatically by DockerHub.
33

44
To build it manually, run:\
55
``docker image build -t "proteinevolution/toolkit-docker-frontend:1.3.0" -t "proteinevolution/toolkit-docker-frontend:latest" .``

0 commit comments

Comments
 (0)