-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Updated Docker
1 parent
20d35a8
commit 0e9cec7
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |