Skip to content

Commit

Permalink
broker and docker documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorBalog-Eng committed Jun 4, 2021
1 parent 9b219a6 commit b63efa6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
13 changes: 7 additions & 6 deletions docs/broker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Broker

The TRUE Connector integrates some endpoints for interacting with an IDS Broker:

### SelfDescription

Self Description document, in json format, for connector, can be found at following URL - GET request
Expand All @@ -21,7 +19,7 @@ REST_ENABLE_HTTPS=true
```
configured in .env file.

In order to set different values for connector, based on connector role (Data Consumer/Data Provider), follwoing file and properties needs to be modified:
In order to set different values for Self Description document, based on connector role (Data Consumer/Data Provider), following file and properties needs to be modified:

```
ecc_resources_consumer/application-docker.properties
Expand All @@ -45,7 +43,9 @@ In order to register to broker, proxy endpoint can be used to send register requ
<i>message</i> part or proxy request, ConnectorUpdateMessage as json must be created and set as value.</br>
<i>payload</i> object of proxy request set self description json string of connector that we wish to register.

Example of ConnectorUpdateMessage:
Example of ConnectorUpdateMessage:

**Remark applicable for all Broker messages** - be sure to match senderAgent, issuerConnector and affectedConnector values from ConnectorUpdateMessage with the value in Self Description message

```
{
Expand Down Expand Up @@ -178,15 +178,16 @@ Example of QueryMessage:
},
"ids:modelVersion" : "4.0.0",
"ids:issuerConnector" : {
"@id" : "http://connectorURI"
"@id" : "https://eng.true-connector.com/"
}
}
```

Payload can be like following:

```
SELECT ?connectorUri WHERE { ?connectorUri a ids:BaseConnector . } '
PREFIX ids: <https://w3id.org/idsa/core/>
SELECT ?connectorUri WHERE { ?connectorUri a ids:BaseConnector . }
```

{ At the moment, broker supports only multipart/mixed requests, this means that connector will have to be configured to mulitpar/mixed configuration. }
10 changes: 9 additions & 1 deletion docs/docker_readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ Example:
docker build -f Dockerfile -t johndoe/execution_core_container:1.0 .
```

Be aware that using an existing Docker Hub username is required to push the image to Docker Hub
Be aware that using an existing Docker Hub username is required to push the image to Docker Hub

Pushing docker image to remote repo can be performed using following command

```
docker push <registry-name/hub-user>/<repo-name>:<version-tag>
```

Same logic can be applied when creating Docker image for data app.

0 comments on commit b63efa6

Please sign in to comment.