#!/bin/bash set -e echo "waiting for gitea..." curl --silent --head --retry 5 --retry-connrefused --retry-delay 0 --max-time 10 --retry-max-time 40 "http://gitea:3000/" > /dev/null echo "fetching swagger spec" curl -L http://gitea:3000/swagger.v1.json > gitea.swagger.json echo "fetched gitea.swagger.json" exit 0