Skip to content

Commit 1868591

Browse files
committed
upgrade ES 7.6.1 and POS and bootstrap
1 parent ea90a46 commit 1868591

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

app/start-app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ until $(curl --output /dev/null --silent --head --fail http://elasticsearch:9200
77
done
88

99
# fix development address elasticsearch
10-
sed -i 's/localhost:9200/elasticsearch:9200/g' /app/app/config/development.js
10+
sed -i 's/localhost:9201/elasticsearch:9200/g' /app/app/config/development.js
1111
node --harmony /app/app/create_indices.js --create
1212

1313
# now healthcheck OK for bootstrap

docker-compose.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "2.1"
22
services:
33
elasticsearch:
4-
image: 'elasticsearch:5.2'
4+
image: 'elasticsearch:7.6.1'
55
#deployment_strategy: every_node
66
healthcheck:
77
test: ["CMD", "curl", "-f", "http://localhost:9200"]
@@ -18,9 +18,13 @@ services:
1818
environment:
1919
- bootstrap.memory_lock=false
2020
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
21+
- cluster.initial_master_nodes=elasticsearch
22+
- node.master=true
23+
- discovery.zen.minimum_master_nodes=1
24+
- node.name=elasticsearch
2125

2226
app:
23-
image: mysciencework/polarisos:0.9.43
27+
image: mysciencework/polarisos:1.0.1
2428
healthcheck:
2529
test: ["CMD", "curl", "-f", "http://localhost:8080"]
2630
interval: 10s
@@ -36,7 +40,7 @@ services:
3640
entrypoint: "bash -c 'chmod +x /tmp/start-app.sh; /tmp/start-app.sh'"
3741

3842
bootstrap:
39-
image: mysciencework/polarisos-bootstrap:0.1
43+
image: mysciencework/polarisos-bootstrap:0.2
4044
healthcheck:
4145
test: ["CMD", "curl", "-f", "http://localhost:8080"]
4246
interval: 10s

0 commit comments

Comments
 (0)