Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Docker
Browse files Browse the repository at this point in the history
yanzhen1233 committed Jan 16, 2025

Verified

This commit was signed with the committer’s verified signature.
DmitriyMV Dmitriy Matrenichev
1 parent 20d35a8 commit 0e9cec7
Showing 3 changed files with 63 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/build_docker_tf112.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

bash scripts/gen_proto.sh
if [ $? -ne 0 ]
then
echo "gen proto failed"
exit 1
fi

version=`grep "__version__" easy_rec/version.py | awk '{ if($1 == "__version__") print $NF}'`
# strip "'"
version=${version//\'/}
echo "EasyRec Version: $version"

if [ -z "$version" ]
then
echo "Failed to get EasyRec version"
exit 1
fi

sudo docker build --network=host . -f docker/Dockerfile_tf112 -t mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/easyrec:py27-tf1.12-${version}
21 changes: 21 additions & 0 deletions scripts/build_docker_tf115.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

bash scripts/gen_proto.sh
if [ $? -ne 0 ]
then
echo "gen proto failed"
exit 1
fi

version=`grep "__version__" easy_rec/version.py | awk '{ if($1 == "__version__") print $NF}'`
# strip "'"
version=${version//\'/}
echo "EasyRec Version: $version"

if [ -z "$version" ]
then
echo "Failed to get EasyRec version"
exit 1
fi

sudo docker build --network=host . -f docker/Dockerfile_tf115 -t mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/easyrec:py36-tf1.15-${version}
21 changes: 21 additions & 0 deletions scripts/build_docker_tf212.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

bash scripts/gen_proto.sh
if [ $? -ne 0 ]
then
echo "gen proto failed"
exit 1
fi

version=`grep "__version__" easy_rec/version.py | awk '{ if($1 == "__version__") print $NF}'`
# strip "'"
version=${version//\'/}
echo "EasyRec Version: $version"

if [ -z "$version" ]
then
echo "Failed to get EasyRec version"
exit 1
fi

sudo docker build --network=host . -f docker/Dockerfile_tf212 -t mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/easyrec:py38-tf2.12-${version}

0 comments on commit 0e9cec7

Please sign in to comment.