You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: consul/README.md
-18Lines changed: 0 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ This image inherits from the ```1science/node``` image adding support to manage
5
5
It includes :
6
6
-[S6 Overlay](https://github.com/just-containers/s6-overlay) to properly manage multiple services in one container
7
7
-[Consul template](https://github.com/hashicorp/consul-template) to manage dynamic configuration based on Consul
8
-
-[Fileconsul](https://github.com/foostan/fileconsul) an utility to synchronize files on Consul
9
8
10
9
# Usage
11
10
@@ -26,23 +25,6 @@ FROM 1science/node:consul
26
25
ADD etc/consul-template /etc/consul-template
27
26
```
28
27
29
-
## Fileconsul
30
-
31
-
The following example use [Fileconsul](https://github.com/foostan/fileconsul) to synchronize configuration files with Consul:
32
-
33
-
```
34
-
docker run --name node-consul \
35
-
-e CONSUL_URL=localhost:8500 \
36
-
-e FILECONSUL_PREFIX=app \
37
-
-e FILECONSUL_DC=local \
38
-
-e FILECONSUL_BASEPATH=/app/etc \
39
-
-d 1science/node:consul
40
-
```
41
-
42
-
This synchronize the configuration files in Consul defined in the KV folder ```app``` in the local directory ```/app/etc``` (see [fileconsul script](etc/periodic/1min/fileconsul)).
43
-
44
-
The Node process is in charge to detect the changes made in the ```/app/etc``` directory and [reload](http://stackoverflow.com/questions/1972242/auto-reload-of-files-in-node-js) the configuration.
45
-
46
28
# Build
47
29
48
30
This project is configured as an [automated build in Dockerhub](https://hub.docker.com/r/1science/node/).
0 commit comments