Skip to content

Installation

Sergei Egorov edited this page Apr 5, 2017 · 5 revisions

First, get the Binaries.

Docker image

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/bsideup/configo/releases/download/v0.4.1/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.

Old-school

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/bsideup/configo/releases/download/v0.4.1/configo.darwin-amd64 >/usr/local/bin/configo && \
   chmod +x /usr/local/bin/configo

On Linux

curl -L https://github.com/bsideup/configo/releases/download/v0.4.1/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/bsideup/configo/releases/download/v0.4.1/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
Clone this wiki locally