mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-21 12:20:08 +08:00
the previous iteration of this script which used wiremock threw a null pointer exception.
18 lines
402 B
Bash
Executable File
18 lines
402 B
Bash
Executable File
#!/usr/bin/env bash
|
|
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
|
|
|
# switch to backend directory
|
|
pushd "$parent_path/../../backend"
|
|
|
|
export DEBUG_SKIP_API_KEY_CHECK=True
|
|
|
|
python -m print_openapi_schema > oasst-openapi.json
|
|
|
|
MOCK_SERVER_PORT=8080
|
|
|
|
docker run --init --rm -d -p $MOCK_SERVER_PORT:4010 -v $(pwd):/tmp -P stoplight/prism:4 proxy -h 0.0.0.0 "/tmp/oasst-openapi.json"
|
|
|
|
|
|
popd
|
|
|