Skip to content

Commit

Permalink
add ppc64le support for the example dist-mnist
Browse files Browse the repository at this point in the history
  • Loading branch information
alongzhi committed Sep 12, 2019
1 parent 9f6f422 commit 635728f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/v1/dist-mnist/Dockerfile.ppc64le
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 The Kubeflow 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_dist_mnist
ENTRYPOINT ["python", "/var/tf_dist_mnist/dist_mnist.py"]
6 changes: 6 additions & 0 deletions examples/v1/dist-mnist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ This folder containers Dockerfile and distributed mnist model for e2e test.

The default image name and tag is `kubeflow/tf-dist-mnist-test:1.0`.

To build this image on x86_64:
```shell
docker build -f Dockerfile -t kubeflow/tf-dist-mnist-test:1.0 ./
```
To build this image on ppc64le:
```shell
docker build -f Dockerfile.ppc64le -t kubeflow123/tf-dist-mnist-test:1.0 ./
```

**Create TFJob YAML**

```
kubectl create -f ./tf_job_mnist.yaml
```
* If on ppc64le, please update tf_job_mnist.yaml to use the image of ppc64le firstly.

0 comments on commit 635728f

Please sign in to comment.