From 64457b6df16a87cf822d55c264150d7db0420c42 Mon Sep 17 00:00:00 2001 From: zzszmyf Date: Sun, 30 Jan 2022 10:07:45 +0800 Subject: [PATCH 1/3] add docker runtime for deepctr --- runtime/Dockerfile.tf_114_cpu_py3 | 4 ++++ runtime/README.md | 12 ++++++++++++ runtime/build.sh | 1 + 3 files changed, 17 insertions(+) create mode 100644 runtime/Dockerfile.tf_114_cpu_py3 create mode 100644 runtime/README.md create mode 100644 runtime/build.sh diff --git a/runtime/Dockerfile.tf_114_cpu_py3 b/runtime/Dockerfile.tf_114_cpu_py3 new file mode 100644 index 00000000..d691514a --- /dev/null +++ b/runtime/Dockerfile.tf_114_cpu_py3 @@ -0,0 +1,4 @@ +FROM tensorflow/tensorflow:1.14.0-py3 +WORKDIR /workspace/deepctr +COPY DeepCTR /workspace/deepctr +#RUN python3 setup.py diff --git a/runtime/README.md b/runtime/README.md new file mode 100644 index 00000000..d8d30e5c --- /dev/null +++ b/runtime/README.md @@ -0,0 +1,12 @@ +# deepctr docker运行容器构建说明 +为方便大家开发deepctr和使用deepctr,本人围绕构建deepctr docker运行容器开展了一些工作。 +具体的docker运行容器构建命令如下: +``` + sh build.sh tag +``` +目前支持tag如下: +- tf_114_cpu_py3(tf-1.14 cpu版本 python3) +举例: +``` + sh build.sh tf_114_cpu_py3 +``` diff --git a/runtime/build.sh b/runtime/build.sh new file mode 100644 index 00000000..49687af6 --- /dev/null +++ b/runtime/build.sh @@ -0,0 +1 @@ +sudo docker build -t deepctr:tf_114_cpu_py3 -f ./Dockerfile.tf_114_cpu_py3 ../../ From 37900a716abda672d4b45b9228a1dacba54ee5ac Mon Sep 17 00:00:00 2001 From: zzszmyf Date: Sun, 30 Jan 2022 10:14:42 +0800 Subject: [PATCH 2/3] fix Dockerfile --- runtime/Dockerfile.tf_114_cpu_py3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Dockerfile.tf_114_cpu_py3 b/runtime/Dockerfile.tf_114_cpu_py3 index d691514a..daa8458f 100644 --- a/runtime/Dockerfile.tf_114_cpu_py3 +++ b/runtime/Dockerfile.tf_114_cpu_py3 @@ -1,4 +1,4 @@ FROM tensorflow/tensorflow:1.14.0-py3 WORKDIR /workspace/deepctr COPY DeepCTR /workspace/deepctr -#RUN python3 setup.py +RUN python3 setup.py From 0a1e65c746403dd53030c8ee6e450812392940f0 Mon Sep 17 00:00:00 2001 From: zzszmyf Date: Sun, 30 Jan 2022 10:15:43 +0800 Subject: [PATCH 3/3] update build.sh --- runtime/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/build.sh b/runtime/build.sh index 49687af6..de04a226 100644 --- a/runtime/build.sh +++ b/runtime/build.sh @@ -1 +1 @@ -sudo docker build -t deepctr:tf_114_cpu_py3 -f ./Dockerfile.tf_114_cpu_py3 ../../ +sudo docker build -t deepctr:$1 -f ./Dockerfile.$1 ../../