Skip to content

Commit

Permalink
Fix issue in "fetch-spec.sh" script.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0ctor committed Feb 25, 2023
1 parent 2b3469b commit e00fb86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/fetch-spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ mv "${REPO_DIR}/docker-compose.override.yml.example" "${REPO_DIR}/docker-compose
export VERSION="v${NETBOX_VERSION}"
docker compose --project-directory="${REPO_DIR}" up --detach --quiet-pull

curl --silent http://127.0.0.1:8000/api/docs/?format=openapi > api/openapi.json
while ! curl --silent http://localhost:8000/api/docs/?format=openapi > api/openapi.json 2> /dev/null; do
sleep 1
done

docker compose --project-directory="${REPO_DIR}" down

rm -rf "${REPO_DIR}"

0 comments on commit e00fb86

Please sign in to comment.