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
| REGION=${REGION:-us-east-1} | |
| UBUNTU_RELEASE=${UBUNTU_RELEASE:-trusty} | |
| ARCH=${ARCH:-amd64} | |
| INSTANCE_TYPE=${INSTANCE_TYPE:-hvm:ebs} | |
| curl 'https://cloud-images.ubuntu.com/locator/ec2/releasesTable' --compressed | grep -Ei "\"$REGION\",\"$UBUNTU_RELEASE\",.*,\"$INSTANCE_TYPE\"" | grep -oEi "ami-\w+" | head -1 |
This file has been truncated, but you can view the full file.
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
| {"year":2001,"make":"ACURA","model":"CL"} | |
| {"year":2001,"make":"ACURA","model":"EL"} | |
| {"year":2001,"make":"ACURA","model":"INTEGRA"} | |
| {"year":2001,"make":"ACURA","model":"MDX"} | |
| {"year":2001,"make":"ACURA","model":"NSX"} | |
| {"year":2001,"make":"ACURA","model":"RL"} | |
| {"year":2001,"make":"ACURA","model":"TL"} | |
| {"year":2001,"make":"AM GENERAL","model":"HUMMER"} | |
| {"year":2001,"make":"AMERICAN IRONHORSE","model":"CLASSIC"} | |
| {"year":2001,"make":"AMERICAN IRONHORSE","model":"LEGEND"} |
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 | |
| set -o xtrace # trace what gets executed | |
| set -o errexit # exit when a command fails. | |
| set -o nounset # exit when your script tries to use undeclared variables | |
| __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| DATA_DIR="${__dir}/containers/elasticsearch/data" |
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
| # Clear our example index | |
| DELETE /vehicle | |
| # Post a few car records with make, model and year | |
| POST /vehicle/car/_bulk | |
| {"index":{}} | |
| {"make":"Saturn","model":"LW","year":2005} | |
| {"index":{}} | |
| {"make":"Honda","model":"Civic","year":2005} | |
| {"index":{}} |
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
| # Create a few vehicles with different types | |
| POST /vehicles_type_agg_test/_bulk | |
| {"index":{"_id":"honda_civic","_type": "car"}} | |
| {"make": "Honda", "model": "Civic"} | |
| {"index":{"_id":"honda_accord","_type": "car"}} | |
| {"make": "Honda", "model": "Accord"} | |
| {"index":{"_id":"tesla_roadster","_type": "car"}} | |
| {"make":"Tesla", "model": "Roadster"} | |
| {"index":{"_id":"audi_a4","_type": "car"}} | |
| {"make":"Audi", "model": "A4"} |
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
| version: "2" | |
| services: | |
| elasticsearch: | |
| image: elasticsearch | |
| ports: | |
| - 9200:9200 | |
| kibana: | |
| image: kibana | |
| ports: | |
| - 5601:5601 |
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
| # Boilerplate ELK setup in Docker Compose | |
| version: "2" | |
| services: | |
| elasticsearch: | |
| image: elasticsearch | |
| ports: | |
| - 9200:9200 | |
| kibana: | |
| image: kibana |
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
| Expected: <true> | |
| but: was <false> | |
| at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) | |
| at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8) | |
| at com.sonian.elasticsearch.zookeeper.discovery.ZooKeeperDiscoveryTests$ClusterStateMonitor.await(ZooKeeperDiscoveryTests.java:720) | |
| at com.sonian.elasticsearch.zookeeper.discovery.ZooKeeperDiscoveryTests.testMasterSwitchDuringSessionExpiration(ZooKeeperDiscoveryTests.java:345) | |
| testNonMasterSessionExpiration(com.sonian.elasticsearch.zookeeper.discovery.ZooKeeperDiscoveryTests) Time elapsed: 15.322 sec <<< FAILURE! | |
| java.lang.AssertionError: | |
| Expected: <true> |
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
| .sessions h4 { | |
| margin-bottom: 0; | |
| } |