kaigara

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

README

kaigara

Devops Swiss Army knife

Build Status

Introduction

Kaigara is a tiny provisioning tool for container initialization and with continuous migration in production in mind.

Installation

Paste the following lines into your Dockerfile:

## <[ Kaigara
ENV KAIGARA_VERSION v0.0.1
RUN wget --quiet https://github.com/mod/kaigara/releases/download/$KAIGARA_VERSION/kaigara-linux-amd64-$KAIGARA_VERSION.tar.gz \
    && tar -C /usr/local/bin -xzvf kaigara-linux-amd64-$KAIGARA_VERSION.tar.gz

    COPY operations /opt/provision/operations
    COPY resources /opt/provision/resources
## Kaigara ]>
Philosophy

Kaigara is a standard way for a container ENTRYPOINT. It can setup or upgrade your application configuration before starting the process.

Kaigara operate with 3 main components Metadata, Operations and Resources.

Metdata: In development you can set default variables into your metadata.yml file In production or other stages you can either use shell environment or better etcd/consul.

Resources: A directory copied on the target system containing templates or files to by manipulated from Operations. The templates will be rendered using application metadata.

Operations: A directory of scripts copied into the target system, they will be executed one by one in alphabetical orders, we would usually use first operation for setting up application volumes for persistant and application specific configurations. The sub-sequents operations are configuration changes and upgrades, similar to database migrations.

Contribute
go get github/mod/kaigara

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
doc
examples/uhttpd command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL