CI/CD with Drone/Docker
Justin Phelps onitato.com @Linuturk
CI/CD with Drone/Docker Justin Phelps onitato.com @Linuturk - - PowerPoint PPT Presentation
CI/CD with Drone/Docker Justin Phelps onitato.com @Linuturk Terminology Lets discuss some terminology: CI CD Docker Drone CI Continuous Integration - test your code all the time for all the things, automatically. CD
Justin Phelps onitato.com @Linuturk
Let’s discuss some terminology:
Continuous Integration - test your code all the time for all the things, automatically.
Continuous Delivery - deliver new code to environments as it is tested, automatically.
https://github.com/drone/drone
Configuration sections:
The image option defines which Docker Image to use for testing.
env is used to set environment variables. I like to use this to add another layer to my Secret Parameters. env:
script defines your build commands for your
Build fails if any command exits != 0
Define any services your app tests against. Some options include:
Notify based on the results of your build.
You can deploy and/or publish your app once a build completes.
$ wget http://downloads.drone.io/latest/drone.deb $ sudo dpkg -i drone.deb
Make sure Docker and docker-py are installed.
wget http://downloads.drone.io/latest/drone.deb sudo dpkg -i drone.deb
Drone should now be listening on port 80. http://<your IP>/install
https://github.com/settings/applications
image: linuturk/pelican script:
publish: swift: username: {{rax_username}} password: {{rax_apikey}} auth_url: https://identity.api.rackspacecloud.com/v2.0 region: ORD container: www.onitato.com source: $DRONE_BUILD_DIR/output branch: master
Justin Phelps @Linuturk