Public | Automated Build

Last pushed: 2 months ago
Short Description
base image for docker clustering (OpenMPI / Ubuntu 16.04)
Full Description

docker-openmpi

base package for docker cluster with openmpi

with docker compose

  1. set up docker-compose
  2. generate ssh public key pair
     $ ./keygen.sh
    
  3. build and deploy MPI cluster
     $ docker-compose build
     $ docker-compose up -d scale node=4
    
  4. login to master node
     $ ./connect-master.sh
    
  5. run mpi program from master node
     $ ./make-hostfile.sh
     $ mpirun -np 16 hostname
     252f9f5abc18
     252f9f5abc18
     252f9f5abc18
     252f9f5abc18
     fa00f144c7be
     0ebd38ff982e
     fa00f144c7be
     0ebd38ff982e
     fa00f144c7be
     0ebd38ff982e
     fa00f144c7be
     0ebd38ff982e
     4c1364ddf9d9
     4c1364ddf9d9
     4c1364ddf9d9
     4c1364ddf9d9
    
  6. shutdown cluster
     $ docker-compose down -v
    

with swarm

with kubernetes

  1. set up kubernetes

  2. start cluster

     $ kubectl create -f mpi-deployment.yml
    
  3. login to master node
     $ kubectl exec -it mpi-master /bin/bash
    
  4. set up hostfile.txt
  5. run mpi program
     $ mpiexec -np 4 --hostfile hostfile.txt ./mpi_examples/bmt_L_2x2x1.out
    
  6. shutdown cluster
Docker Pull Command
Owner
dmiyamoto
Source Repository

Comments (0)