Skip to content

Commit 418cc9c

Browse files
committed
Fixing setup script
1 parent 85a6e5f commit 418cc9c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ MAINTAINER DevWurm <devwurm@devwurm.net>
44

55
COPY ./config /usr/share/elasticsearch/config
66
COPY ./scripts /usr/share/elasticsearch/config/scripts
7+
COPY ./setup /usr/share/elasticsearch/setup
78
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
89

9-
ENV ES_HEAP_SIZE=3g
10+
ENV ES_HEAP_SIZE=4g
1011

1112
EXPOSE 9200 9300
1213

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [ "$1" = 'elasticsearch' ]; then
2929

3030
echo Start Setup
3131
gosu elasticsearch elasticsearch &
32-
sleep 15 && curl -XPOST "localhost:9200/wikiviews" --retry 10 --retry-delay 5 --data-binary /usr/share/elasticsearch/setup/wikiviews.index.json && echo 'true' > /SETUP_FLAG
32+
sleep 15 && curl -XPOST "localhost:9200/wikiviews" --retry 10 --retry-delay 5 --data-binary "@/usr/share/elasticsearch/setup/wikiviews.index.json" && echo 'true' > /SETUP_FLAG
3333
fi
3434
fi
3535

File renamed without changes.

0 commit comments

Comments
 (0)