Skip to content

Commit

Permalink
feat: geocoding (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal authored Nov 26, 2023
1 parent 21d3276 commit 062f3fa
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ RUN \
python3 \
python3-pip \
python3-venv \
unzip \
zlib1g && \
echo "**** download immich ****" && \
mkdir -p \
Expand All @@ -106,6 +107,22 @@ RUN \
tar xf \
/tmp/immich-dependencies.tar.gz -C \
/tmp/immich-dependencies --strip-components=1 && \
echo "**** download geocoding data ****" && \
mkdir -p \
/usr/src/resources && \
curl -o \
/tmp/cities500.zip -L \
"https://download.geonames.org/export/dump/cities500.zip" && \
curl -o \
/usr/src/resources/admin1CodesASCII.txt -L \
"https://download.geonames.org/export/dump/admin1CodesASCII.txt" && \
curl -o \
/usr/src/resources/admin2Codes.txt -L \
"https://download.geonames.org/export/dump/admin2Codes.txt" && \
unzip \
/tmp/cities500.zip -d \
/usr/src/resources && \
date --iso-8601=seconds | tr -d "\n" > /usr/src/resources/geodata-date.txt && \
echo "**** build immich dependencies ****" && \
cd /tmp/immich-dependencies/server/bin && \
./install-ffmpeg.sh && \
Expand Down Expand Up @@ -191,6 +208,7 @@ RUN \
ninja-build \
pkg-config \
python3-dev \
unzip \
wget && \
apt-get autoremove -y --purge && \
apt-get clean && \
Expand Down
18 changes: 18 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ RUN \
python3 \
python3-pip \
python3-venv \
unzip \
zlib1g && \
echo "**** download immich ****" && \
mkdir -p \
Expand All @@ -103,6 +104,22 @@ RUN \
tar xf \
/tmp/immich-dependencies.tar.gz -C \
/tmp/immich-dependencies --strip-components=1 && \
echo "**** download geocoding data ****" && \
mkdir -p \
/usr/src/resources && \
curl -o \
/tmp/cities500.zip -L \
"https://download.geonames.org/export/dump/cities500.zip" && \
curl -o \
/usr/src/resources/admin1CodesASCII.txt -L \
"https://download.geonames.org/export/dump/admin1CodesASCII.txt" && \
curl -o \
/usr/src/resources/admin2Codes.txt -L \
"https://download.geonames.org/export/dump/admin2Codes.txt" && \
unzip \
/tmp/cities500.zip -d \
/usr/src/resources && \
date --iso-8601=seconds | tr -d "\n" > /usr/src/resources/geodata-date.txt && \
echo "**** build immich dependencies ****" && \
cd /tmp/immich-dependencies/server/bin && \
./install-ffmpeg.sh && \
Expand Down Expand Up @@ -188,6 +205,7 @@ RUN \
ninja-build \
pkg-config \
python3-dev \
unzip \
wget && \
apt-get autoremove -y --purge && \
apt-get clean && \
Expand Down

0 comments on commit 062f3fa

Please sign in to comment.