Skip to content

Commit

Permalink
Add one-line example runner (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Jul 9, 2024
1 parent dd59974 commit 30359e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ In order to run it, you need to:
- build `quesma:latest` image by running `docker build -f quesma/Dockerfile -t quesma:latest quesma` from the root directory
- run `docker-compose up` directly from `/examples/kibana-sample-data` directory

Handy one-liner:
```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/QuesmaOrg/quesma/main/run.sh)"
```

Once it's running, you can access:
- Kibana at [localhost:5601](http://localhost:5601/)
- Quesma at [localhost:9999](http://localhost:9999/)
Expand Down
13 changes: 13 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

readonly REPOSITORY="https://github.com/quesmaOrg/quesma"

git clone -q --depth=1 "$REPOSITORY"

cd quesma

docker build -f quesma/Dockerfile -t quesma:latest quesma

docker-compose -f examples/kibana-sample-data/docker-compose.yml up

0 comments on commit 30359e6

Please sign in to comment.