See https://github.com/mclarkson/obdi-docker
Run obdi in a docker container.
Two containers are created here, mclarkson/obdi-master and mclarkson/obdi-worker.
Start the obdi-master container:
docker run -d -p 4443:443 --name obdi-master mclarkson/obdi-master
With the above setup:
To start an obdi-worker container:
docker run -d --name obdi-worker-1 mclarkson/obdi-worker
In this section instructions are provided to set up a fully working Obdi installation with 5 plugins.
Requirements
Docker and a Unix-like system such as: Linux, Mac, or Windows with Git-for-Windows.
The setup
Users: admin, nomen.nescio, sduser, and worker.
Data Centres: main
Environments: testenv
Plugins: helloworld, helloworld-localdb, helloworld-minimal, helloworld-runscript, and systemjobs.
How to do it
Run the following commands:
docker run -d -p 4443:443 --name obdi-master mclarkson/obdi-master
masterip=$(docker inspect obdi-master | \
sed -n '/"Networks":/,/}/{s/.*IPAddress[^0-9]*\([0-9.]*\).*/\1/p}' )
wget https://raw.githubusercontent.com/mclarkson/obdi-docker/master/examples/setupobdi.sh
wget https://raw.githubusercontent.com/mclarkson/obdi-docker/master/examples/setupdefworker.sh
bash setupobdi.sh $masterip
docker run -d --name obdi-worker-1 --env-file envfile mclarkson/obdi-worker
workerip=$(docker inspect obdi-worker-1 | \
sed -n '/"Networks":/,/}/{s/.*IPAddress[^0-9]*\([0-9.]*\).*/\1/p}')
bash setupdefworker.sh $masterip $workerip
With the above setup:
To build, recompiling obdi from github mclarkson/obdi and remaking obdi-master and obdi-worker images, use:
bash build.sh
Or, to rebuild completely from scratch (ignoring docker caches):
bash build.sh --no-cache
Content type
Image
Digest
Size
435 MB
Last updated
almost 8 years ago
docker pull mclarkson/obdi-master