moved some to cvtt_docker
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
CONFIG_SERVICE=cloud16.cvtt.vpn:6789
|
||||
CONFIG_COMM_SETTINGS=comm/pubsub/redis/docker_microservices
|
||||
CONFIG_FILE="http://${CONFIG_SERVICE}/apps/cvtt_musvc"
|
||||
|
||||
CVTT_USER=1001:1001
|
||||
CVTT_VERSION=0.0.6
|
||||
|
||||
# MDGW_CREDS_FILE=.creds
|
||||
MDGW_LOG_FILE=%T.md_gateway.log
|
||||
MDGW_ADD_ARGS=
|
||||
|
||||
# OEGW_CREDS_FILE=.creds
|
||||
OEGW_LOG_FILE=%T.oe_gateway.log
|
||||
#OEGW_ADD_ARGS="--log_level=DEBUG --debug_mode"
|
||||
OEGW_ADD_ARGS="--debug_mode"
|
||||
|
||||
# ACGW_CREDS_FILE=.creds
|
||||
ACGW_LOG_FILE=%T.ac_gateway.log
|
||||
ACGW_ADD_ARGS=
|
||||
|
||||
PXER_LOG_FILE=%T.pricer.log
|
||||
PXER_ADD_ARGS=
|
||||
|
||||
COORD_LOG_FILE=%T.coordinator.log
|
||||
COORD_ADD_ARGS=
|
||||
|
||||
BKPR_CREDS_FILE=
|
||||
BKPR_LOG_FILE=%T.bookkeeper.log
|
||||
BKPR_ADD_ARGS=
|
||||
|
||||
RMGR_LOG_FILE=%T.riskmrg.log
|
||||
RMGR_ADD_ARGS=
|
||||
|
||||
QUANT_LOG_FILE=%T.quant.log
|
||||
QUANT_ADD_ARGS=
|
||||
|
||||
TRDR_LOG_FILE=%T.trader.log
|
||||
TRDR_ADD_ARGS=
|
||||
@@ -0,0 +1 @@
|
||||
0.0.7
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/market_gateways/accounting_gateway.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
Cmd+=" --credentials_file=${ACGW_CREDS_FILE:-/config/.creds}"
|
||||
|
||||
Cmd+=" --log_file=${LogDir}/${ACGW_LOG_FILE:-%T.ac_gateway.log}"
|
||||
Cmd+=" ${ACGW_ADD_ARGS}"
|
||||
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,25 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
# libpq needed for Timescale
|
||||
RUN apt-get update && apt-get install -y \
|
||||
apt-utils \
|
||||
libpq-dev \
|
||||
build-essential
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/book_keeper/book_keeper.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE}"
|
||||
Cmd+=" --log_file=${LogDir}/${BKPR_LOG_FILE}"
|
||||
Cmd+=" --credentials_file=${BKPR_CREDS_FILE:-/config/.creds}"
|
||||
|
||||
|
||||
Cmd+=" ${BKPR_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
psycopg>=3.2.1
|
||||
pandas>=1.5.3
|
||||
Executable
+112
@@ -0,0 +1,112 @@
|
||||
#!/bin/bash
|
||||
|
||||
# --- Settings
|
||||
RegistryService=cloud21.cvtt.vpn:5500
|
||||
|
||||
ValidImages=()
|
||||
ValidImages+=(md_gateway)
|
||||
ValidImages+=(oe_gateway)
|
||||
ValidImages+=(ac_gateway)
|
||||
ValidImages+=(pricer)
|
||||
ValidImages+=(coordinator)
|
||||
ValidImages+=(bookkeeper)
|
||||
ValidImages+=(risk_manager)
|
||||
ValidImages+=(quant)
|
||||
ValidImages+=(trader)
|
||||
|
||||
ScriptPath=$(realpath $(dirname ${0}))
|
||||
BashFunctionCode=${ScriptPath}/../dckr_bld_functions.sh
|
||||
ImageVersion=$(cat ${ScriptPath}/VERSION)
|
||||
|
||||
# --- Settings
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 -I <image_name> -L <library>:<library_version> [-V <image_version>] "
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
# ---------------- cmdline
|
||||
while getopts "I:V:L:" opt; do
|
||||
case ${opt} in
|
||||
I )
|
||||
ImageName=$OPTARG
|
||||
;;
|
||||
V )
|
||||
ImageVersion=$OPTARG
|
||||
;;
|
||||
L )
|
||||
Library=$OPTARG
|
||||
;;
|
||||
\? )
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
usage
|
||||
;;
|
||||
: )
|
||||
echo "Option -$OPTARG requires an argument." >&2
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# ---------------- cmdline
|
||||
|
||||
if [ "${ImageName}" == "" ]
|
||||
then
|
||||
usage
|
||||
fi
|
||||
|
||||
if [ "${ImageVersion}" == "" ]
|
||||
then
|
||||
usage
|
||||
fi
|
||||
|
||||
Project=
|
||||
ProjectVersion=
|
||||
if [ "${Library}" != "" ] ; then
|
||||
IFS=':' read -ra parts <<< "${Library}"
|
||||
Project=${parts[0]}
|
||||
ProjectVersion=${parts[1]}
|
||||
fi
|
||||
# exit
|
||||
|
||||
build_musvc_image() {
|
||||
ImageName=${1}
|
||||
Project=${2}
|
||||
ProjectVersion=${3}
|
||||
|
||||
DockerDir=${ScriptPath}/${ImageName}
|
||||
Cmd="cd ${DockerDir}"
|
||||
echo ${Cmd} && eval ${Cmd}
|
||||
|
||||
if [ "${Project}" != "" ]; then
|
||||
get_project_version ${Project} ${ProjectVersion}
|
||||
fi
|
||||
|
||||
function cleanup {
|
||||
cd ${DockerDir}
|
||||
rm -rf cvttpy
|
||||
}
|
||||
trap cleanup RETURN
|
||||
|
||||
build_docker_image ${ImageName} ${RegistryService} ${ImageVersion} ${Project} ${ProjectVersion}
|
||||
}
|
||||
|
||||
|
||||
source ${BashFunctionCode}
|
||||
if [ "${ImageName}" == "__ALL__" ]; then
|
||||
Images=(${ValidImages[@]})
|
||||
else
|
||||
if [[ " ${ValidImages[*]} " == *" ${ImageName}"* ]]; then
|
||||
Images=(${ImageName})
|
||||
else
|
||||
echo "ERROR: invalid image name \"${ImageName}\""
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
for ImageName in "${Images[@]}"; do
|
||||
build_musvc_image ${ImageName} ${Project} ${ProjectVersion}
|
||||
done
|
||||
|
||||
echo "***** ${0} D O N E"
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
|
||||
if [ "${COORD_DEBUG}" == "Y" ]; then
|
||||
Cmd+=" -m debugpy"
|
||||
Cmd+=" --listen 0.0.0.0:5678"
|
||||
if [ "${COORD_DEBUG_WAIT}" == "Y" ]; then
|
||||
Cmd+=" --wait-for-client"
|
||||
fi
|
||||
fi
|
||||
|
||||
Cmd+=" cvttpy/apps/microservices/coordinator/coordinator.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
|
||||
Cmd+=" --log_file=${LogDir}/${COORD_LOG_FILE:-%T.coordinator.log}"
|
||||
Cmd+=" ${COORD_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
debugpy>=1.8.13
|
||||
@@ -0,0 +1,183 @@
|
||||
# CVTT Microservices
|
||||
services:
|
||||
trader:
|
||||
image: cloud21.cvtt.vpn:5500/trader:${CVTT_VERSION}
|
||||
container_name: cvtt-trader
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
TRDR_LOG_FILE: ${TRDR_LOG_FILE:-%T.trader.log}
|
||||
TRDR_ADD_ARGS: ${TRDR_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- md_gateway
|
||||
- oe_gateway
|
||||
- quant
|
||||
- bookkeeper
|
||||
- risk_manager
|
||||
- redis
|
||||
|
||||
quant:
|
||||
image: cloud21.cvtt.vpn:5500/quant:${CVTT_VERSION}
|
||||
container_name: cvtt-quant
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
QUANT_LOG_FILE: ${QUANT_LOG_FILE:-%T.quant.log}
|
||||
QUANT_ADD_ARGS: ${QUANT_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- md_gateway
|
||||
- bookkeeper
|
||||
- redis
|
||||
|
||||
coordinator:
|
||||
image: cloud21.cvtt.vpn:5500/coordinator:${CVTT_VERSION}
|
||||
container_name: cvtt-coordinator
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-cvtt_musvc.cfg}
|
||||
COORD_LOG_FILE: ${COORD_LOG_FILE:-%T.coordinator.log}
|
||||
COORD_ADD_ARGS: ${COORD_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- pricer
|
||||
# - quant
|
||||
# - trader
|
||||
- risk_manager
|
||||
- redis
|
||||
|
||||
pricer:
|
||||
image: cloud21.cvtt.vpn:5500/pricer:${CVTT_VERSION}
|
||||
container_name: cvtt-pricer
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
PXER_LOG_FILE: ${PXER_LOG_FILE:-%T.pricer.log}
|
||||
PXER_ADD_ARGS: ${PXER_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- md_gateway
|
||||
- redis
|
||||
|
||||
risk_manager:
|
||||
image: cloud21.cvtt.vpn:5500/risk_manager:${CVTT_VERSION}
|
||||
container_name: cvtt-risk_manager
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
RMGR_LOG_FILE: ${RMGR_LOG_FILE:-%T.riskmrg.log}
|
||||
RMGR_ADD_ARGS: ${RMGR_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- md_gateway
|
||||
- ac_gateway
|
||||
- bookkeeper
|
||||
- redis
|
||||
|
||||
|
||||
bookkeeper:
|
||||
image: cloud21.cvtt.vpn:5500/bookkeeper:${CVTT_VERSION}
|
||||
container_name: cvtt-bookkeeper
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
BKPR_LOG_FILE: ${BKPR_LOG_FILE:-%T.bookkeeper.log}
|
||||
BKPR_ADD_ARGS: ${BKPR_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- ac_gateway
|
||||
#- trader
|
||||
- redis
|
||||
|
||||
md_gateway:
|
||||
image: cloud21.cvtt.vpn:5500/md_gateway:${CVTT_VERSION}
|
||||
container_name: md_gateway
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
MDGW_CREDS_FILE: ${MDGW_CREDS_FILE:-/config/.creds}
|
||||
MDGW_LOG_FILE: ${MDGW_LOG_FILE:-%T.md_gateway.log}
|
||||
MDGW_ADD_ARGS: ${MDGW_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
oe_gateway:
|
||||
image: cloud21.cvtt.vpn:5500/oe_gateway:${CVTT_VERSION}
|
||||
container_name: oe_gateway
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
OEGW_CREDS_FILE: ${OEGW_CREDS_FILE:-/config/.creds}
|
||||
OEGW_LOG_FILE: ${OEGW_LOG_FILE:-%T.oe_gateway.log}
|
||||
OEGW_ADD_ARGS: ${OEGW_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
ac_gateway:
|
||||
image: cloud21.cvtt.vpn:5500/ac_gateway:${CVTT_VERSION}
|
||||
container_name: ac_gateway
|
||||
pull_policy: always
|
||||
user: ${CVTT_USER:-1001:1001}
|
||||
environment:
|
||||
CONFIG_SERVICE: ${CONFIG_SERVICE:-cloud16.cvtt.vpn:6789}
|
||||
CONFIG_COMM_SETTINGS: ${CONFIG_COMM_SETTINGS:-comm/pubsub/redis/docker_microservices}
|
||||
CONFIG_FILE: ${CONFIG_FILE:-http://${CONFIG_SERVICE}/apps/cvtt_musvc}
|
||||
ACGW_CREDS_FILE: ${ACGW_CREDS_FILE:-/config/.creds}
|
||||
ACGW_LOG_FILE: ${ACGW_LOG_FILE:-%T.ac_gateway.log}
|
||||
ACGW_ADD_ARGS: ${ACGW_ADD_ARGS:-}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./logs:/logs
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
container_name: redis-cvtt
|
||||
ports:
|
||||
- "16379:6379"
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/market_gateways/md_gateway.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
Cmd+=" --credentials_file=${MDGW_CREDS_FILE:-/config/.creds}"
|
||||
|
||||
Cmd+=" --log_file=${LogDir}/${MDGW_LOG_FILE:-%T.md_gateway.log}"
|
||||
Cmd+=" ${MDGW_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/market_gateways/order_entry_gateway.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
Cmd+=" --credentials_file=${OEGW_CREDS_FILE:-/config/.creds}"
|
||||
|
||||
Cmd+=" --log_file=${LogDir}/${OEGW_LOG_FILE:-%T.oe_gateway.log}"
|
||||
Cmd+=" ${OEGW_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/pricer/pricer.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
Cmd+=" --log_file=${LogDir}/${PXER_LOG_FILE:-%T.pricer.log}"
|
||||
|
||||
Cmd+=" ${PXER_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/quant/quant.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
Cmd+=" --log_file=${LogDir}/${QUANT_LOG_FILE}"
|
||||
|
||||
Cmd+=" ${QUANT_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/risk_manager/risk_manager.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE}"
|
||||
Cmd+=" --log_file=${LogDir}/${RMGR_LOG_FILE}"
|
||||
|
||||
Cmd+=" ${RMGR_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
**/__pycache__
|
||||
.pipenv
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip --root-user-action=ignore
|
||||
RUN pip install -r /requirements.txt --root-user-action=ignore
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
|
||||
RUN mkdir -p /logs /config
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
LogDir=/logs
|
||||
|
||||
Cmd="python3.12"
|
||||
Cmd+=" cvttpy/apps/microservices/trader/trader.py"
|
||||
|
||||
Cmd+=" --config=${CONFIG_FILE:-/config/cvtt_musvc.cfg}"
|
||||
Cmd+=" --log_file=${LogDir}/${TRDR_LOG_FILE}"
|
||||
|
||||
Cmd+=" ${TRDR_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
sortedcontainers>=2.4.0
|
||||
redis>=5.0.8
|
||||
python-dateutil>=2.8.2
|
||||
types-python-dateutil>=2.8.19.6
|
||||
cryptography>=43.0.0
|
||||
PyJWT>=2.10.1
|
||||
Reference in New Issue
Block a user