IBM/osslm-docker-adaptor

Name: osslm-docker-adaptor

Owner: International Business Machines

Description: osslm-docker-adaptor

Created: 2017-11-08 07:39:46.0

Updated: 2018-05-07 20:46:22.0

Pushed: 2018-05-07 20:46:20.0

Homepage: null

Size: 1451

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Docker Resource Manager in a box

Overview

Docker based Resource Manager to facilitate demonstrations on a single laptop and how to wrap software resources or other management software with the resource manager lifecycle API. This reference implementation is built directly on Docker and is intended to demonstrate the Resource Manager concepts, not for any production use.

Getting Started
Install

Docker toolbox or native docker installation on Linux is supported only.

Start Docker Resource Manager

To build the base image required to deploy Resources, run the following command in the directory.

er-compose -f rm-base.yml build

To start the docker resource manager on a linux host running the docker daemon locally, run the following command in :

er-compose -f rm-local.yml up -d docker-rm

If you are running docker on a remote docker machine, e.g. Docker Toolbox on windows or Mac, you should use rm-remote.yml, i.e.

er-compose -f rm-remote.yml up -d docker-rm

Edit rm-remote.yml to reflect your environment, as below

ion: '3'
ices:
cker-rm:
build: ./docker-rm
ports:
- "8081:8081"
volumes:
- <your-home-dir>.docker/machine/machines/default:/opt/dockercerts
- ./opt/rm/config:/opt/rm/config
- ./opt/rm/logs:/opt/rm/logs
- ./opt/csars:/opt/rm/csars
environment:
- DOCKER_HOST=tcp://<address-of-remote-docker-machine>
- DOCKER_TLS_VERIFY=1
- DOCKER_CERT_PATH=/opt/dockercerts
- DOCKER_MACHINE_NAME=default

Once running, docker resource manager logs can be found at /opt/rm/logs

You can check all is well by running the following:

 -f <RM_HOME>/opt/rm/logs/info.log
Quick start to add user defined Resources

The resource manager will look for Resource directories in a pre-configured location on start up. The resource manager expects each Resource directory to contain the following:

Resource directories can be added to the resource manager as follows:

Check out the documentation in the docs directory to find out more about how to build and onboard Resources to the Docker Resource Manager.

Run Resource Manager Swagger UI

To check that all is working log onto the resource manager UI at http://localhost:8081/ui (replace localhost with your docker installation ip address, e.g. 192.168.99.100 for docker toolbox)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.