2016-08-13 21:49:19 +00:00
|
|
|
machine:
|
2016-08-20 00:05:24 +00:00
|
|
|
pre:
|
|
|
|
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
|
|
|
|
- sudo chmod 0755 /usr/bin/docker
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-08-10 05:15:44 +00:00
|
|
|
dependencies:
|
2016-08-20 00:05:24 +00:00
|
|
|
pre:
|
|
|
|
- docker info
|
|
|
|
- docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
|
2016-08-13 21:49:19 +00:00
|
|
|
override:
|
2016-11-11 02:04:26 +00:00
|
|
|
- docker pull redis
|
2016-12-02 02:18:32 +00:00
|
|
|
- docker pull mysql:5.7
|
|
|
|
- docker pull kolide/kolide-builder:1.8
|
|
|
|
- docker run -v $(pwd):/go/src/github.com/kolide/kolide-ose -v /home/ubuntu/.go_workspace/pkg:/go/pkg kolide/kolide-builder:1.8 --deps
|
2016-09-22 00:43:48 +00:00
|
|
|
cache_directories:
|
|
|
|
- "vendor"
|
|
|
|
- "node_modules"
|
2016-08-20 00:05:24 +00:00
|
|
|
|
2016-08-10 05:15:44 +00:00
|
|
|
test:
|
2016-08-09 03:42:24 +00:00
|
|
|
override:
|
2016-11-11 02:04:26 +00:00
|
|
|
- docker run -d --name redis redis
|
|
|
|
- docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=toor -e MYSQL_DATABASE=kolide -e MYSQL_USER=kolide -e MYSQL_PASSWORD=kolide mysql:5.7
|
2016-12-02 02:18:32 +00:00
|
|
|
- docker run --link redis:redis --link mysql:mysql -e MYSQL_TEST=true -e REDIS_TEST=true -v $(pwd):/go/src/github.com/kolide/kolide-ose -v /home/ubuntu/.go_workspace/pkg:/go/pkg kolide/kolide-builder:1.8 --build
|
2016-11-11 02:04:26 +00:00
|
|
|
- docker stop $(docker ps -a -q)
|
2016-09-19 22:54:57 +00:00
|
|
|
|
|
|
|
deployment:
|
|
|
|
development:
|
2016-09-22 00:43:48 +00:00
|
|
|
branch: /.*/
|
2016-09-19 22:54:57 +00:00
|
|
|
commands:
|
|
|
|
- make docker-build-circle
|