Skip to content

Instantly share code, notes, and snippets.

@genedna
Created December 8, 2014 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genedna/f3227b6fcf028667e070 to your computer and use it in GitHub Desktop.
Save genedna/f3227b6fcf028667e070 to your computer and use it in GitHub Desktop.
app:
image: bradrydzewski/go:1.2
git:
path: github.com/drone/drone
environment:
- GOROOT=/usr/local/go
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
services:
- redis
- mysql
dependencies:
- oauth.dep
- log.dep
script:
- go get -u github.com/hoisie/redis
- go get -u github.com/go-martini/martini
- go get -u github.com/martini-contrib/render
- go get -u github.com/go-sql-driver/mysql
- go get -u github.com/go-xorm/xorm
- go build
ports:
- "80:80"
expose:
- "3000"
notify:
email:
recipients:
- brad@drone.io
oauth.dep:
image: bradrydzewski/go:1.3
git:
path: github.com/drone/oauth
environment:
- GOROOT=/usr/local/go
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
services:
- redis-oauth
- mysql-oauth
dependencies:
- log.dep
script:
- go get -u github.com/hoisie/redis
- go get -u github.com/go-martini/martini
- go get -u github.com/martini-contrib/render
- go get -u github.com/go-sql-driver/mysql
- go get -u github.com/go-xorm/xorm
- go build
ports:
- "80:80"
expose:
- "3000"
notify:
email:
recipients:
- brad@drone.io
log.dep:
image: bradrydzewski/go:1.1
git:
path: github.com/drone/log
environment:
- GOROOT=/usr/local/go
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
services:
- redis-log
- mysql-log
dependencies:
- log.dep
script:
- go get -u github.com/hoisie/redis
- go get -u github.com/go-martini/martini
- go get -u github.com/martini-contrib/render
- go get -u github.com/go-sql-driver/mysql
- go get -u github.com/go-xorm/xorm
- go build
ports:
- "80:80"
expose:
- "3000"
notify:
email:
recipients:
- brad@drone.io
redis:
image: bradrydzewski/redis:2.6
ports:
- "80:80"
expose:
- "3000"
mysql:
image: bradrydzewski/mysql:5.5
ports:
- "22:22"
expose:
- "3306"
environment:
- RACK_ENV=development
- SESSION_SECRE
redis-oauth:
image: bradrydzewski/redis:2.6
ports:
- "80:80"
expose:
- "3000"
mysql-oauth:
image: bradrydzewski/mysql:5.5
ports:
- "22:22"
expose:
- "3306"
environment:
- RACK_ENV=development
- SESSION_SECRE
redis-log:
image: bradrydzewski/redis:2.6
ports:
- "80:80"
expose:
- "3000"
mysql-log:
image: bradrydzewski/mysql:5.5
ports:
- "22:22"
expose:
- "3306"
environment:
- RACK_ENV=development
- SESSION_SECRE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment