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
Size: 1364
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Risu is a build tool for docker image with original cache mechanism.
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!
GITHUB_ACCESS_TOKEN
DOCKER_AUTH_USER_NAME
DOCKER_AUTH_USER_PASSWORD
DOCKER_AUTH_USER_EMAIL
TBD
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
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
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
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