docker pull rencinrig/comet-spring:latest
Dockerfile is in the same directory as pom.xml:
comet-accumulo/
Dockerfile
pom.xml
Follwing command will build the docker image:
cd comet-accumulo/
mvn clean package dockerfile:build
Run together with zookeeper and RENCI accumulo docker images to form the cluster
The docker-compose.yml and the site-files to start the Accumulo cluster instances are under folder docker-compose.
Start Comet after Zookeepers and Accumulo are ready:
cd docker-compose/
docker-compose run start-zoo
docker-compose run start-accumulo
docker-compose up comet
Stop and Romove the containers
docker-compose stop
codker-compose rm -f
docker run -it --rm \
--name comet \
-p 8111:8111 \
-v $(pwd)/log:/var/log \
--env-file <env file> \
rencinrig/comet-spring
or in detached mode:
docker run -it -d \
--name comet \
-p 8111:8111 \
-v $(pwd)/log:/var/log \
--env-file <env file> \
rencinrig/comet-spring
Some properties of COMET can be configured through following environment variables.
Turn on/off token strength checking. Default is false
.
Turn on/off client certificate checking. Default is true
.
Accumulo Server name. Default is aws-development
.
Change this to your Accumulo's instance name such as docker-developement
.
Zookeeper server names. Default is zoo1,zoo2,zoo3
.
Accumulo user name. Default is root
.
Accumulo password. Default is secret
.
Accumulo table name. Default is trace
.
In milliseconds.
Default is 1000
(1s).
For some accumulo operations such as read and enumerate, COMET will retry for this duration of time.
In milliseconds.
Records are expected to access (i.e. Read/Enumerate/Write) at least once in this period of time in order to keep records alive.
Otherwise records might be deleted by Accumulo ageoff feature.
Default value is 0, which means Comet won't do anything to guarantee TTL.
If Accumulo has AgeOffFilter set up already, records might be lost.
COMET_CHECK_TOKEN_STRENGTH=false
COMET_CHECK_CLIENT_CERT=false
ACCUMULO_INSTANCE=docker-development
ACCUMULO_ZOOSERVERS=zoo1,zoo2,zoo3
ACCUMULO_USER=user
ACCUMULO_PASSWORD=password
ACCUMULO_TABLENAME=trace
Log file is stored in /var/log/comet.log on the container To see the log, mount your desired log folder to /var/log on the container.