From 55f161ece441688d2cd9e6c71cbeb4b085227c3d Mon Sep 17 00:00:00 2001 From: zhialong Date: Thu, 12 Sep 2019 16:54:09 +0800 Subject: [PATCH 1/2] add the dockerfile for ppc64le --- .../v1/mnist_with_summaries/Dockerfile.ppc64le | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/v1/mnist_with_summaries/Dockerfile.ppc64le diff --git a/examples/v1/mnist_with_summaries/Dockerfile.ppc64le b/examples/v1/mnist_with_summaries/Dockerfile.ppc64le new file mode 100644 index 0000000000..bd87d9d5b9 --- /dev/null +++ b/examples/v1/mnist_with_summaries/Dockerfile.ppc64le @@ -0,0 +1,18 @@ +# Copyright 2016 The TensorFlow Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM ibmcom/tensorflow-ppc64le:1.13.1 + +ADD . /var/tf_mnist +ENTRYPOINT ["python", "/var/tf_mnist/mnist_with_summaries.py"] From a7c80c6347d1dd01abaa04088653c5f5185f967b Mon Sep 17 00:00:00 2001 From: zhialong Date: Thu, 12 Sep 2019 18:13:56 +0800 Subject: [PATCH 2/2] update the README to contain ppc64le dockerfile --- examples/v1/mnist_with_summaries/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/v1/mnist_with_summaries/README.md b/examples/v1/mnist_with_summaries/README.md index f4920ef8ed..075e87ce60 100644 --- a/examples/v1/mnist_with_summaries/README.md +++ b/examples/v1/mnist_with_summaries/README.md @@ -6,11 +6,16 @@ for integrating with other components like Katib. The source code is borrowed from TensorFlow tutorials [here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py). -To build this image: +To build this image on x86_64: ```shell docker build -f Dockerfile -t kubeflow/tf-mnist-with-summaries:1.0 ./ ``` +On ppc64le, run as: +```shell +docker build -f Dockerfile.ppc64le -t kubeflow123/tf-mnist-with-summaries:1.0 ./ +``` Usage: 1. Add the persistent volume and claim: `kubectl apply -f tfevent-volume/.` 1. Deploy the TFJob: `kubectl apply -f tf_job_mnist.yaml` + * If on ppc64le, please update tf_job_mnist.yaml to use the image of ppc64le firstly. \ No newline at end of file