Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Continuous Integration & Automated Builds with ...

Continuous Integration & Automated Builds with Docker

A short talk on CI using Github, Drone.io & Docker Hub Automated Build. Presented on 15th October on the 1st Singapore Docker meetup at Viki Inc.

Avatar for Fadhli Rahim

Fadhli Rahim

October 15, 2014

Other Decks in Technology

Transcript

  1. WHAT IS DRONE? • https://drone.io/ • https://github.com/drone/drone • SaaS or

    Self Hosted • Written in Go • Uses docker to run/test build
  2. HOW DOES IT WORK? • watches git repo `.drone.yml` file

    • clones your repo after git push • creates docker image
  3. image: bradrydzewski/ruby:2.0.0 services: - postgres:latest - redis script: - cp

    config/database.yml.drone config/database.yml - bundle install - psql -c 'create database app_test;' -U {{DB_USER}} -h {{DB_HOST}} -p {{DB_PORT}} - bundle exec rake db:schema:load - bundle exec rspec . notify: email: recipients: - [email protected] webhook: on_success: true on_failure: false urls: - https://registry.hub.docker.com/u/viki/baboon/trigger/access_token/ hipchat: room: 1 token: token on_started: true on_success: true on_failure: true .drone.yml
  4. DOCKER HUB AUTOMATED BUILDS • when you’re tired of manually

    docker building & push • a simple git push to github • builds your docker image base on your Dockerfile
  5. MY WORKFLOW git push github drone.io docker hub - git

    clone viki/app - docker build test - run test - docker build - docker push
  6. THINGS TO IMPROVE • Faster build (drone/docker hub) • Simplify

    workflow. Have drone.io configured to pull from docker hub and run specs. • Continuous deployment