Skip to content

Commit

Permalink
Remove tiles url from docker build stage (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
junqiu-lei authored Aug 25, 2022
1 parent 97b995d commit 56f7d41
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions opensearch-maps-server/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ fi

if [ "${1}" = "import" ]; then
cd public/tiles/data
# Download planet zoom 0 - 8 as default if no data is provided
if [ -z "$(ls -A public/tiles/data)" ] && [ -z "${DOWNLOAD_TILES:-}" ]; then
echo "WARNING: No tile at public/tiles/data, importing planet tiles zoom 0-8 from OpenSearch maps service..."
DOWNLOAD_TILES="https://maps.opensearch.org/offline/planet-osm-default-z0-z8-20220613.tar.gz"

fi

if [ -n "${DOWNLOAD_TILES:-}" ]; then
echo "INFO: Download Tiles images: $DOWNLOAD_TILES"
wget "$DOWNLOAD_TILES" -O tiles.tar.gz
Expand All @@ -37,4 +30,4 @@ fi

echo "invalid command"
usage
exit 1
exit 1

0 comments on commit 56f7d41

Please sign in to comment.