Skip to content

Commit

Permalink
Adding docker compose and run script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Nov 7, 2024
1 parent de98880 commit f28cbb7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea
*.iml
target/
*.jsonl
20 changes: 20 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
services:

opensearch:
image: opensearchproject/opensearch:2.18.0
container_name: opensearch
environment:
discovery.type: single-node
node.name: opensearch
plugins.security.disabled: "true"
logger.level: info
OPENSEARCH_INITIAL_ADMIN_PASSWORD: SuperSecretPassword_123
ports:
- 9200:9200
- 9600:9600
networks:
- opensearch

networks:
opensearch:
driver: bridge
5 changes: 5 additions & 0 deletions run-and-index.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e

java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/phileas-benchmark-cmd.jar all mask_all 1 15000 json > tests.jsonl

cat tests.jsonl | jq -c '. | {"index": {"_index": "phileas_benchmarks"}}, .' | curl -H "Content-Type: application/json" -XPOST localhost:9200/_bulk --data-binary @-

0 comments on commit f28cbb7

Please sign in to comment.