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"] 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