Skip to content

Update OntoRXN record (#2053) #1246

Update OntoRXN record (#2053)

Update OntoRXN record (#2053) #1246

Workflow file for this run

name: Docker build and web service test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build image
run: |
sed '/RUN python -m pip install bioregistry\[web\]/{
a\WORKDIR /app
a\COPY . /app
a\RUN python -m pip install -e .[web]
d
}' Dockerfile > Dockerfile.ci
docker build -f Dockerfile.ci -t bioregistry:test .
- name: Run container and check
run: |
docker run -d -p 8766:8766 --name bioregistry bioregistry:test
for i in {1..10}; do
status=$(curl -s -o /dev/null -w '%{http_code}' http://localhost:8766 || true)
if [ "$status" -eq 200 ]; then
break
fi
sleep 3
done
docker logs bioregistry
docker stop bioregistry
if [ "$status" -ne 200 ]; then
echo "Service did not return 200" >&2
exit 1
fi