-
Notifications
You must be signed in to change notification settings - Fork 592
Use multi-arch node base image #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
4ffb5d1
3d28a24
f180e56
f891f2e
7acef58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,16 @@ $ docker service create \ | |
| dockersamples/visualizer | ||
| ``` | ||
|
|
||
| ## Supported architectures | ||
|
|
||
| The main `dockersamples/visualizer` image supports **linux/amd64**. | ||
|
|
||
| **For ARM**, there is a pre-built image available. See [Running on ARM](#running-on-arm). | ||
|
|
||
| **For Windows**, there is a separate `Dockerfile.windows` and image. See [Running on Windows](#running-on-windows). | ||
|
|
||
| **Missing your architecture?** See [Building a custom image](#building-a-custom-image). | ||
|
|
||
| ## Running on ARM | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should not remove this section. Someone will still have to build and maintain an image on the Docker Hub. |
||
|
|
||
| [@alexellisuk](https://twitter.com/alexellisuk) has pushed an image to the Docker Hub as `alexellis2/visualizer-arm:latest` it will run the code on an ARMv6 or ARMv7 device such as the Raspberry Pi. | ||
|
|
@@ -61,7 +71,7 @@ $ docker service create \ | |
| If you would like to build the image from source run the following command: | ||
|
|
||
| ``` | ||
| $ docker build -f Dockerfile.arm -t visualizer-arm:latest . | ||
| $ docker build -f Dockerfile -t visualizer-arm:latest . | ||
|
||
| ``` | ||
|
|
||
| [View on Docker Hub](https://hub.docker.com/r/alexellis2/visualizer-arm/tags/) | ||
|
|
@@ -103,7 +113,21 @@ $ip=(Get-NetIPAddress -AddressFamily IPv4 ` | |
| docker run -d -p 8080:8080 -e DOCKER_HOST=${ip}:2376 -e DOCKER_TLS_VERIFY=1 -v "$env:USERPROFILE\.docker:C:\Users\ContainerAdministrator\.docker" --name=visualizer stefanscherer/visualizer-windows | ||
| ``` | ||
|
|
||
| TODO: | ||
| ## Building a custom image | ||
| *When building for Windows, see [Running on Windows](#running-on-windows)*. | ||
|
|
||
| To build an up-to-date image for any architecture supported by [node:8-alpine](https://hub.docker.com/_/node/) (currently `amd64`, `arm32v6`, `arm32v7`, `arm64v8`, `i386`, `ppc64le` and `s390x`), execute the following command on a device of your target architecture: | ||
| ``` | ||
| $ docker build -f Dockerfile -t visualizer-custom:latest . | ||
|
||
| ``` | ||
|
|
||
| Afterwards you can start visualizer by using any of the commands stated [above](#docker-swarm-visualizer). Just replace `dockersamples/visualizer` with `visualizer-custom`. For example: | ||
| ``` | ||
| $ docker run -it -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock visualizer-custom | ||
| ``` | ||
|
|
||
|
|
||
| ## TODO: | ||
| * Take out or fix how dist works | ||
| * Comment much more extensively | ||
| * Create tests and make them work better | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be more specific about "arm" - this works for
armhfonly, it won't work for 64-bit ARM such as that found on Packet's or Scaleway's servers or the Pine64 etc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Done 👍