For an easy testing of OdysseusNet on a single machine, we propose the user of docker-compose. See an example of a docker-compose.yml file below (use docker-compose up
) . Here three workers with kafka capabilities are created and started. Hint: To update the images to the lastest versions after the initial download use docker-compose pull
bevor starting with up
again.
version: '3.8' services: worker01: image: odysseusol/odysseus_kafka_debug:dev-latest stdin_open: true ports: - 18881:8888 volumes: - ./worker01:/var/lib/odysseus worker02: image: odysseusol/odysseus_kafka_debug:dev-latest stdin_open: true ports: - 18882:8888 volumes: - ./worker02:/var/lib/odysseus worker03: image: odysseusol/odysseus_kafka_debug:dev-latest stdin_open: true ports: - 18883:8888 volumes: - ./worker03:/var/lib/odysseus
As this is not a root container under linux you will need to give write access to user with uid=1000 gid=1024
sudo chown 1000:1888 worker0* sudo chmod 755 worker0*
or give access right for any user:
sudo chmod
777
-R worker0*
Remark: If you do not want to use kafka to communicate and the worker should be able to commicate with each other, it is important, that the master node is part of the docker network, else the connections between the workers could be failing.