To mount a custom entrypoint script, put it in the config profile dir
and define the following env vars:
SPARKD__IMAGE=sparkd_symbols
SPARKD__MAIN_ENTRYPOINT=/home/bts/.local/share/bts/sparkd/conf/<custom-entrypoint>
To invoke the "normal" sparkd entrypoint script from the mounted one:
./sparkd-entrypoint.sh
65 lines
2.7 KiB
Bash
65 lines
2.7 KiB
Bash
# This file defines the global default configuration for docker deployments.
|
|
# It is tracked in source control. For temporary modifications, please create
|
|
# a separate file called ".env.local" (it's in .gitignore, so won't be tracked).
|
|
# If a variable is defined in both files, the value in .env.local will be used.
|
|
#
|
|
# About the deployment procedure:
|
|
# We use Docker Compose to build images and launch containers for various services
|
|
# that make up our software suite:
|
|
# - sparkd
|
|
# - TODO: pubsub
|
|
# - TODO: md-publisher
|
|
# - TODO: webapp (DSQA on the web)
|
|
# - TODO: api-server (websocket based)
|
|
# From inside a devcontainer, you can launch all services in separate containers
|
|
# on your machine by running:
|
|
#
|
|
# tools/deploy.sh
|
|
#
|
|
# This script builds release versions for each service, packaged (generally) in
|
|
# self-contained directories. Next, it runs a few "docker compose" commands to
|
|
# build docker images loaded with the self-contained binaries from the previous
|
|
# step, and start containers with those images to run each service. To view the
|
|
# commands that deploy.sh runs internally (without actually running them), run:
|
|
#
|
|
# tools/deploy.sh --dry-run
|
|
#
|
|
# For additional information/help, run:
|
|
#
|
|
# tools/deploy.sh --help
|
|
#
|
|
|
|
### Host/Runtime ###
|
|
TZ=Etc/UTC
|
|
|
|
### Sparkd ###
|
|
# The internal image for sparkd to use. For more info, view:
|
|
# src/server/sparkd/Dockerfile
|
|
SPARKD__IMAGE=sparkd
|
|
# The config dir for this service to use
|
|
SPARKD__CONFIG_DIR=src/app_sparkd/configurations/dev
|
|
# Mount a specific volume or dir to "~/sparkdata/data" inside the docker.
|
|
# Defaults to a volume named "sparkd_<config_port>" (e.g., sparkd_8000).
|
|
# SPARKD__DATA_DIR=/home/bts/sparkdata/data
|
|
# Mount volume or dir to "/md_recording" inside the docker. Defaults to volume
|
|
# "sparkd_md_recording_<config_port>" (e.g., sparkd_md_recording_8000).
|
|
# SPARKD__MD_RECORDING_DIR=/home/bts/md_recording
|
|
SPARKD__SOURCE_DIR=install/sparkd-release-gcc
|
|
SPARKD__RUNTIME_CONF_DIR=/home/ubuntu/8000/sparkdata/conf/
|
|
SPARKD__CONFIG_PORT=8000
|
|
SPARKD__QUICKBUS_PORT=8001
|
|
SPARKD__SIM_FIX_PORT=8002
|
|
SPARKD__SHM_SIZE=4gb
|
|
SPARKD__PYTHON_REQUIREMENTS=requirements.txt
|
|
SPARKD__SPARKD_ENTRYPOINT=src/app_sparkd/sparkd-entrypoint.sh
|
|
SPARKD__MAIN_ENTRYPOINT=./sparkd-entrypoint.sh
|
|
|
|
### PubSubServer ###
|
|
PUBSUB__CONFIG_DIR=src/DataStreamSuite/PubSubServer/Configurations/Development
|
|
PUBSUB__SOURCE_DIR=build/Release/bin/net8.0/linux-x64/publish
|
|
|
|
### MdPublisher ###
|
|
MD_PUBLISHER__CONFIG_DIR=src/DataStreamSuite/DataStreamPublisher/Configurations/ReplayMarketData
|
|
MD_PUBLISHER__SOURCE_DIR=build/Release/bin/net8.0/linux-x64/publish
|
|
# TODO: add config for other services (pubsub, md-publisher, webapp, api-server, etc.)
|