Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/docker_images' into…
Browse files Browse the repository at this point in the history
… docker_images
  • Loading branch information
bdevans committed Feb 26, 2024
2 parents 1d2409c + cde781f commit 43ce0a5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,23 @@ Instructions

To build the image manually for testing on a local host for the native architecture:

`docker buildx build -t briansimulator/brian -f docker/Dockerfile .`
`docker build -t briansimulator/brian -f docker/Dockerfile .`

Alternatively, to test multi-architeture builds and push to docker hub, use:
Alternatively, to test multi-architecture builds and push to docker hub, first login:

`docker login`

Then execute:

`docker buildx build --push --platform linux/amd64,linux/arm64/v8 -o type=image -t briansimulator/brian -f docker/Dockerfile .`

Then to run the image:
Finally, to run the image:

`docker run -it --init -p 8888:8888 briansimulator/brian`

Or if you prefer a simple `bash` terminal rather than JupyterLab:

`docker run -it --init --rm -p 8888:8888 briansimulator/brian`
`docker run -it --init briansimulator/brian /bin/bash`

Or to run the tests:

Expand Down

0 comments on commit 43ce0a5

Please sign in to comment.