Skip to content

Commit aa48ef8

Browse files
committed
removing tutum.yml, a few comments on Dockerfiles, fleshing out TODO on README.md, and updating some info in package.json"
1 parent fe03cb0 commit aa48ef8

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#Latest version of node tested on.
12
FROM node:4.1.2-slim
23

34
WORKDIR /app
45

5-
# Only run npm install if these files change
6+
# Only run npm install if these files change.
67
ADD ./package.json /app/package.json
78

89
# Install dependencies
@@ -13,8 +14,14 @@ ADD . /app
1314

1415
# Build the app
1516
RUN npm run dist
17+
18+
# Default host is localhost. This is for same-origin policies.
1619
ENV HOST "localhost"
20+
21+
# Number of milliseconds between polling requests. Default is 200.
1722
ENV MS 200
23+
24+
#Default port to expose.
1825
ENV PORT 8080
1926
EXPOSE 8080
2027

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
[![Deploy to Tutum](https://s.tutum.co/deploy-to-tutum.svg)](https://dashboard.tutum.co/stack/deploy/)
44

5-
Demo container that displays services on a diagram
5+
Demo container that displays services on a diagram.
66

7+
Each node in the swarm will show all tasks running on it. When a service goes down it'll be removed. When a node goes down it won't, instead the circle at the top will turn red to indicate it went down. Tasks will be removed.
8+
Occasionally the Remote API will return incomplete data, for instance the node can be missing a name. The next time info for that node is pulled, the name will update.
79

10+
11+
TODO:
12+
* Take out or fix how dist works
13+
* Comment much more extensively
14+
* Create tests and make them work better
15+
* Make CSS more elastic. Currently optimized for 3 nodes on a big screen

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tutumVisualizer",
2+
"name": "swarmVisualizer",
33
"private": true,
44
"version": "0.0.1",
55
"description": "YOUR DESCRIPTION - Generated by generator-react-webpack",
@@ -16,8 +16,8 @@
1616
"start": "node server.js",
1717
"test": "karma start"
1818
},
19-
"repository": "",
20-
"keywords": [],
19+
"repository": "https://github.com/manomarks/docker-swarm-visualizer",
20+
"keywords": ["Docker","Swarm","D3","Node Visualization"],
2121
"author": "Your name here",
2222
"devDependencies": {
2323
"babel-core": "^5.8.22",

tutum.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)