Skip to content

Commit

Permalink
Add documentation on running envetcd in systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Saturnino committed Nov 19, 2014
1 parent dd10428 commit af8d820
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
Dockerfile
=========
Option 1: sysmtemd
==================
Run `envetcd` to get etcd config of the service using systemd as illustrated below.

```
ExecStart=/bin/bash -c "TMPFILE_ENVETCD=$(mktemp -t service.XXXXXXXXXX); \
exec /envetcd --service redis -o $TMPFILE_ENVETCD -c env; \
exec /usr/bin/docker run \
--env-file=$TMPFILE_ENVETCD \
--name redis \
zvelo/zvelo-redis;
rm -rf $TMPFILE_ENVETCD; "
```


Option 2: Dockerfile
====================
The Dockerfile was created to embed `envetcd` in each docker container and run it directly in order to wrap the Go executable for the services.

Installation
Expand Down

0 comments on commit af8d820

Please sign in to comment.