wantedly/risu

Name: risu

Owner: Wantedly, Inc.

Description: Rapid Image Supplying Unit

Created: 2015-08-06 05:29:42.0

Updated: 2015-08-14 13:59:45.0

Pushed: 2015-09-30 18:03:39.0

Homepage:

Size: 1364

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

RISU (Rapid Image Supplying Unit)

Risu is a build tool for docker image with original cache mechanism.

Quick Start

First, run risu server as docker container.

cker run \
--name risu \
-e GITHUB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXX \
-e DOCKER_AUTH_USER_NAME=your_name \
-e DOCKER_AUTH_USER_PASSWORD=your_password \
-e DOCKER_AUTH_USER_EMAIL=your_email \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
quay.io/wantedly/risu:latest

Second, trigger a new build via risu API.

rl -n -X POST https://<your-risu-server>.com/builds \
 "Content-Type: application/json" \

 '{
ource_repo": "wantedly/risu",
ource_branch": "master",
mage_name": "quay.io/wantedly/risu:latest",
ockerfile": "Dockerfile.dev",
ache_directories": [
{
  "source": "vendor/bundle",
  "container": "/app/vendor/bundle"
},
{
  "source": "vendor/assets",
  "container": "/app/vendor/assets"
}


Then, risu server build docker image with original cache mechanism and push it to docker registry.

That's it!

Documentation
HTTP API
Requirements
How It Works

TBD

Registry Backend
localfs Backend Registry
cker run \
--name risu \
-e GITHUB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXX \
-e DOCKER_AUTH_USER_NAME=your_name \
-e DOCKER_AUTH_USER_PASSWORD=your_password \
-e DOCKER_AUTH_USER_EMAIL=your_email \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
quay.io/wantedly/risu:latest
etcd Backend Registry
cker run \
--name risu \
-e GITHUB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXX \
-e DOCKER_AUTH_USER_NAME=your_name \
-e DOCKER_AUTH_USER_PASSWORD=your_password \
-e DOCKER_AUTH_USER_EMAIL=your_email \
-e REGISTRY_BACKEND=etcd \
-e REGISTRY_ENDPOINT=http://172.17.8.101:4001 \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
quay.io/wantedly/risu:latest
Cache Backend
localfs
cker run \
--name risu \
-e GITHUB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXX \
-e DOCKER_AUTH_USER_NAME=your_name \
-e DOCKER_AUTH_USER_PASSWORD=your_password \
-e DOCKER_AUTH_USER_EMAIL=your_email \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
quay.io/wantedly/risu:latest
S3
cker run \
--name risu \
-e GITHUB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXX \
-e DOCKER_AUTH_USER_NAME=your_name \
-e DOCKER_AUTH_USER_PASSWORD=your_password \
-e DOCKER_AUTH_USER_EMAIL=your_email \
-e CACHE_BACKEND=s3 \
-e AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX \
-e AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
-e AWS_REGION=xx-yyyy-0 \
-e RISU_CACHE_BUCKET=xxxx \
-p 8080:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
quay.io/wantedly/risu:latest
Contribution
  1. Fork it ( http://github.com/wantedly/risu )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.