-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
39 lines (39 loc) · 1.67 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
machine:
services:
- docker
environment:
DB_PORT: "tcp://127.0.0.1:7379"
QUEUE_PORT: "tcp://127.0.0.1:7711"
checkout:
post:
- rm -rf ~/.go_workspace/src/github.com/urlgrey
- mkdir -p ~/.go_workspace/src/github.com/urlgrey
- cp -R ~/aprs-dashboard ~/.go_workspace/src/github.com/urlgrey/aprs-dashboard
dependencies:
cache_directories:
- "~/deb_cache"
override:
- go get github.com/tools/godep
- docker pull urlgrey/dynamic-redis
- docker pull quay.io/skidder/disque:latest
- cd ${HOME}
- wget https://raw.githubusercontent.com/urlgrey/docker-dynamic-redis/master/redis.conf
- docker run --name db -p 7379:6379 -d -v `pwd`/redis.conf:/usr/local/etc/redis/redis.conf urlgrey/dynamic-redis:latest redis-server /usr/local/etc/redis/redis.conf
- docker run --name queue -p 7711:7711 -d quay.io/skidder/disque:latest
- cd ${HOME}
- mkdir deb_cache
- cd deb_cache
- if [ ! -e ${HOME}/deb_cache/libfap-dev_1.3_amd64.deb ]; then wget http://www.pakettiradio.net/downloads/libfap/1.3/deb_amd64/libfap-dev_1.3_amd64.deb; fi
- if [ ! -e ${HOME}/deb_cache/libfap5_1.3_amd64.deb ]; then wget http://www.pakettiradio.net/downloads/libfap/1.3/deb_amd64/libfap5_1.3_amd64.deb; fi
- sudo dpkg -i libfap-dev_1.3_amd64.deb libfap5_1.3_amd64.deb
test:
override:
- cd ~/.go_workspace/src/github.com/urlgrey/aprs-dashboard && make all docker-build
post:
- docker run -d --link db:db --link queue:queue -p 3000:3000 -p 3100:3100 urlgrey/aprs-dashboard:latest; sleep 5
- curl --retry 10 --retry-delay 5 -v http://localhost:3100/healthcheck
deployment:
automerge:
branch: [master]
commands:
- make docker-deploy