-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify osm-processor image and reduce size (#340)
* build: simplify osm-processor image, use deb pkgs, reduce size * build: update references to osmseed-osm-processor:v3 * docs: update docs for building osmseed-osm-processor img
- Loading branch information
1 parent
a6887ec
commit f70c84f
Showing
6 changed files
with
26 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,21 @@ | ||
FROM ubuntu:20.04 | ||
FROM debian:bookworm-slim | ||
ENV workdir /mnt/data | ||
|
||
RUN apt-get -y update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
build-essential \ | ||
libboost-program-options-dev \ | ||
libbz2-dev \ | ||
zlib1g-dev \ | ||
libexpat1-dev \ | ||
cmake \ | ||
pandoc \ | ||
git \ | ||
python3 \ | ||
python3-pip \ | ||
curl \ | ||
unzip \ | ||
wget \ | ||
software-properties-common \ | ||
libz-dev \ | ||
gdal-bin \ | ||
tar \ | ||
bzip2 \ | ||
clang \ | ||
default-jre \ | ||
default-jdk \ | ||
gradle \ | ||
apt-utils \ | ||
postgresql-client | ||
|
||
# Install osmosis 0.48 | ||
RUN echo "osmosis" | ||
RUN git clone https://github.com/openstreetmap/osmosis.git | ||
WORKDIR osmosis | ||
RUN git checkout bb0e592671a9bf0c48db1301cdc3d6085c88bae9 | ||
RUN mkdir "$PWD"/dist | ||
RUN ./gradlew assemble | ||
RUN tar -xvzf "$PWD"/package/build/distribution/*.tgz -C "$PWD"/dist/ | ||
RUN ln -s "$PWD"/dist/bin/osmosis /usr/bin/osmosis | ||
RUN osmosis --version 2>&1 | grep "Osmosis Version" | ||
|
||
# Install osmium-tool | ||
RUN apt-get -y install \ | ||
libbz2-dev \ | ||
libgd-dev \ | ||
libosmium2-dev \ | ||
libprotozero-dev \ | ||
libsqlite3-dev \ | ||
make \ | ||
jq \ | ||
ca-certificates | ||
|
||
# Other useful packages | ||
RUN apt-get install -y \ | ||
osmium-tool \ | ||
pyosmium \ | ||
rsync \ | ||
tmux \ | ||
zsh | ||
|
||
RUN pip install osmium | ||
|
||
# Install AWS CLI | ||
RUN pip install awscli | ||
|
||
# Install GCP CLI | ||
RUN curl -sSL https://sdk.cloud.google.com | bash | ||
RUN ln -f -s /root/google-cloud-sdk/bin/gsutil /usr/bin/gsutil | ||
|
||
# Install Azure CLI | ||
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash | ||
|
||
WORKDIR $workdir | ||
WORKDIR $workdir | ||
|
||
# Installs osmosis v0.48.3 & osmium-tool v1.15.0 | ||
RUN set -ex \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install \ | ||
-y --no-install-recommends \ | ||
"osmosis" \ | ||
"osmium-tool" \ | ||
# Cloud provider CLIs | ||
"awscli" \ | ||
"gsutil" \ | ||
"azure-cli" \ | ||
# Other useful packages | ||
"rsync" \ | ||
"pyosmium" \ | ||
"tmux" \ | ||
"zsh" \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters