-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bootstrap script with Docker for extracting zkServer property
- Loading branch information
Jean-Louis Rigau
committed
May 18, 2016
1 parent
656c223
commit b8470e9
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
ZK_SERVER=${ZK_SERVER:-"localhost:2181"} | ||
|
||
sed -i "s/^zkServer=.*$/zkServer=$ZK_SERVER/" /var/app/config.cfg | ||
|
||
echo "Starting zkui with server $ZK_SERVER" | ||
|
||
exec java -jar /var/app/zkui.jar |