Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: geocoding (main) #227

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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