1
0
mirror of https://github.com/fluencelabs/jsonpath synced 2025-04-05 16:31:04 +00:00

21 lines
682 B
Bash
Raw Normal View History

2019-08-23 22:09:09 +09:00
#!/usr/bin/env bash
2019-09-08 15:37:21 +09:00
# cd lua && cargo build --release && cd docker_example && ./run.sh
2019-08-23 22:09:09 +09:00
set -v
2019-09-08 15:37:21 +09:00
[ "$(docker ps -a | grep jsonpath)" ] && docker kill jsonpath
2019-08-23 22:09:09 +09:00
docker run -d --rm --name jsonpath \
-v "${PWD}/../../benchmark/example.json":/etc/jsonpath/example/example.json:ro \
-v "${PWD}/../jsonpath.lua":/etc/jsonpath/jsonpath.lua:ro \
-v "${PWD}/testa.lua":/etc/jsonpath/testa.lua:ro \
-v "${PWD}/init.lua":/etc/jsonpath/init.lua:ro \
2019-08-23 22:09:09 +09:00
-v "${PWD}/../target/release/deps/libjsonpath_lib.so":/etc/jsonpath/libjsonpath_lib.so:ro \
-v "${PWD}/default.conf":/etc/nginx/conf.d/default.conf \
-p 8080:80 \
openresty/openresty:bionic
2019-09-08 15:37:21 +09:00
sleep 1
curl http://localhost:8080/3