Giter Club home page Giter Club logo

docker's Introduction

Dockerized MDSplus

https://hub.docker.com/r/mdsplus/mdsplus

How to use these images

These images are provided as a means to use the MDSplus data management software in several different ways. The base mdsplus image is to be used for tools or as a base for images built on it. The tree-server image is to be used for creating multi-client mdsip servers, mostly used for serving tree files. The mdsip server is to be used for single-client mdsip servers, used for running tasks that should not be done in parallel.

The mdsplus image

This image contains an install of MDSplus and an entrypoint script that sources the MDSplus setup.sh and then runs whatever command is given. To use it, either run it directly with the command you want, or mount in the X environment to run graphical applications.

docker run -d --name scope --rm -it --env=DISPLAY --env=QT_X11_NO_MITSHM=1 \
    --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw mdsplus/mdsplus:latest dwscope

The tree-server image

This image extends the base mdsplus image, with the addition of a simple inetd configuration for serving multiple connections. To use it, map port 8000 to your host and run the normal MDSplus applications against it, or built it as part of a compose and have the other applications reference it. Trees should be mounted into /trees/, and the default_tree_path is configured to /trees/~t/ by default. Note As this server reads/writes files likely mounted to the host computer, you must specify a UID and GID for the server to map incoming users to.

version: "3.3"
services:
  tree_server:
    image: "mdsplus/mdsplus:tree-server"
    environment:
      - "UID=${UID}"
      - "GID=${GID}"
    volumes:
      - ./trees:/trees
    ports:
      - "8000:8000"

The mdsip image

This image extends the base mdsplus image, with the addition of an entrypoint script that will run an mdsip server on the port specified by MDSIP_PORT. This should be used in creating servers to handle explicit tasks, such as dispatch, daq, or analysis servers. Note As this server maps incoming users to internal users, you must specify a UID/GID for the server to map them to.

version: "3.3"
services:
  dispatch_server:
    image: "mdsplus/mdsplus:mdsip-server"
    environment:
      - "default_tree_path=tree_server::"
    environment:
      - "MDSIP_PORT=8101"
      - "UID=${UID}"
      - "GID=${GID}"
    ports:
      - "8101:8101"

Building

export RELEASE="<MDSplus version>"
export BRANCH="<alpha|stable>"
make
# or
make mdsplus
# or
make tree-server
# or
make mdsip-server

Publishing

make push

docker's People

Contributors

tfredian avatar zack-vii avatar joshstillerman avatar whobrokethebuild avatar andrearigoni avatar santorofer 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.