...
Code Block |
---|
docker-compose up -d |
Setup of Odysseus Webstudio
You can use the Odysseus Webstudio (WebStudio) for monitoring and interacting with the worker nodes. To install it, first clone the Webstudio-repo (https://git.swl.informatik.uni-oldenburg.de/projects/API_APPS/repos/webstudio/browse?at=refs%2Fheads%2Fdevelopment) and checkout the development-branch with
Code Block |
---|
git clone https://git.swl.informatik.uni-oldenburg.de/scm/api_apps/webstudio.git
git checkout -b development |
Then create and give the all permissions to everyone to the following directories as a workaround:
Code Block |
---|
mkdir frontend odysseushome
chmod 777 -R frontend odysseushome |
For starting the docker stack you can set the images accordingly in the docker-compose.yml file:
Configuring inside docker compose
As the nodes read their configuration from sytem-properties and enviroment before looking into the config file, you can overwrite the configuration like in the following docker compose example:
Code Block |
---|
version: '3.8'
services:
nexmark:
image: odysseusol/nexmark
|
Code Block |
version: '3.3' services: frontend: image: odysseusol/webstudio_frontend #build: frontend ports: - "4200:80" - 65440-65443:65440-65443 environmentnode01: NODE_ENV: ${NODE_ENV} image: odysseusol/odysseusnet restart: always dependsstdin_onopen: true - backend ports: backend: image: odysseusol/webstudio_backend #build: backend ports:- 18881:8888 - "3000environment:3000" environment: NODE_ENV: ${NODE_ENV}- net.node.name=node01 MONGODB_URI: ${MONGODB_URI} SECRET_TOKEN: ${SECRET_TOKEN}- net.net.discoverer.name=MulticastOdysseusNodeDiscoverer,BroadcastOdysseusNodeDiscoverer,IPListOdysseusNodeDiscoverer DOWNLOAD_TOKEN: ${DOWNLOAD_TOKEN} PROJECTS_FOLDER: ${PROJECTS_FOLDER} - net.node.communicator=rest restart: always depends_on: - database volumes: - backenddata:/home/node/app/projects - ./backend/logsnode01:/homevar/nodelib/app/logsodysseus databasenode02: image: mongo restartimage: alwaysodysseusol/odysseusnet ports: stdin_open: true - "27017ports:27017" volumes: - mongodbdata:/data/db odysseus: 18882:8888 environment: image: odysseusol/odysseus restart: always - net.node.name=node02 - net.net.discoverer.name=MulticastOdysseusNodeDiscoverer,BroadcastOdysseusNodeDiscoverer,IPListOdysseusNodeDiscoverer - net.node.communicator=rest volumes: - ./node02:/var/lib/odysseus node03: image: odysseusol/odysseusnet stdin_open: true ports: - 18883:8888 environment: - net.node.name=node03 - net.net.discoverer.name=MulticastOdysseusNodeDiscoverer,BroadcastOdysseusNodeDiscoverer,IPListOdysseusNodeDiscoverer - net.node.communicator=rest volumes: - ./node03:/var/lib/odysseus node04: image: odysseusol/odysseusnet stdin_open: true ports: - 18884:8888 environment: - net.node.name=node04 - net.net.discoverer.name=MulticastOdysseusNodeDiscoverer,BroadcastOdysseusNodeDiscoverer,IPListOdysseusNodeDiscoverer - net.node.communicator=rest volumes: - ./node04:/var/lib/odysseus |
Setup of Odysseus Webstudio
You can use the Odysseus Webstudio (WebStudio) for monitoring and interacting with the worker nodes. There are two options:
- Only use the webstudio
- Develop the webstudio
Use the webstudio
If you just want to use the Webstudio you should just download the docker-compose.yml file from here:
For Linux: As this is not a root container, you need to give read access to the user of the docker container. The easiest way is to use 777
Develop the webstudio
To install it, first clone the Webstudio-repo (https://git.swl.informatik.uni-oldenburg.de/projects/API_APPS/repos/webstudio/browse?at=refs%2Fheads%2Fdevelopment) and checkout the development-branch with
Code Block |
---|
git clone ports: - "8889:8888" volumes: - ./odysseushome:/var/lib/odysseus volumes: mongodbdata: backenddata: odysseushome:https://git.swl.informatik.uni-oldenburg.de/scm/api_apps/webstudio.git git checkout -b development |
Then create and give the all permissions to everyone to the following directories as a workaround:
Code Block |
---|
mkdir backend
chmod 777 -R backend |
For starting the docker stack you can set the images accordingly in the docker-compose.yml in the home dir
At last you can start the stack with:
...
Add the nodes in Odysseus Studio
Before adding the worker nodes to Odysseus Studio, stop the OdysseusNet feature in the nodes tab, it will be started automatically when adding the nodes dynamically with OdysseusScriptIt the view is not available, you should use Window/Show View/other... and then select Nodes from the OdysseusNet section.
Before you can install queries on the nodes, you have to add the worker nodes with:
...