Explorar el Código

next

Signed-off-by: Jean-Michel Batto <jean-michel.batto@eldarsoft.com>
Jean-Michel Batto hace 2 días
padre
commit
34ba6e95e6

+ 54 - 0
docker-compose.yml

@@ -0,0 +1,54 @@
+# format 3.x, validated on W10 - there is no "mode/uid/gid" for docker-compose 1.29/W10
+# you should provide your private/public RSA key in ./ssh dir (named id_rsa.mpi/id_rsa.mpi.pub)
+# docker swarm init, then you have to do // note version_mpinet is the name of the overlay
+# docker network create --driver=overlay --attachable yml_mpinet
+# Nov, 13, 2021 - Jean-Michel Batto
+version: "3.9"
+services:
+  mpihead:
+    image: jmbatto/m2chps-mpi41:latest
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    ports: 
+      - "22"
+    links: 
+      - mpinode
+    networks:
+      - mpinet
+    secrets:                   
+      - source: "id_rsa"
+        target: "/home/mpiuser/.ssh-source/id_rsa"
+      - source: "id_rsa_mpi_pub"
+        target: "/home/mpiuser/.ssh-source/id_rsa.pub"
+      - source: "authorized_keys"
+        target: "/home/mpiuser/.ssh-source/authorized_keys"
+  mpinode:
+    image: jmbatto/m2chps-mpi41:latest
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    networks:
+      - mpinet
+    secrets:                   
+      - source: "id_rsa"
+        target: "/home/mpiuser/.ssh-source/id_rsa"
+      - source: "id_rsa_mpi_pub"
+        target: "/home/mpiuser/.ssh-source/id_rsa.pub"
+      - source: "authorized_keys"
+        target: "/home/mpiuser/.ssh-source/authorized_keys"
+secrets:
+  id_rsa_mpi_pub:
+    file: ssh/id_rsa.mpi.pub
+  id_rsa:
+    file: ssh/id_rsa.mpi
+  authorized_keys:
+    file: ssh/id_rsa.mpi.pub
+networks:
+  mpinet:
+    external: true
+    name : yml_mpinet
+    driver: overlay  
+volumes:
+  usrlocalvarmpi-foo:
+    

+ 27 - 0
ssh/id_rsa.mpi

@@ -0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erhub.pdf


BIN
support-bibliographique/confiance-acm_1984_ken_thomson.pdf