Skip to content

Arm64v8 update (i.e. for Raspberry Pi 3 clusters) #121

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

Closed
wants to merge 5 commits into from
Closed
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
26 changes: 0 additions & 26 deletions Dockerfile.aarch64

This file was deleted.

39 changes: 39 additions & 0 deletions Dockerfile.arm64v8
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#Latest version of node tested on.
FROM arm64v8/node:8.12-alpine AS dist

WORKDIR /app

# Only run npm install if these files change.
ADD ./package.json /app/package.json

# Install dependencies
RUN npm install

# Add the rest of the sources
ADD . /app

RUN npm run dist


FROM arm64v8/node:8.12-alpine

WORKDIR /app
ADD ./cfg/* /app/cfg/
ADD ./src/* /app/src/
ADD ./create-index.js /app
ADD ./index.tpl /app
ADD ./server.js /app
ADD ./healthcheck.js /app
COPY --from=dist /app/dist/* /app/dist/
COPY --from=dist /app/package.json /app/package.json
RUN npm install

# MS : Number of milliseconds between polling requests. Default is 1000.
# CTX_ROOT : Context root of the application. Default is /
ENV MS=1000 CTX_ROOT=/

EXPOSE 8080

HEALTHCHECK CMD node /app/healthcheck.js || exit 1

CMD ["npm","start"]
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ $ docker service create \

## 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.
### ARM32

[@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 1 and 2 (up to RPi2 version 1.1).

```
$ docker service create \
Expand All @@ -70,6 +72,21 @@ $ docker build -f Dockerfile.arm -t visualizer-arm:latest .

[View on Docker Hub](https://hub.docker.com/r/alexellis2/visualizer-arm/tags/)

### ARM64

Similarly, [@ikluft](https://github.com/ikluft) pushed an image to Docker Hub as `ikluft/visualizer-arm64v8` for arm64v8 architecture machines such as the Raspberry Pi 3, as well as Raspberry Pi 2 version 1.2 (Oct 2016) and later.

```
$ docker service create \
--name=viz \
--publish=8080:8080/tcp \
--constraint=node.role==manager \
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
ikluft/visualizer-arm64v8:latest
```

To rebuild the image or inspect the source it was made from see [its entry on Docker Hub](https://hub.docker.com/r/ikluft/visualizer-arm64v8/) or the [GitHub repo forked for this fix](https://github.com/ikluft/docker-swarm-visualizer).

## Running on Windows

[@StefanScherer](https://github.com/StefanScherer) has pushed an image to the
Expand Down Expand Up @@ -98,7 +115,7 @@ docker run -d -p 8080:8080 -e DOCKER_HOST=${ip}:2375 --name=visualizer stefansch

To work with a TLS secured Docker engine on Windows, set the environment variable `DOCKER_TLS_VERIFY` and
bind mount the TLS certificates into the container.

```
$ip=(Get-NetIPAddress -AddressFamily IPv4 `
| Where-Object -FilterScript { $_.InterfaceAlias -Eq "vEthernet (HNS Internal NIC)" } `
Expand Down