Docker
Supply your license to run all TimeBase versions up to version 6.0. License can be added as an environment variable TIMEBASE_SERIAL=${SERIAL_NUMBER}
.
# Example of running TimeBase Docker container with license
docker run --rm --detach\
--name docker-image-test-tb \
-p 8011:8011 \
--mount type=volume,src=my-qshome-vol,dst=/timebase-home \
registry.deltixhub.com/quantserver.docker/timebase/server:5.5.89
DELTIX_HOME
is set totimebase-server
QSHome
is set totimebase-home
- Default service port is 8011
- Volume
docker-image-test-qshome-vol
here contains usualQSHome
structure - Add your TimeBase Enterprise Edition license as environment variable
TIMEBASE_SERIAL=${SERIAL_NUMBER}
. - Java system properties could be customized by setting
JAVA_OPTS
environment variable.
# Example of enabling of monitoring with JAVA_OPTS
docker run --rm -p 8011:8011 \
-e TIMEBASE_SERIAL=*** \
-e JAVA_OPTS="-DQuantServer.enableRemoteMonitoring=true \
-DTimeBase.metrics.enable=true" \
registry.deltixhub.com/quantserver.docker/timebase/server:5.5.89
TimeBase Web Admin
In TimeBase Web Admin you can manage and monitor all data stored in TimeBase.
- Launch TimeBase Admin in a Docker container.
- Login to registry.deltixhub.com.
- Open TimeBase Admin to view sample streams.
docker run --rm --detach \
--name timebase-admin \
-p 8099:8099 \
registry.deltixhub.com/quantserver.docker/timebase/ws-server:1.1.65
info
Refer to TimeBase Web Admin to learn how to run and use this application.
Advanced Options
Attached Volume with Streams or a Custom Config
docker run --rm -d \
-p MACHINE_PORT:8011 \
--name=CONTAINER_NAME \
--ulimit nofile=65536:65536 \
-v VOLUME:/timebase-home \
registry.deltixhub.com/quantserver.docker/timebase/server:5.5.55
VOLUME
- PATH to local TimeBase home volume with populated files such as Streams, Configs, etc.MACHINE_PORT
- port on your machine that will be used for TimeBase.CONTAINER_NAME
- the name of TimeBase container that will be shown in containers listdocker ps
.
Example
docker run --rm -d \
-p 80:8011 \
--name=timebase-prod \
-ulimit nofile=65536:65536 \
-v /home/master/timebase:/timebase-home \
registry.deltixhub.com/quantserver.docker/timebase/server:5.5.55
Custom config
You can configure selected TimeBase properties in admin.properties
configuration file and place it in /home/master/timebase
folder. Mount this folder to use admin.properties
configurations:
-v /home/master/timebase:/timebase-home \
In admin.properties
you can configure host
, port
, version
, and other TimeBase parameters.
Example
# Example of admin.properties file
TimeBase.host=localhost
TimeBase.port=8011
TimeBase.version=5.0
TimeBase.enableRemoteAccess=true
Useful Scripts and Commands
- docker logs CONTAINER_NAME - will show TimeBase logs. Use flag
-f
to follow log output. - docker images - show all images that downloaded in your system. To clear old/unused images use the command docker system prune -a -f.
- docker stats - display a live stream of container(s) resource usage statistics.
- docker exec -it CONTAINER_NAME sh - logging into the container's file system using
sh
shell.
Deployment with SSL
info
Refer to Deployment with SSL for more information.