Skip to content

Commit

Permalink
update interlink mock plugin (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
amemon authored Aug 2, 2023
1 parent 6a361d2 commit 58f8f65
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@

TBD

### Setup and deploy Interlink's edge service with mock plugin

Following are the steps to setup and deploy edge service, which offload's a docker container. The virtual K8S node is deployed elsewhere:
* Make sure to have Docker installed on the target machine
* Execute the following command:

$> sudo usermod -aG docker $USER

* Open and edit the following lines in the script ``` interlink/docs/itwinctl.sh ``` to update authentication proxy settings
* Depending on your network policy, update the port number with the exposed port of your OAuth-Proxy service:

--API_HTTPS_PORT="${API_HTTPS_PORT:-7002}"
* Set correct the host's PKI credentials (or certificates and private key) path:

export HOSTKEY="${HOSTKEY:-/$HOME/hostkey.pem}"
export HOSTCERT="${HOSTCERT:-/$HOME/hostcert.pem}"
* To generate demo certificates, run the following openssl command:

$> openssl req -x509 -sha256 -newkey rsa:4096 -nodes -keyout key.pem -days 11688 -out cert.pem -subj "/C=DE/CN=JSC-INTERTWIN-COMPUTE" -addext "basicConstraints=CA:FALSE" -addext "keyUsage=digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment" -addext "extendedKeyUsage=clientAuth"

* After installation, start the docker-sidecar (or mock plugin)

VERSION=0.0.1 SIDECAR=docker ./itwinctl.sh start
* Please check the logs if the services are properly running, they can be found under: ``` /$HOME/.local/interlink/logs/ ```
* Execute offloading a compute task from application layer and check if the docker container is running, by:

docker ps -a

### Install binaries

```bash
Expand Down

0 comments on commit 58f8f65

Please sign in to comment.