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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Docker toolbox or native docker installation on Linux is supported only.
To build the base image required to deploy Resources, run the following command in the
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
You can check all is well by running the following:
-f <RM_HOME>/opt/rm/logs/info.log
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:
/opt
and any CSAR specific steps to copy/install software to support the lifecycle transitions and operations.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.
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)