summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2021-11-26 10:04:52 +0100
committerKristofer Hallin <kristofer@sunet.se>2021-11-26 10:04:52 +0100
commitfc4041593af0f58ead142441b6229b455dd3794b (patch)
tree949ffbac861b9100c9816970364612f65e17bf71 /README.md
parentdb53c0447da00003dddfc7feb640d6f59319de29 (diff)
parentf90a61be00c1f9aebb1ba8c65b67a22d81e97f42 (diff)
Merge branch 'main' of git.sunet.se:soc_collector into fastapi_pytest
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1537048..1e4ecbb 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ Clone the repository.
Install dependencies (Debian).
- sudo apt install docker.io docker-compose
+ sudo apt install docker.io docker-compose jq curl apache2-utils
Start the collector and JWT server, and generate certificates for JWT signing:
@@ -81,6 +81,17 @@ We can also limit the number of results and skip N results forward with the para
curl -s -H "Authorization: Bearer $JWT" 'http://localhost:80/sc/v0/get?limit=5&skip=2' | json_pp -json_opt utf8,pretty
+## Development
+
+There are two docker-compose files used for development:
+
+- `docker/docker-compose-dev.yaml` for the collector, and
+- `auth-server-poc/docker-compose.yml` for the JWT server.
+
+To apply changes, build with `docker-compose build -f docker/docker-compose-dev.yaml` or `docker-compose -f auth-server-poc/docker-compose.yml` (depending on what has changed) and then restart the containers with `./quickstart.sh`.
+
+If you want to save build time you can also pass a service name to `docker-compose build`, i.e. `docker-compose build -f docker/docker-compose-dev.yaml collector`.
+
## JWT mechanics (work in progress)
2021-11-24: Currently no checks except that the JWT is valid are performed when