Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Latest version of node tested on.
FROM node:8.2.1-alpine AS dist
FROM node:8-alpine AS dist

WORKDIR /app

Expand All @@ -15,7 +15,7 @@ ADD . /app
RUN npm run dist


FROM node:8.2.1-alpine
FROM node:8-alpine

WORKDIR /app
ADD ./cfg/* /app/cfg/
Expand Down
24 changes: 0 additions & 24 deletions Dockerfile.arm

This file was deleted.

28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ $ docker service create \
dockersamples/visualizer
```

## Supported architectures

The main `dockersamples/visualizer` image supports **linux/amd64**.

**For armhf**, 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

[@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.
Expand All @@ -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 -t visualizer-arm:latest .
```

[View on Docker Hub](https://hub.docker.com/r/alexellis2/visualizer-arm/tags/)
Expand Down Expand Up @@ -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 -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
Expand Down