-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Sergei Egorov edited this page Feb 15, 2016
·
5 revisions
First, get the Binaries.
Configo has first-class support for Docker (as well as other container engines like rkt).
First, make sure that Configo is available inside your Docker image:
RUN curl -L https://github.com/zeroturnaround/configo/releases/download/v0.2.0/configo.linux-amd64 >/usr/local/bin/configo && \
chmod +x /usr/local/bin/configo
Then, prefix your command with configo
command:
CMD ["configo", "java", "-jar", "myapp.jar"]
Done! Now go to Configuration and start using Configo.
Configo could be used in non-container environments as well. In the end, it's just a Go program to run other programs.
You will have to download Configo executable first:
On OS X
curl -L https://github.com/zeroturnaround/configo/releases/download/v0.2.0/configo.darwin-amd64 >/usr/local/bin/configo && \
chmod +x /usr/local/bin/configo
On Linux
curl -L https://github.com/zeroturnaround/configo/releases/download/v0.2.0/configo.linux-amd64 >/usr/local/bin/configo && \
chmod +x /usr/local/bin/configo
On Windows (with Git bash)
$ if [[ ! -d "$HOME/bin" ]]; then mkdir -p "$HOME/bin"; fi && \
curl -L https://github.com/zeroturnaround/configo/releases/download/v0.2.0/configo.windows-amd64 > "$HOME/bin/configo.exe" && \
chmod +x "$HOME/bin/configo.exe"
Once it's done, you can prefix any command with configo
and it will configure environment for you:
$ export CONFIGO_SOURCE_0='{"type":"shell", "command":"echo \"START_TIME=$(date)\"", "format":"properties"}'
$ configo printenv START_TIME
Mon Feb 15 21:39:30 EET 2016
Intro
Installation
Configuration
Usage
Configo vs others
Examples