Skip to content

Commit

Permalink
Merge pull request #63 from VallariAg/fix-dev-README
Browse files Browse the repository at this point in the history
README: add testing instructions & change volume mounted
  • Loading branch information
VallariAg authored Jun 25, 2024
2 parents 84b6f61 + 3798208 commit d7da967
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ A REST API to execute [teuthology commands](https://docs.ceph.com/projects/teuth
environment:
DEPLOYMENT: development
volumes:
- ../../../teuthology-api:/teuthology_api/:rw
- ../../../teuthology-api/src:/teuthology_api/src:rw
```
`DEPLOYMENT: development` would run the server in `--reload` mode (server would restart when changes are made in `/src` dir) and `volumes` would mount host directory to docker's directory (local changes would reflect in docker container).
Expand All @@ -71,7 +71,9 @@ A REST API to execute [teuthology commands](https://docs.ceph.com/projects/teuth
The documentation can be accessed at http://localhost:8082/docs after running the application.
Note: To run commands, authenticate by visiting `http://localhost:8082/login` through browser and follow the github authentication steps (this stores the auth token in browser cookies).
Once you have teuthology-api running, authenticate by visiting `http://localhost:8082/login` through browser and follow the github authentication steps (this stores the auth token in browser cookies).
> Note: To test below endpoints locally, recommended flow is to login through browser (as mentioned above) and then send requests (and receive response) through interactive docs at `/docs`.
### Route `/`
Expand Down

0 comments on commit d7da967

Please sign in to comment.