Giter Site home page Giter Site logo

docker-slurm's Introduction

Slurm Docker Image

Description

This is a slurm dockerlized image for single node or clusters.

In order to use it more easily, we uploaded the image to three independent image hosting platforms:

Features

  • The basic function is to provide Slurm service.
  • Considering the diversity of CPU arch nowadays, we provide 6 archs including amd64, arm64 and so on.
  • Other small features: the support of QSUB inteface to submit jobs.

How to use it

It's very easy to use it through docker-compose (Recommend).

# docker-compose.yml
version: '3'

services:
  worker:
    image: zhonger/slurm:latest
    container_name: worker
    stdin_open: true
    tty: true
    volumes:
      - /etc/localtime:/etc/localtime
      - ./slurm.conf:/etc/slurm/slurm.conf
      - ./hosts:/etc/hosts
      # - ./data:/home/ubuntu/data
    restart: always
    hostname: worker

If you want to deploy with cluster mode, you need to use docker-compose.yml like the following:

# docker-compose.yml
version: '3'

services:
  worker:
    image: zhonger/slurm:latest
    container_name: worker
    stdin_open: true
    tty: true
    volumes:
      - /etc/localtime:/etc/localtime
      - ./slurm.conf.cluster:/etc/slurm/slurm.conf
      - ./hosts.cluster:/etc/hosts
      # - ./data:/home/ubuntu/data
    ports:
      - 6817:6817
      - 6818:6818
    restart: always
    hostname: worker

Here, the two ports 6817 and 6818 are necessary for the communication of nodes.

docker-compose up -d

More

If you want to know more about the idea and details, you can refer to 《Docker 快速部署 Slurm 集群》. (Sorry, it's only Chinese now. In the future, we will provide English version.)

简介

这个 Ubuntu 基础镜像是为构建各种服务的 Docker 镜像而准备的。

为了便于使用,我们将镜像上传到了三个独立的镜像托管平台:

特性

  • 本镜像的基础功能是提供 Slurm 服务。
  • 考虑现今 CPU 架构的多样性,本镜像支持包括 amd64、arm64 等在内的 6 种架构。
  • 其他小特性:支持使用 QSUB 方式提交任务。

如何使用

通过 docker-compose 可以非常方便使用本镜像(推荐)。

# docker-compose.yml
version: '3'

services:
  worker:
    image: zhonger/slurm:latest
    container_name: worker
    stdin_open: true
    tty: true
    volumes:
      - /etc/localtime:/etc/localtime
      - ./slurm.conf:/etc/slurm/slurm.conf
      - ./hosts:/etc/hosts
      # - ./data:/home/ubuntu/data
    restart: always
    hostname: worker

如果你想要使用本镜像部署 Slurm 集群,docker-compose.yml 文件需要修改如下:

# docker-compose.yml
version: '3'

services:
  worker:
    image: zhonger/slurm:latest
    container_name: worker
    stdin_open: true
    tty: true
    volumes:
      - /etc/localtime:/etc/localtime
      - ./slurm.conf.cluster:/etc/slurm/slurm.conf
      - ./hosts.cluster:/etc/hosts
      # - ./data:/home/ubuntu/data
    ports:
      - 6817:6817
      - 6818:6818
    restart: always
    hostname: worker

此处的端口 68176818 对于 Slurm 集群中的节点沟通是必要的。

docker-compose up -d

了解更多

关于本镜像的更多思考和详细步骤,请访问 《Docker 快速部署 Slurm 集群》 了解更多。

docker-slurm's People

Contributors

zhonger avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.