Go to file
Bruno Tavares 092e48e3fd Introduce kickstart root-dir
The root-dir is important to know so we can include the kickstart as a
module on compile, so projects can access the kickstart utilities on
their recipes
2014-02-20 13:21:15 -03:00
bin Add kickstart binary command with instalation instructions 2014-02-19 20:25:41 -03:00
kickstart Kickstart helper modules to be used on recipes 2014-02-20 12:50:49 -03:00
lib Introduce kickstart root-dir 2014-02-20 13:21:15 -03:00
.gitignore Add kickstart binary command with instalation instructions 2014-02-19 20:25:41 -03:00
README.md Introduce kickstart root-dir 2014-02-20 13:21:15 -03:00

kickstart

Bash installation script for developer environments

Installation

Add it to the path.

One options is to download it, and export the bin folder into your PATH

# Adjust the paths to your preferred location
installation_path=/opt/kickstart
shell_configuration=$HOME/.bashrc

git clone https://github.com/bltavares/kickstart.git $installation_path
echo 'export PATH=$PATH:'$installation_path'/bin' >> $shell_configuration

The other is to link the bin/kickstart into a place that is already on your path

# Adjust the paths to your preferred location
installation_path=/opt/kickstart
shell_configuration=$HOME/.bashrc

git clone https://github.com/bltavares/kickstart.git $installation_path
sudo ln -s $installation_path/bin/kickstart /usr/local/bin/kickstart

Usage

create

Creates a sample project structure

kickstart create [folder name or current folder]

docker-create

Creates a docker container with a running sshd to test recipes

kickstart docker-create

docker-ssh

Access the created docker container over ssh. A simple utility that looks up for the port the docker is bound.

kickstart docker-ssh

compile

Compile the current workspace into the folder to be packaged on deploy

kickstart compile

deploy

Takes an host target and deploy the compiled code on it.

kickstart deploy [target] [roles ...]
Examples

Deploy a role on a host

kickstart deploy vagrant@localhost nodejs

Deploy two roles on a host with an alternative port

kickstart deploy "-p 2222 vagrant@localhost" nodejs redis

Thanks

This project was inspired on sunzi