Skip to content

Commit

Permalink
[Build] Add Makefile target build_ops to rebuild and install yawa-o…
Browse files Browse the repository at this point in the history
…ps module using the OpenAPI spec returned by the running server.
  • Loading branch information
gmarciani committed Nov 30, 2024
1 parent 7c03fe5 commit e8fbed5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ login:
docker compose -f ${COMPOSE_FILE} exec -it $(container) /bin/bash
check_server:
PATH="$$(pyenv virtualenv-prefix yawa-ops-dev)/envs/yawa-ops-dev/bin:$$PATH" yawa-ops health --profile admin
build_ops:
gradle -p server getOpenApiDefinition buildClients
PATH="$$(pyenv virtualenv-prefix yawa-ops-dev)/envs/yawa-ops-dev/bin:$$PATH" pip install -e ops/
open:
@if [ $(target) == "frontend" ]; then\
python3 -m webbrowser "https://localhost:8010" ;\
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ Open web interfaces on browser:
make open target=[frontend|server|server_swagger|database|dbadmin|grafana|loki|prometheus]
```

Build yawa-ops (the server to be running to update the OpenAPI spec used by the Python client)
```shell
make build_ops
```

## Containers
The application is made of the containers below.

Expand Down

0 comments on commit e8fbed5

Please sign in to comment.