This project was relevant early on in the progression of opentsdb and bosun development but it is now arguable that this docker container could be done in many better ways. I'm archiving for posterity's sake but no new attention will be delivered to this repository. Thanks everyone for your issues, PRs, and encouragement!
Files required to make a trusted opentsdb Docker such that opentsdb can be used for other projects (e.g. scollector, bosun)
This image automatically starts HBase, waits a configurable number of seconds, then
attempts to create the opentsdb tables in hbase and then fires up opentsdb.
Make sure that you export port 4242 so that you can access opentsdb outside of the container.
docker run -dp 4242:4242 petergrace/opentsdb-docker
Use the supplied docker-compose.yml file to start the container. Data will be persisted in ./data
docker-compose up -d
NOTE: When stopping the container, please use the -t option to give more time for hbase to shutdown, otherwise data corruption may result. At least 30 seconds is suggested.
Example: docker-compose stop -t 30
You can volume-mount it into the docker container at /etc/opentsdb/opentsdb.conf. If entrypoint.sh already sees a file there it will not copy over the default.
Similarly to the opentsdb.conf file, volume-mount your version at /opt/hbase/conf/hbase-site.xml.
Volume-mount the plugins into /opentsdb-plugins (most people wont be using these)