From 58f8f65e3b5df1718037a7de6095ade5d3ae8d14 Mon Sep 17 00:00:00 2001 From: amemon Date: Wed, 2 Aug 2023 14:58:32 +0200 Subject: [PATCH] update interlink mock plugin (#37) --- docs/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/README.md b/docs/README.md index 85452af1..1b205950 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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