Open kinow opened 2 years ago
The last time I used that --scale
argument was a long time ago with the PBS Torque Docker image. Looks like now Docker Compose added a slug
(that random hash appended to the name).
It makes it harder to use the --scale
as in the documentation, since the master is not able to find the slave hosts.
Here's a diff that made the README
instructions work (could work as replacement for #1)
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 59bedae..ba31cc6 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -1,12 +1,29 @@
version: '3.7'
services:
- compss-worker:
+ compss-worker_1:
image: "bscppc/compss-deephealth-demo"
command: ["-c", "/usr/sbin/sshd -D"]
-
+ container_name: deephealth_compss-worker_1
+ compss-worker_2:
+ image: "bscppc/compss-deephealth-demo"
+ command: ["-c", "/usr/sbin/sshd -D"]
+ container_name: deephealth_compss-worker_2
+ compss-worker_3:
+ image: "bscppc/compss-deephealth-demo"
+ command: ["-c", "/usr/sbin/sshd -D"]
+ container_name: deephealth_compss-worker_3
+ compss-worker_4:
+ image: "bscppc/compss-deephealth-demo"
+ command: ["-c", "/usr/sbin/sshd -D"]
+ container_name: deephealth_compss-worker_4
+
compss-master:
image: "bscppc/compss-deephealth-demo"
stdin_open: true
tty: true
depends_on:
- - compss-worker
+ - compss-worker_1
+ - compss-worker_2
+ - compss-worker_3
+ - compss-worker_4
+ container_name: deephealth_compss-master_1
I tried using a single slave, but I think the master configuration is set to 4 workers, so I thought it easier to just add the four workers directly in docker-compose.yaml
.
Thanks!
Hi,
I followed the instructions from the
README.md
file, and got the Docker compose cluster working after #1But running the example results in the error below.
Thanks! -Bruno