Skip to content

Commit

Permalink
Removed sample.tsv from repository. Use smaller planet-latest-100k.ts…
Browse files Browse the repository at this point in the history
…v.gz from GitHub releases.
  • Loading branch information
MartinMikita committed Sep 27, 2016
1 parent cb3c6d3 commit 48f348c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ COPY conf/nginx/nginx.conf /etc/nginx/sites-available/default
COPY supervisor/*.conf /etc/supervisor/conf.d/
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY web /usr/local/src/websearch
COPY sample.tsv /
COPY sphinx-reindex.sh /

ENV SPHINX_PORT=9312 \
Expand Down
7 changes: 0 additions & 7 deletions sample.tsv

This file was deleted.

8 changes: 5 additions & 3 deletions sphinx-reindex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

set -e

# Copy sample file if missing
if [ ! -f /data/input/data.tsv ]; then
# Download sample 100k file if missing
if [ ! -f /data/input/data.tsv -a ! -f /data/input/data.tsv.gz ]; then
mkdir -p /data/input/
cp /sample.tsv /data/input/data.tsv
curl -L -s https://github.com/OSMNames/OSMNames/releases/download/v1.1/planet-latest-100k.tsv.gz \
-o /data/input/planet-latest-100k.tsv.gz
ln /data/input/planet-latest-100k.tsv.gz /data/input/data.tsv.gz
fi

# Index files, only if not exists, or forced by the script
Expand Down

0 comments on commit 48f348c

Please sign in to comment.