Skip to content

Commit

Permalink
Add instructions to run the build and push commands for Habana 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellutz committed Sep 2, 2024
1 parent 99eeab1 commit b5a1cc0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions habana/1.17.1/ubi9-python-3.11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,29 @@ Currently supporting the support matrix: https://docs.habana.ai/en/latest/Suppor
| numpy | 2.1.0 |
| scipy | 1.14.1 |

### Build and execution commands

To build the Habana 1.17.1, you can point to your own Quay.io registry, as follows:

> Remember, the `PUSH_IMAGES=no` flag will skip uploading images to Quay.io and the `CONTAINER_BUILD_CACHE_ARGS=""` flag will force to use local cache for development purposes
```bash
$ export QUAY_IO=quay.io/{myuser}/workbench-images
$ export WORKBENCH_RELEASE=2024a
$ make habana-jupyter-1.17.1-ubi9-python-3.11 \
-e IMAGE_REGISTRY=$QUAY_IO \
-e RELEASE=$WORKBENCH_RELEASE \
-e PUSH_IMAGES=no \
-e CONTAINER_BUILD_CACHE_ARGS=""
```

To run the container, you can get the latest tag in Podman and run it automatically:

```bash
$ export LATEST_TAG=`podman images --format "{{.Repository}}:{{.Tag}}" | grep "$QUAY_IO:habana-jupyter-1.17.1-ubi9-python-3.11-$WORKBENCH_RELEASE" | sort -r | head -n1 | cut -d':' -f2`
$ podman run -it -p 8888:8888 $QUAY_IO:$LATEST_TAG
```

### References

Repository branch:
Expand Down

0 comments on commit b5a1cc0

Please sign in to comment.