Skip to content

Commit fcc4e84

Browse files
author
Mano Marks
authored
Merge pull request dockersamples#14 from alexellis/alex/ARM_support
Update README.md
2 parents d49d8f8 + f385256 commit fcc4e84

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

Dockerfile.arm

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#Latest version of node tested on.
2+
#FROM node:4.1.2-slim
3+
FROM alexellis2/node4.x-arm:v6
4+
5+
WORKDIR /app
6+
7+
# Only run npm install if these files change.
8+
ADD ./package.json /app/package.json
9+
10+
# Install dependencies
11+
RUN npm install --unsafe-perm=true
12+
13+
# Add the rest of the sources
14+
ADD . /app
15+
16+
# Build the app
17+
RUN npm run dist
18+
19+
# Default host is localhost. This is for same-origin policies.
20+
ENV HOST "localhost"
21+
22+
# Number of milliseconds between polling requests. Default is 200.
23+
ENV MS 200
24+
25+
#Default port to expose.
26+
ENV PORT 8080
27+
EXPOSE 8080
28+
29+
CMD ["npm","start"]

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ In some cases, you need to run the docker with your master node hostname instead
1515

1616
Example: `docker run -it -d -p 5000:5000 -e HOST=node-master -e PORT=5000 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer`
1717

18+
## Running on ARM
19+
20+
[@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.
21+
22+
If you would like to build the image from source run the following command:
23+
24+
```
25+
$ docker build -f Dockerfile.arm -t visualizer-arm:latest .
26+
```
27+
28+
## Sample
29+
1830
Here's a sample with one node:
1931

2032
![Sample image of one node](./samplenode.png)

0 commit comments

Comments
 (0)