Skip to content

Commit

Permalink
Build multi-architecture Docker images to support Apple Silicon and I…
Browse files Browse the repository at this point in the history
…ntel machines
  • Loading branch information
bonicim committed Jun 11, 2024
1 parent 722489f commit 885c68f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jobs:
id: push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
tags: hypernetx/hypernetx:latest
push: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ you change a document file, it will automatically render on your browser, allowi
If you want to test the Docker image after making any source code changes, follow this workflow:

1. Make a change in the HNX codebase
2. Build image: `docker build --rm --tag hypernetx/hypernetx:latest`
2. Build image for multi-platforms (i.e.ARM64, x86): `docker build --platform linux/amd64,linux/arm64 --rm --tag hypernetx/hypernetx:latest .`
3. If you're having issues building, see https://docs.docker.com/desktop/containerd/
3. Test image: `docker run -it --rm -p 8888:8888 -v "${PWD}":/home/jovyan/work hypernetx/hypernetx:latest`
4. Open a browser to [http://localhost:8888/tree](http://localhost:8888/tree). Check that tutorials still work and/or open a notebook and test the changes that you made.
5. Once finished testing, kill the container using Ctrl-C
Expand Down

0 comments on commit 885c68f

Please sign in to comment.