ChungSub Kim
hello :)
4th OpenContainer Korea Casual Talk
March 26, 2016
by @subicura
PROS
CONS
JENKINS + DOCKER
GOLANG_VERSION=1.6
PACKAGE_NAME=github.com/subicura/wuzu
docker run --rm \
-v $pwd:/go/src/$PACKAGE_NAME \
-w /go/src/$PACKAGE_NAME \
golang:${GOLANG_VERSION}-alpine \
go build
Source File
Build & Test
.travis.yml
language: ruby
rvm:
- 2.1.3
env:
- DB=mysql
script:
- RAILS_ENV=test bundle exec rake --trace db:migrate test
before_script:
- mysql -e 'create database myapp_test'
simple YAML file to describe build & test
very simple command-line tool that builds in an isolated (docker) environment.
# golang build
build:
from: 'golang:1.6'
src: $PWD
dest: /go/src/github.com/subicura/wuzu
run: go build -v
.wuzu.yml
$ wuzu build
docker run --rm \
-v SRC:DEST \
-w DEST \
FROM \
CMD
docker run --rm \
-v $PWD:/go/src/github.com/subicura/wuzu \
-w /go/src/github.com/subicura/wuzu \
golang:1.6 \
go build -v
By ChungSub Kim
Using Docker in Builds 도커를 이용해서 빌드하기