mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-05 17:40:55 -05:00
19 lines
461 B
Bash
Executable File
19 lines
461 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
# Ensure current path is project root
|
|
cd "$(dirname "$0")/../"
|
|
|
|
cp docs/redoc/master/openapi.json openapi/tests/openapi.json
|
|
|
|
docker buildx build --load -q ./openapi/tests --tag=qdrant_openapi_test
|
|
|
|
DOCKER_ARGS=$([ -t 0 ] && echo "-it" || echo "")
|
|
docker run $DOCKER_ARGS \
|
|
--rm \
|
|
--network=host \
|
|
-e OPENAPI_FILE='openapi.json' \
|
|
-v "${PWD}"/openapi/tests:/code \
|
|
qdrant_openapi_test sh -c /code/run_docker.sh
|