Compare commits

..

3 Commits

Author SHA1 Message Date
835823858b improved test (checking uuid are 36 chars long) 2023-01-03 17:39:10 +01:00
f1369d5e25 added some docs 2023-01-03 17:38:45 +01:00
d6cc6dcbee fixes 2023-01-03 17:38:32 +01:00
3 changed files with 3 additions and 2 deletions

View File

@ -491,7 +491,7 @@ async def leasing_v1_lessor_lease_remove(request: Request):
@app.post('/leasing/v1/lessor/shutdown', description='shutdown all leases') @app.post('/leasing/v1/lessor/shutdown', description='shutdown all leases')
async def leasing_v1_lessor_shutdown(request: Request): async def leasing_v1_lessor_shutdown(request: Request):
j, cur_time = json.loads((await request.body()).decode('utf-8')) j, cur_time = json.loads((await request.body()).decode('utf-8')), datetime.utcnow()
token = j.get('token') token = j.get('token')
token = jwt.decode(token=token, key=jwt_decode_key, algorithms=ALGORITHMS.RS256, options={'verify_aud': False}) token = jwt.decode(token=token, key=jwt_decode_key, algorithms=ALGORITHMS.RS256, options={'verify_aud': False})

View File

@ -34,6 +34,7 @@ nvidia-gridd[2986]: License acquired successfully. (Info: license.nvidia.space,
Most variables and configs are stored in `/var/lib/docker/volumes/configurations/_data`. Most variables and configs are stored in `/var/lib/docker/volumes/configurations/_data`.
Files can be modified with `docker cp <container-id>:/venv/... /opt/localfile/...` and back. Files can be modified with `docker cp <container-id>:/venv/... /opt/localfile/...` and back.
(May you need to fix permissions with `docker exec -u 0 <container-id> chown nonroot:nonroot /venv/...`)
## Dive / Docker image inspector ## Dive / Docker image inspector

View File

@ -50,7 +50,7 @@ def test_health():
def test_config(): def test_config():
response = client.get('/-/') response = client.get('/-/config')
assert response.status_code == 200 assert response.status_code == 200