Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
/ sail Public archive

[DISCONTINUED] Command line client for Sailabove Docker Hosting platform

License

Notifications You must be signed in to change notification settings

ovhlabs/sail

Repository files navigation

WARNING

This project has been discontinued and is kept for reference purpose only

Build Status GoDoc

Sailabove client

Sailabove.com is a docker hosting solution aiming to be as flexible as a container and as elegant as a sailboat.

docker login sailabove.io

# Build
docker tag my-cool-project-image sailabove.io/my-app/my-cool-project-image

# Ship
docker push sailabove.io/my-app/my-cool-project-image

# Run
sail service add my-cool-project-image my-cool-project-service

Setup

  1. Grab lastest release for your platform from https://github.com/runabove/sail/releases
  2. Make it executable. chmod +x sail will do the trick on UNix based platforms

To update it, simply run

sail update

Configuration

sail automatically loads registry's credentials from docker keyring. Hence, after a succesfull push to Sailabove's registry, there should be no need for configuration.

docker login sailabove.io

If you wish to temporarily override a parameter, you may use SAIL_HOST, SAIL_USER and SAIL_PASSWORD to respectively force the API endpoint, the username and the password. Additionally, these parameters may be set via --api-host, --api-user and --api-password

Usage

Once you have claimed your private namespace on http://labs.runabove.com/docker and sucessfuly pushed your first image you may launch and supervice a service from this template image. For example, taking a my-redis Docker, let's create a redis service:

sail service add my-app/my-redis-image my-app/redis-service

Watch your private cluster's status:

sail service ps

Scale your cluster:

sail service scale my-app/redis-service --number 2

Clear everything:

sail service rm my-app/redis-service

Hacking

Sailabove's CLI is written in Go 1.5, using the experimental vendoring mechanism introduced in this version. Make sure you are using at least version 1.5.

export GO15VENDOREXPERIMENT=1
go get github.com/runabove/sail
cd $GOPATH/src/github.com/runabove/sail
go build

You've developed a new cool feature? Fixed an annoying bug? We'd be happy to hear from you! Make sure to read CONTRIBUTING.md before.

Related links