versioning is added

This commit is contained in:
Oleg Sheynin 2024-11-01 16:18:32 -04:00
parent d5017b1b14
commit ae2b5069d7
2 changed files with 7 additions and 4 deletions

View File

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
function usage { function usage {
echo "Usage: ${0} <app_path (e.g. market_data/md_recorder_monitor)> <version>" echo "Usage: ${0} <app_path (e.g. market_data/md_recorder_monitor)> <project>"
exit exit
} }
AppPath=${1} AppPath=${1}
CvttpyVersion=${2} Project=${2}
if [ "${AppPath}" == "" ] if [ "${Project}" == "" ]
then then
usage usage
fi fi
@ -24,7 +24,9 @@ ImageName=${AppName}
ImageDir=${HOME}/docker_images ImageDir=${HOME}/docker_images
mkdir -p ${ImageDir} mkdir -p ${ImageDir}
Version=$(cat ${RootDir}/cvttpy/release_version.txt | awk -F, '{print $1}')
Version=$(cat ${RootDir}/${Project}/release_version.txt | awk -F, '{print $1}')
# Version=${ProjectVersion}
cd ${RootDir} cd ${RootDir}

1
release_version.txt Normal file
View File

@ -0,0 +1 @@
0.1.3,testing building docker images