You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OpenAPISpecification.yaml
+42-17
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,25 @@ schemes:
24
24
- https
25
25
- http
26
26
paths:
27
+
/configuration:
28
+
get:
29
+
tags:
30
+
- Meta
31
+
summary: Retreives general configuration information
32
+
description: Retrieves an object containing the most important configuration values of the registry. This contains the docker and traefik URIs.
33
+
operationId: configurationInfo
34
+
responses:
35
+
'200':
36
+
description: Configuration object
37
+
schema:
38
+
type: object
39
+
properties:
40
+
DockerHttpApi:
41
+
type: string
42
+
example: "172.0.2.1:9095"
43
+
TraefikProxyUri:
44
+
type: string
45
+
example: "172.0.2.1:80"
27
46
/instances/register:
28
47
post:
29
48
tags:
@@ -374,12 +393,15 @@ paths:
374
393
description: 'Bad request, your label exceeded the character limit'
375
394
'404':
376
395
description: 'Not found, the id you specified could not be found'
377
-
/instances/{Id}/logs:
396
+
'/instances/{Id}/logs':
378
397
get:
379
398
tags:
380
399
- Basic Operations
381
400
summary: Retrieve the logging output of the specified instance
382
-
description: This command retrieves the docker container logging output for the specified instance, if the instance is in fact running inside a docker container.
401
+
description: >-
402
+
This command retrieves the docker container logging output for the
403
+
specified instance, if the instance is in fact running inside a docker
404
+
container.
383
405
operationId: retreiveLogs
384
406
parameters:
385
407
- name: Id
@@ -395,22 +417,28 @@ paths:
395
417
type: boolean
396
418
responses:
397
419
'200':
398
-
description: Success, log string is being returned
420
+
description: 'Success, log string is being returned'
399
421
schema:
400
422
type: string
401
-
example: "I am logging output .."
423
+
example: I am logging output ..
402
424
'400':
403
425
description: Selected instance not running inside docker container
404
426
'404':
405
427
description: Id not found on the server
406
428
'500':
407
429
description: Internal Server Error
408
-
/instances/{Id}/attach:
430
+
'/instances/{Id}/attach':
409
431
get:
410
432
tags:
411
433
- Basic Operations
412
434
summary: Stream logging output from instance
413
-
description: 'This command streams the docker container logging output for the specified instance. NOTE: This is a websocket endpoint, so only valid websocket requests will be processed. Swagger does not provide sufficient support for websockets, so this documentation might be confusing as it defines a HTTP method, etc. The names of parameters and response-codes are valid though.'
435
+
description: >-
436
+
This command streams the docker container logging output for the
437
+
specified instance. NOTE: This is a websocket endpoint, so only valid
438
+
websocket requests will be processed. Swagger does not provide
439
+
sufficient support for websockets, so this documentation might be
440
+
confusing as it defines a HTTP method, etc. The names of parameters and
441
+
response-codes are valid though.
414
442
operationId: streamLogs
415
443
parameters:
416
444
- name: Id
@@ -426,7 +454,7 @@ paths:
426
454
type: boolean
427
455
responses:
428
456
'200':
429
-
description: Success, logs are being streamed via websocket connection.
457
+
description: 'Success, logs are being streamed via websocket connection.'
430
458
'400':
431
459
description: Selected instance not running inside docker container
432
460
'404':
@@ -747,13 +775,12 @@ paths:
747
775
description: One of the ids was not found on the server
748
776
'500':
749
777
description: Internal server error
750
-
/instances/{Id}/command:
778
+
'/instances/{Id}/command':
751
779
post:
752
780
tags:
753
781
- Docker Operations
754
782
summary: Runs a command into a docker container
755
-
description: >-
756
-
This command runs a specified command inside a docker container.
783
+
description: This command runs a specified command inside a docker container.
757
784
operationId: command
758
785
parameters:
759
786
- in: path
@@ -773,23 +800,21 @@ paths:
773
800
properties:
774
801
Command:
775
802
type: string
776
-
example: "rm -rf *"
803
+
example: rm -rf *
777
804
Privileged:
778
805
type: boolean
779
806
User:
780
807
type: string
781
808
example: root
782
809
responses:
783
810
'200':
784
-
description: 'OK'
811
+
description: OK
785
812
'400':
786
-
description: >-
787
-
Cannot run command, ID is no docker container.
813
+
description: 'Cannot run command, ID is no docker container.'
788
814
'404':
789
-
description: Cannot run command, ID not found.
815
+
description: 'Cannot run command, ID not found.'
790
816
'500':
791
-
description: Internal server error, unknown operation result DESCRIPTION
792
-
817
+
description: 'Internal server error, unknown operation result DESCRIPTION'
Copy file name to clipboardExpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,9 @@ Before you can start the application, you have to make sure your configuration f
47
47
| :---: | :---: | :---: | :--- |
48
48
|```bindHost```|```String```|```"0.0.0.0"```| Host address that the registry server should be bound to |
49
49
|```bindPort```|```Int```|```8087```| Port that the registry server should be reachable at |
50
+
|```traefikBaseHost```|```String```|```"delphi.cs.upb.de"```| The host part of the URL that traefik is configured to append to instance URLs. |
51
+
|```traefikDockerNetwork```|```String```|```"web"```| The Docker network Traefik is configured to use. |
52
+
|```traefikUri```|```String```|```"http://172.17.0.1:80"```| The URI that the Traefik reverse-proxy is hosted at.|
50
53
|```defaultCrawlerPort```|```Int```|```8882```| Port that Delphi Crawlers are reachable at. This may only be adapted if you manually changed the default port of crawlers before registering the respective image. |
51
54
|```defaultWebApiPort```|```Int```|```8080```| Port that Delphi WebAPIs are reachable at. This may only be adapted if you manually changed the default port of WebAPIs before registering the respective image. |
52
55
|```defaultWebAppPort```|```Int```|```8085```| Port that Delphi WebApps are reachable at. This may only be adapted if you manually changed the default port of WebApps before registering the respective image. |
@@ -58,7 +61,7 @@ Before you can start the application, you have to make sure your configuration f
58
61
|```uriInLocalNetwork```|```String```|```"http://172.17.0.1:8087"```| URI that the registry is reachable at for all docker containers. In most of the use-cases this is going to be the gateway of the default docker bridge.<br>**Note:** For OSX you have to set this value to the DNS name of the docker host, which is ```http://host.docker.internal:8087``` (If the registry is running on the host).|
59
62
|```maxLabelLength```|```Int```|```50```| Maximum number of characters for instance labels. Longer labels will be rejected.|
60
63
|```dockerOperationTimeout```|```Timeout```|```Timeout(20 seconds)```| Default timeout for docker operations. If any of the async Docker operations (deploy, stop, pause, ..) takes longer than this, it will be aborted.|
61
-
|```defaultDockerUri```|```String```|```http://localhost:9095```| Default uri to connect to docker. It will be used if the environment variable ```DELPHI_DOCKER_HOST``` is not specified.|
64
+
|```dockerUri```|```String```|```http://localhost:9095```| Default uri to connect to docker. It will be used if the environment variable ```DELPHI_DOCKER_HOST``` is not specified.|
62
65
|```jwtSecretKey```|```String```|```changeme```| Secret key to use for JWT signature (HS256). This setting can be overridden by specifying the ```JWT_SECRET``` environment variable.|
63
66
|```useInMemoryDB```|```Boolean```|```true```| If set to true, all instance data will be kept in memory instead of using a MySQL database.|
64
67
|```databaseHost```|```String```|```"jdbc:mysql://localhost/"```| Host that the MySQL database is reachable at (only necessary if *useInMemoryDB* is false).|
0 commit comments