Visit the releases page to download one of the pre-built binaries for your platform.
Use the Docker image
docker pull insidieux/inizio:v1.1.3
Alternatively, you can use the go get method:
go get github.com/insidieux/inizio/cmd/inizio
Ensure that $GOPATH/bin
is added to your $PATH
.
Example config for running binary you can find here
inizio \
--plugins.config /etc/inizio/plugins.yaml \
--plugins.path /usr/local/bin/inizio-plugins \
path-to-project
Path to project can be absolute or relative to current working directory.
docker run \
--rm \
--user=$(id -u):$(id -g) \
-it \
-v $(pwd):/project \
-w /project \
insidieux/inizio:v1.1.3 \
path-to-project
Path to project can be absolute or relative to /project
directory in container.
--layout.cleanup cleanup working directory before generation
--layout.template.dockerfile string path to custom Dockerfile template (must have "gotmpl" extension)
--layout.template.makefile string path to custom Makefile template (must have "gotmpl" extension)
--logger.level string log level (default "info")
--plugins.config string path to plugins config yaml file
--plugins.fail-fast stop after first plugin failure
--plugins.path string path to plugins directory (default "/usr/local/bin/inizio-plugins")
# An example config with full definition of plugin executable arguments, flags and environment
# Important notes:
# 1. Each env.Name will be processed by uppercase
# 2. Each env.Value will be passed to envsubst process (substitutes environment variables in shell format strings)
# 3. Each flags.Value will be passed to envsubst process (substitutes environment variables in shell format strings)
- name: plugin-first
env:
- name: ENV_VARIABLE
value: "${SOME_ENV_VARIABLE}"
flags:
- name: some.flag
value: "${SOME_ENV_VARIABLE}"
args:
- first
- second