Created
January 10, 2018 11:52
-
-
Save jirkapenzes/4d229e0a370e02bfa959d74de5ac5f47 to your computer and use it in GitHub Desktop.
Elasticsearch 2, 5, 6
This file contains hidden or 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
#!/usr/bin/env bash | |
docker stop elasticsearch-2.3.4 elasticsearch-5.5.2 kibana-5 kibana-2 elasticsearch-6.1.1 kibana-6 | |
docker rm elasticsearch-2.3.4 elasticsearch-5.5.2 kibana-5 kibana-2 elasticsearch-6.1.1 kibana-6 | |
docker network rm elastic-network | |
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.1.1 | |
docker pull docker.elastic.co/kibana/kibana:6.1.1 | |
docker network create -d overlay --attachable elastic-network | |
docker run -d -p 9202:9200 -p 9302:9300 --name elasticsearch-2.3.4 --network=elastic-network elasticsearch:2.3.4 | |
docker run -d -p 9205:9200 -p 9305:9300 --name elasticsearch-5.5.2 --network=elastic-network elasticsearch:5.6.5 | |
docker run -d -p 9206:9200 -p 9306:9300 --name elasticsearch-6.1.1 --network=elastic-network docker.elastic.co/elasticsearch/elasticsearch:6.1.1 | |
docker run -d --name kibana-2 -e ELASTICSEARCH_URL=http://elasticsearch-2.3.4:9200 -p 5602:5601 --network=elastic-network kibana:4.2 | |
docker run -d --name kibana-5 -e ELASTICSEARCH_URL=http://elasticsearch-5.5.2:9200 -p 5605:5601 --network=elastic-network kibana:5.6 | |
docker run -d --name kibana-6 -e ELASTICSEARCH_URL=http://elasticsearch-6.1.1:9200 -p 5606:5601 --network=elastic-network docker.elastic.co/kibana/kibana:6.1.1 | |
clear | |
docker ps | |
sh es2-stop.sh | |
sh es5-stop.sh | |
sh es6-stop.sh | |
docker ps |
This file contains hidden or 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
#!/usr/bin/env bash | |
docker start elasticsearch-2.3.4 | |
docker start kibana-2 |
This file contains hidden or 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
#!/usr/bin/env bash | |
docker stop elasticsearch-2.3.4 | |
docker stop kibana-2 |
This file contains hidden or 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
#!/usr/bin/env bash | |
docker start elasticsearch-5.5.2 | |
docker start kibana-5 |
This file contains hidden or 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
#!/usr/bin/env bash | |
docker stop elasticsearch-5.5.2 | |
docker stop kibana-5 |
This file contains hidden or 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
#!/usr/bin/env bash | |
docker start elasticsearch-6.1.1 | |
docker start kibana-6 |
This file contains hidden or 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
#!/usr/bin/env bash | |
docker stop elasticsearch-6.1.1 | |
docker stop kibana-6 |
This file contains hidden or 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
#!/usr/bin/env bash | |
sh es2-start.sh | |
sh es5-start.sh | |
sh es6-start.sh |
This file contains hidden or 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
#!/usr/bin/env bash | |
sh es2-stop.sh | |
sh es5-stop.sh | |
sh es6-stop.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment