Browse Source

init

Signed-off-by: Jean-Michel Batto <jean-michel.batto@eldarsoft.com>
Jean-Michel Batto 1 month ago
parent
commit
88b0959bcb

BIN
Cuicui.pdf


BIN
Exemple-presentation-chiffrage.xlsx


+ 245 - 0
GLCS-CM5-2024/docker-compose.yml

@@ -0,0 +1,245 @@
+# 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
+# Jan, 17, 2025 - Jean-Michel Batto
+
+services:
+  grafana:
+    container_name: influxdb_local
+    image: philhawthorne/docker-influxdb-grafana:latest
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalinfluxdb-foo:/var/lib/influxdb
+      - usrlocalgrafana-foo:/var/lib/grafana
+    ports: 
+      - "3003:3003"
+      - "3004:8083"
+      - "8086:8086"
+    networks:
+      - mpinet
+  mpihead:
+    image: jmbatto/m2chps-mpi41-xmp:latest
+    hostname: mpihead
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    shm_size: '512m'
+    ports: 
+      - "2022:22"
+    links: 
+      - mpinode1
+      - mpinode2
+      - mpinode3
+    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"
+      - source: "install_clang_format_go.sh"
+        target: "/home/mpiuser/.ssh-source/install_clang_format_go.sh"
+    depends_on:
+      - grafana
+  mpinode1:
+    image: jmbatto/m2chps-mpi41-xmp:latest
+    hostname: mpinode1
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    shm_size: '512m'
+    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"
+    depends_on:
+      - grafana
+  mpinode2:
+    image: jmbatto/m2chps-mpi41-xmp:latest
+    hostname: mpinode2
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    shm_size: '512m'
+    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"
+    depends_on:
+      - grafana
+  mpinode3:
+    image: jmbatto/m2chps-mpi41-xmp:latest
+    hostname: mpinode3
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    shm_size: '512m'
+    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"
+    depends_on:
+      - grafana
+  vscode:
+    image: codercom/code-server:latest
+    container_name: vscode
+    hostname: vscode
+    ports: 
+      - "8081:8080" 
+    deploy:
+     resources:
+      limits:
+       memory: 512M
+    restart: always
+    volumes:
+        - /var/run/docker.sock:/var/run/docker.sock
+        - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    environment:
+        - PASSWORD=XXXXXXXX
+        - DOCKER_USER=votrelogin
+        - CODER_ACCESS_URL="http://localhost:8081"
+    user: "1001:1001"
+    networks:
+        - mpinet
+    secrets:
+      - source: "id_rsa"
+        target: "/home/coder/.ssh-source/id_rsa"
+      - source: "id_rsa_mpi_pub"
+        target: "/home/coder/.ssh-source/id_rsa.pub"
+      - source: "authorized_keys"
+        target: "/home/coder/.ssh-source/authorized_keys"
+      - source: "certif.sh"
+        target: "/home/coder/.ssh-source/certif.sh"
+      - source: "install_clang_format_go.sh"
+        target: "/home/coder/.ssh-source/install_clang_format_go.sh"
+  mysql:
+    image: mariadb:10.10
+    hostname: mysql
+    container_name: mysql
+    environment:
+      MARIADB_ROOT_PASSWORD: password
+      MARIADB_DATABASE: slurm_acct_db
+      MARIADB_USER: slurm
+      MARIADB_PASSWORD: password
+    volumes:
+      - var_lib_mysql:/var/lib/mysql
+    ports:
+      - "3306:3306"
+    networks:
+      - mpinet
+
+  slurmdbd:
+    image: jmbatto/m2chps-slurm-cluster:latest
+    command: ["slurmdbd"]
+    container_name: slurmdbd
+    hostname: slurmdbd
+    volumes:
+      - etc_munge:/etc/munge
+#      - etc_slurm:/etc/slurm
+      - var_log_slurm:/var/log/slurm
+    expose:
+      - "6819"
+    depends_on:
+      - mysql
+    shm_size: '512m'
+    networks:
+      - mpinet
+
+  slurmctld:
+    image: jmbatto/m2chps-slurm-cluster:latest
+    command: ["slurmctld"]
+    container_name: slurmctld
+    hostname: slurmctld
+    volumes:
+      - etc_munge:/etc/munge
+#      - etc_slurm:/etc/slurm
+      - slurm_jobdir:/data
+      - var_log_slurm:/var/log/slurm
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    expose:
+      - "6817"
+    depends_on:
+      - "slurmdbd"
+    shm_size: '512m'
+    networks:
+      - mpinet
+
+  c1:
+    image: jmbatto/m2chps-slurm-cluster:latest
+    command: ["slurmd"]
+    hostname: c1
+    container_name: c1
+    volumes:
+      - etc_munge:/etc/munge
+#      - etc_slurm:/etc/slurm
+      - slurm_jobdir:/data
+      - var_log_slurm:/var/log/slurm
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    expose:
+      - "6818"
+    depends_on:
+      - "slurmctld"
+    shm_size: '512m'
+    networks:
+      - mpinet
+  c2:
+    image: jmbatto/m2chps-slurm-cluster:latest
+    command: ["slurmd"]
+    hostname: c2
+    container_name: c2
+    volumes:
+      - etc_munge:/etc/munge
+#      - etc_slurm:/etc/slurm
+      - slurm_jobdir:/data
+      - var_log_slurm:/var/log/slurm
+      - usrlocalvarmpi-foo:/usr/local/var/mpishare
+    expose:
+      - "6818"
+    depends_on:
+      - "slurmctld"
+    shm_size: '512m'
+    networks:
+      - mpinet
+
+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
+  certif.sh:
+    file: ssh/certif.sh
+  install_clang_format_go.sh:
+    file: ssh/install_clang_format_go.sh      
+networks:
+  mpinet:
+    external: true
+    name : yml_mpinet
+# bridge by default
+#    driver: overlay
+volumes:
+  etc_munge:
+#  etc_slurm:
+  slurm_jobdir:
+  var_lib_mysql:
+  var_log_slurm:
+  usrlocalvarmpi-foo:
+  usrlocalgrafana-foo:
+  usrlocalinfluxdb-foo:

+ 8 - 0
GLCS-CM5-2024/ssh/certif.sh

@@ -0,0 +1,8 @@
+#/bin/sh
+mkdir /home/coder/.ssh
+chmod 700 /home/coder/.ssh
+cp -R /home/coder/.ssh-source/* /home/coder/.ssh \
+        && chmod 700 /home/coder/.ssh/authorized_keys \
+        && chmod 700 /home/coder/.ssh/id_rsa \
+        && chown -R 1001:1001 /home/coder/.ssh
+exit 0

+ 1 - 0
GLCS-CM5-2024/ssh/config

@@ -0,0 +1 @@
+StrictHostKeyChecking no

+ 27 - 0
GLCS-CM5-2024/ssh/id_rsa.mpi

@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEogIBAAKCAQEA7PWLZmgdJ508dD15T6+xqGDvL9Ehzo9SgsnN6xJ+qpUvvOi4
+1axW0AqR4MnPTg/uuvk+x4tUpuufOW4w22UTGjsdvmIVWa9ujLtcRiN3YPY+SU+Y
+O5FfqKg7r/hBn+/GMcSoffwSs7vVgmhBBnp/m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Uhhu6JrW/ZR2/U3Iur6wKBgADrWLAb1ryagSuE+j+U1AO+kDkHWrTtkcZ72jxp
+v3p3O11GSEUJXdJDcSXhTCpTuDq6/dv7hB6PFwh126RKicKxKlKf2wsFndV1Cpb8
+hnovW2tLGOtTmfuW2rrQAKyzvmolsNfxYd/BoHQ2thV16z1hDZeFA8WQUeHjKh6G
+sBbrAoGATdtQlaUxx4izua6k02ihkxx/cRYwDl2N8UDvDBHokS7vJFMX8b8NpsGg
+zMElnqSpu/pe/0UG7N2MtPF6uyMcX8AZzzcsRkiMkDvWJzYt8Jpf+Eyd/uryF+Yv
+yrXaOEY83tm6x/fny5ZaZmk8lNth7bfWywuTMkZLX3fYpWtIeE4=
+-----END RSA PRIVATE KEY-----

+ 1 - 0
GLCS-CM5-2024/ssh/id_rsa.mpi.pub

@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDs9YtmaB0nnTx0PXlPr7GoYO8v0SHOj1KCyc3rEn6qlS+86LjVrFbQCpHgyc9OD+66+T7Hi1Sm6585bjDbZRMaOx2+YhVZr26Mu1xGI3dg9j5JT5g7kV+oqDuv+EGf78YxxKh9/BKzu9WCaEEGen+YmHY7Vw4AVkR73z/juZuDf+QcECTfo05CS1pTeXjwHfwSEFOeNZ9wQabUdxNE8XFdXlaKSjpmEoUS4dxNUqeDhE61SoSaAfIjRoHtMDGDidrR6Mi2xhYQ9YZ4M7Dqaz/gzDKXE2ixbMcU9b2njOAsIs2v5vpsMN9gqNdl+UC5NC1CEuYlTAP265gsCKOlITZ9 oweidner@peahi

+ 10 - 0
GLCS-CM5-2024/ssh/install_clang_format_go.sh

@@ -0,0 +1,10 @@
+#!/bin/sh
+## script pour installer golang et clang-format
+sudo apt update
+sudo apt-get install clang-format -y
+sudo wget https://golang.org/dl/go1.23.4.linux-amd64.tar.gz
+sudo tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz
+sudo rm ./go1.23.4.linux-amd64.tar.gz
+cd ~
+echo "export PATH=/usr/local/go/bin:${PATH}" | sudo tee -a $HOME/.profile
+exit 0

+ 26 - 0
GLCS-CM5-2024/ssh/td_telegraf.ppk

@@ -0,0 +1,26 @@
+PuTTY-User-Key-File-3: ssh-rsa
+Encryption: none
+Comment: imported-openssh-key
+Public-Lines: 6
+AAAAB3NzaC1yc2EAAAADAQABAAABAQDs9YtmaB0nnTx0PXlPr7GoYO8v0SHOj1KC
+yc3rEn6qlS+86LjVrFbQCpHgyc9OD+66+T7Hi1Sm6585bjDbZRMaOx2+YhVZr26M
+u1xGI3dg9j5JT5g7kV+oqDuv+EGf78YxxKh9/BKzu9WCaEEGen+YmHY7Vw4AVkR7
+3z/juZuDf+QcECTfo05CS1pTeXjwHfwSEFOeNZ9wQabUdxNE8XFdXlaKSjpmEoUS
+4dxNUqeDhE61SoSaAfIjRoHtMDGDidrR6Mi2xhYQ9YZ4M7Dqaz/gzDKXE2ixbMcU
+9b2njOAsIs2v5vpsMN9gqNdl+UC5NC1CEuYlTAP265gsCKOlITZ9
+Private-Lines: 14
+AAABADgcgRET8Gt0CV/BOtvKz/f+VEVvcWD3gWNlJDTZIVOFllNWjIZUlA4Zoqen
+QkbK8Q4nfV1FOht4yjCQTlN1oMtiWk297i5Zo4UBzPzy4w774I39oh/g8dT/WXr2
+/5s+7SDV38xNh6Q2A34o79T35wUcfUrZ93/O7dKjb/6d8hx2FMha0wVKqY4lmG1l
+QE3bbx3kakec0PdvU5kOYHKlpqj3pMR7CpMa+4yL/iXFwWYmnK+uu+zw7JR7PwvH
+1CzrnvW438wjQ1QmYbSxmHHOE89X67Lsl5hn81qYWBhpwAlBwi1qscsE0cV9GcFy
+KqWFqZsj5coM9u3CRfvylrWe1OUAAACBAPiwVBRHdx8bOLBYmBJSfEfUgLNbnWqj
+7wJdNYUxIoyS32JTDFbP8q4DTe49ts4w2pNn/EHcjCWV+xGXUZnWHBztHLGDsG2L
+2pc3J8JPlN5sZnQ96+MUqA0r5Ce9H6IAKlJXFSINq3unwpmVSUE7zEGE1RDPM0KJ
+iUbfy29nrEn7AAAAgQDz7O/jhpOh7y6qIOzjDyC5FbssIORPDjPghWj0lSJsho+N
+oCzltkQFdIHjcQTLBcJHvkd8wvStTU9W8qHWupy9l1XOb5cxZWvdqw+TSxqlqIdp
+NybJm8lEPHGpssWnTNE/VPpwK1c0V0dZTgqK4qtSLpwPI4pyGl+RJlrix6JP5wAA
+AIBN21CVpTHHiLO5rqTTaKGTHH9xFjAOXY3xQO8MEeiRLu8kUxfxvw2mwaDMwSWe
+pKm7+l7/RQbs3Yy08Xq7IxxfwBnPNyxGSIyQO9YnNi3wml/4TJ3+6vIX5i/Ktdo4
+Rjze2brH9+fLllpmaTyU22Htt9bLC5MyRktfd9ila0h4Tg==
+Private-MAC: e86b60ce1ed8d56f007ed0e205259fb685401ed12d74a37a6b0993a505506a8b

BIN
cours9-GLCS-JMB-20242025.pdf


BIN
support bibliographique/go_programming_avril2022.pdf


BIN
support bibliographique/productivity_google_nov2022.pdf