DEV-98 improved build.sh for microservices
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "Usage: ${0} <cvttpy_version>"
|
||||
exit
|
||||
}
|
||||
|
||||
CvttpyVersion=${1}
|
||||
|
||||
if [ "${CvttpyVersion}" == "" ]
|
||||
then
|
||||
usage
|
||||
fi
|
||||
|
||||
# --- Settings
|
||||
ImageName=ac_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"
|
||||
|
||||
|
||||
@@ -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/accounting_gateway.py"
|
||||
Cmd+=" --config=${Config}"
|
||||
Cmd+=" --credentials_file=${Creds}"
|
||||
Cmd+=" --log_file=/logs/%T.ac_gateway.log"
|
||||
Cmd+=" --config=${ConfigDir}/${ACGW_CONFIG_FILE:-cvtt_musvc.cfg}"
|
||||
Cmd+=" --credentials_file=${ConfigDir}/${ACGW_CREDS_FILE:-.creds}"
|
||||
Cmd+=" --log_file=${LogDir}/${ACGW_LOG_FILE:-%T.ac_gateway.log}"
|
||||
Cmd+=" ${ACGW_ADD_ARGS}"
|
||||
echo ${Cmd}
|
||||
exec ${Cmd}
|
||||
|
||||
@@ -6,5 +6,4 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user