docker file 1

This commit is contained in:
wangchuxiao
2023-06-16 11:22:47 +08:00
parent 1614ca1def
commit 1c1e05a8eb
3 changed files with 66 additions and 6 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
version=errcode
repository=${1}
set +e
echo "repository: ${repository}"
source ./path_info.cfg
echo "start to build docker images"
currentPwd=${pwd}
i=0
for path in ${service_source_root[*]}
do
image="${repository}/${image_names[${i}]}:$version"
echo ${image}
docker build -t $image . -f ${path}/deploy.Dockerfile
echo "build ${image} success"
docker push ${image}
echo "push ${image} success"
echo "=============================="
i=$((i + 1))
done
echo "build all images success"