Public Repository

Last pushed: 3 years ago
Short Description
Official DeviceHive image. DeviceHive is an M2M communication framework for IoT infrastructure
Full Description

DeviceHive Dockerized user guide

Image overview

With the exception of devicehive app there are several auxiliary services inside docker image - zookeeper, kafka, cassandra, redis, postgresql. All of them work under the control of supervisord. Here is a summary table of internal services and network ports they use:

 22 - sshd
2181 - zookeeper
4848 - glassfish admin console
5432 - postgresql
6379 - redis
8080 - devicehive (glassfish)
9001 - supervisord web panel
9042 - cassandra CQL native transport
9092 - kafka broker
9160 - cassandra Thrift transport

There are also several variables which can help you run devicehive more effective:

 GLASSFISH_HEAP_MEM, default value is 3072m
GLASSFISH_PERM_MEM, default value is 512m
CASSANDRA_HEAP_MEM, default value is dynamic
REDIS_MEM, default value is 1024m

Default credentials

PostgreSQL: login=postgres, no password (from the inside of the container or see below)

SSH, PostgreSQL, Cassandra, DeviceHive Admin, Supervisord Web Panel: login=dhadmin, password=dhadmin_#911


Short variant:

 docker run -d -p 8080:8080 devicehive/devicehive-cassandra:2.0.0

Full varian:

 docker run -d --name=devicehive -p 8080:8080 -p 2222:22 -p 5432:5432 -p 6379:6379 -p 9042:9042 -p 2181:2181 -p 9092:9092 -p 4848:4848 -p 9001:9001 -p 9160:9160 GLASSFISH_HEAP_MEM=1024 -e GLASSFISH_PERM_MEM=386 -e CASSANDRA_HEAP_MEM=1024 -e REDIS_MEM=512 devicehive/devicehive-cassandra:2.0.0

In about 1 minute DeviceHive admin console will be available at http://localhost:8080/admin/

DeviceHive API should be configured on this page: http://localhost:8080/dh/ (use your domain name or ip instead of localhost to setup REST endpoints correctly)

Docker Pull Command