DEV-98 improved build.sh for microservices

This commit is contained in:
2025-04-03 22:56:06 -04:00
parent fe1f229744
commit 25a262b01f
13 changed files with 125 additions and 143 deletions
-41
View File
@@ -1,41 +0,0 @@
#!/bin/bash
function usage {
echo "Usage: ${0} <version>"
exit
}
CvttpyVersion=${1}
if [ "${CvttpyVersion}" == "" ]
then
usage
fi
# --- Settings
ImageName=oe_gateway
RegistryService=cloud21.cvtt.vpn:5500
# --- Settings
DockerDir=$(realpath $(dirname ${0}))
Version=${CvttpyVersion}
cd ${DockerDir}
source ../mu_svc_functions.sh
get_project_version cvttpy ${Version}
function cleanup {
cd ${DockerDir}
rm -rf cvttpy
}
trap cleanup EXIT
build_docker_image ${ImageName} ${RegistryService} ${Version}
# echo "**** D E B U G E X I T" && exit
echo "***** ${0} D O N E"
+4 -5
View File
@@ -1,14 +1,13 @@
#!/bin/bash
ConfigDir=/config
Config="${ConfigDir}/cvtt_musvc.cfg"
Creds="${ConfigDir}/.creds"
LogDir=/logs
Cmd="python3.12"
Cmd+=" cvttpy/apps/microservices/market_gateways/order_entry_gateway.py"
Cmd+=" --config=${Config}"
Cmd+=" --credentials_file=${Creds}"
Cmd+=" --log_file=/logs/%T.oe_gateway.log"
Cmd+=" --config=${ConfigDir}/${OEGW_CONFIG_FILE:-cvtt_musvc.cfg}"
Cmd+=" --credentials_file=${ConfigDir}/${OEGW_CREDS_FILE:-.creds}"
Cmd+=" --log_file=${LogDir}/${OEGW_LOG_FILE:-%T.oe_gateway.log}"
Cmd+=" ${OEGW_ADD_ARGS}"
echo ${Cmd}
exec ${Cmd}
+1 -1
View File
@@ -6,6 +6,6 @@ redis>=5.0.8
python-dateutil>=2.8.2
types-python-dateutil>=2.8.19.6
cryptography>=43.0.0
jwt>=1.3.1
PyJWT>=2.10.1