SlideShare a Scribd company logo
Drupal 8 DevOps*.
Profile and SQL flows.
*DevOps is Development Operations Engineer.
Takes care about how development process lives and whether it could be
improved continuously.
About a speaker
Andrii Podanenko, FFW
Team Lead, Software Architect, DevOps
A bunch of contrib modules maintainer
D.org power up group mentor
UA Localization group manager.
http://dgo.to/@podarok
@podarok or @podarok_ua
Technologies, touched within current session
● Drupal 8(7)
● CIBox (Jenkins, GitHub, Ansible, Virtual Machine)
● Drush, Drupal Console
● Vagrant, Virtualbox, linux containers (Docker style)
● LAMP (Linux, Apache, MySQL, PHP)
The crucial point for the development is a...
Speed of Delivery
If you able to deliver a project for a small amount of time...
you can become a winner in
terms of marketing and
sales
If you could demo particular feature any time...
you could give the customers
thoughts they are controlling the
process of developing the product
If you could deploy features/fixes more frequently...
you could let the customers think
they can commit changes to their
business easily through the
product you are developing
If you could provide specific features for UAT* any
time...
you could get decreased overall
UAT time and saved tons of funds
for pre launch testing
*UAT - User Acceptance Testing
If you could test every specific feature on a dedicated
environment - feature build (ci build)...
your QA could be happy which
would make a customer happy as
well
*QA - Quality Assurance engineer
If devs are involved into creating initial user-guides...
delivery would be smoother and
the client would faster start being
more familiar and confident about
product usage
If your development process facilitates communication
and collaboration between developers/team members...
you'll create more powerful
products in terms of architecture
and stability
If your process can't be broken by skipping quality
rules...
your team skills will grow faster
and resulting quality won't be
affected
If your team members could improve development
workflow...
they'd become more responsible
for approaching their tasks
How it looks in practice
Possible environments for Drupal development
● Local DEV (local developer’s desktop)
● Feature Build (CI server) *
● Static build environments (POC, long term testing feature) *optional
● Remote DEV (Accumulated environment for current master branch) *optional
● Staging (Showroom for a client and UAT)
● Production
* Average project outgoings for having CI builds are
● 20-80 $/month hosting
● 35 hours of CI maintenance
Possible Drupal 8 development flows
1. Profile - deployment is reinstall a project from scratch. Useful for:
a. Initial project creation
b. Develop API, library, module, installation suite(platform)
c. Drupal.org module maintainer environment
d. Develop unit/behat tests with demo content
2. SQL - deployment is fetch/keep SQL data from Live environment and run needed
updates. Useful for:
a. Content Managers need to prefill a database with a real content data
b. Pre launch timeline, testing deployments with ability to keep database data between them
c. Service Level Agreement period
d. Legacy CMS(non-Drupal) projects
e. Acceptance testing
Profile flow how-to* - local/remote environment
Using CIBox -> http://cibox.tools
> git pull && vagrant up && sh reinstall.sh Or ansible-playbook reinstall.yml -i 'localhost,' --
connection=local
Using drush -> http://drush.ws
> git pull && drush site-install $profile_name $options
Using drupal console -> http://drupalconsole.com
> git pull && drupal site:install [arguments] [options]
* Depends from project specifics but still - install a site takes
from 30 seconds to 15 minutes. Best time is not more than 10 minutes.
SQL flow how-to* - local environment
Using CIBox -> http://cibox.tools
> git pull && vagrant up && sh reinstall.sh
Or ansible-playbook reinstall.yml -i 'localhost,' --connection=local
Using drush -> http://drush.ws
> git pull && drush sql-drop && drush sqlc < dump.sql && prepare settings.php && drush updb
Using drupal console -> http://drupalconsole.com
> git pull && drupal database:drop && drupal database:restore && prepare settings.php && drupal update:
execute
* Depends from project specifics but still - install a site takes
from 3 to a lot of minutes. Best time is not more than 10 minutes.
SQL flow how-to* - remote environment (DEV or STAGE)
Using CIBox -> http://cibox.tools
Using drush or drupal console, manual style...
1. Deploy the codebase
2. Import working database (It should be previously sanitized from client’s sensitive data) -> optional
3. Prepare settings.php -> optional
4. Run update database
5. Import configs if they weren’t imported by hook_update_N
6. Enable development options, modules
* Depends from project specifics but still - install a site takes
from 3 to any amount of minutes. Best time is not more than 10 minutes.
SQL flow how-to* - creating feature branch dev builds
Using CIBox -> http://cibox.tools
1. Create GitHub Pull Request(PR) with changes to be tested.
2. Prefill steps for review
3. Wait for the comment with a link to a dedicated site build. Under the
hood:
a. CI server gets codebase from PR into unique subfolder/subdomain
within CI server vhost
b. Run reinstall.sh with overridden variables for applying CI
environment
c. Run sniffers.sh and tests.sh for checking code quality
Why is it helpful? e.g. CIBox stats...
Projects for 1000+ hours deliver:
● local dev environment is a deploy ~4000 builds.
● CI builds - deploys. generate 2000+ builds.
● remote DEV - deploy as well. ~200 deploys/project
● Staging ~100 deploys
● Production ~50 deploys (~0.5% failed).
Everything executed via reinstall.yml on all environments. Only environment variables
differs in between. Average deploy run is 6 minutes.
The most tested process for CI enabled flows is delivery.
All delivery, devops scripts should be put into the project for team access/development.
Steps for review -> User Guides
Drupal 8 DevOps . Profile and SQL flows.
Manual Code
Review
Profit!!!
To sum up:
● If delivery is an atomic operation - you can move and control development really
fast
● Having virtualized environments helps you get rid of versions nightmare
● Getting builds for a features gives your team a powerful distributed network IDE
● Single Button Deploy makes it fast and easy to be executed by literally anyone
● Putting your automation scripts into the project’s codebase get’s your team a full
control over delivery without sticking to one guy or department
● Having CI server gives you an ability to work remotely
● Manual code review makes your team more skilled and fluent about a project
● Steps for review make your QA/PM/BA and Product Owner as happy as they
should be
Welcome to attend codesprint 05 June 2016
At Sunday we are going
to sprint about CI !!!!
All we need is your brain
B U I L D S
Builds are everywhere!!!
Thanks for your time and attention
Andrii Podanenko
FFW http://ffwagency.com
CIBox http://cibox.tools
Team Lead, Architect.
http://dgo.to/@podarok
Questions?

More Related Content

What's hot (20)

PDF
Lviv 2013 d7 vs d8
Andy Postnikov
 
PDF
JCConf 2015 workshop 動手玩 Java 專案建置工具
謝 宗穎
 
PDF
Lessons Learned: Using Concourse In Production
Shingo Omura
 
PPTX
7 Habits of Highly Effective Jenkins Users
Jules Pierre-Louis
 
PPTX
Jenkins days workshop pipelines - Eric Long
ericlongtx
 
PDF
DOD 2016 - Sebastian Krzyszkowiak - Jenkins: The Pipeline
PROIDEA
 
PDF
7 Habits of Highly Effective Jenkins Users
Jules Pierre-Louis
 
PPTX
Pipeline as code - new feature in Jenkins 2
Michal Ziarnik
 
PDF
Использование Docker в CI / Александр Акбашев (HERE Technologies)
Ontico
 
PDF
How to integrate front end tool via gruntjs
Bo-Yi Wu
 
PPTX
Django via Docker
Brenden West
 
PPTX
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Andrew Bayer
 
PPTX
Baking docker using chef
Mukta Aphale
 
PPTX
Angular boilerplate generator
Vincent De Smet
 
PDF
An Open-Source Chef Cookbook CI/CD Implementation Using Jenkins Pipelines
Steffen Gebert
 
PDF
Docker at Djangocon 2013 | Talk by Ken Cochrane
dotCloud
 
PDF
中華電信 教育訓練
謝 宗穎
 
PPTX
Vagrant to-aws-flow
Kimberly Macias
 
PDF
Concourse - CI for the cloud
Johannes Rudolph
 
PDF
Puppet Camp Paris 2015: Continuous Integration of Puppet Code (Intermediate)
Puppet
 
Lviv 2013 d7 vs d8
Andy Postnikov
 
JCConf 2015 workshop 動手玩 Java 專案建置工具
謝 宗穎
 
Lessons Learned: Using Concourse In Production
Shingo Omura
 
7 Habits of Highly Effective Jenkins Users
Jules Pierre-Louis
 
Jenkins days workshop pipelines - Eric Long
ericlongtx
 
DOD 2016 - Sebastian Krzyszkowiak - Jenkins: The Pipeline
PROIDEA
 
7 Habits of Highly Effective Jenkins Users
Jules Pierre-Louis
 
Pipeline as code - new feature in Jenkins 2
Michal Ziarnik
 
Использование Docker в CI / Александр Акбашев (HERE Technologies)
Ontico
 
How to integrate front end tool via gruntjs
Bo-Yi Wu
 
Django via Docker
Brenden West
 
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Andrew Bayer
 
Baking docker using chef
Mukta Aphale
 
Angular boilerplate generator
Vincent De Smet
 
An Open-Source Chef Cookbook CI/CD Implementation Using Jenkins Pipelines
Steffen Gebert
 
Docker at Djangocon 2013 | Talk by Ken Cochrane
dotCloud
 
中華電信 教育訓練
謝 宗穎
 
Vagrant to-aws-flow
Kimberly Macias
 
Concourse - CI for the cloud
Johannes Rudolph
 
Puppet Camp Paris 2015: Continuous Integration of Puppet Code (Intermediate)
Puppet
 

Viewers also liked (20)

PDF
Drupal 8 what to wait from
Andrii Podanenko
 
PDF
Vlad Savitsky.Modules parade.DrupalCamp Kyiv 2011
camp_drupal_ua
 
DOCX
Happy ever afters with ci workflow
Albina Tiupa
 
PPTX
Who is here? DrupalCamp Kyiv 2009 opening
Drupal Camp Kyiv
 
PDF
Drupal на 20-ти мегабайтах или издевательства над Shared Hosting
Andrii Podanenko
 
PDF
Drupal code sprint для новичков
Ovadiah Myrgorod
 
PPT
Порівняння Drupal та Typo3
Drupal Camp Kyiv
 
PDF
Getting started with Ansible. Be efficient.
Alex S
 
PDF
Getting Started with DrupalGap
Alex S
 
PPT
Drupal Paranoia
Drupal Camp Kyiv
 
PDF
Drupal and diversity of Single sign-on systems
Alex S
 
PDF
Build your application in seconds and optimize workflow as much as you can us...
Alex S
 
PDF
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
camp_drupal_ua
 
PPT
Многоязычие сайта на Drupal
Drupal Camp Kyiv
 
ODP
Історія, теорія та використання CMS Drupal
Igor Bronovskyy
 
PDF
Start using vagrant now!
Andrii Podanenko
 
PPTX
Drupal Continuous Integration Workflow
Andrii Podanenko
 
PPTX
природна і економна дорожня карта для переходу команди розробки на тест центр...
Andrii Podanenko
 
PDF
Головні Принципи Автоматизації
Andrii Podanenko
 
PDF
Drush - use full power - DrupalCamp Donetsk 2014
Alex S
 
Drupal 8 what to wait from
Andrii Podanenko
 
Vlad Savitsky.Modules parade.DrupalCamp Kyiv 2011
camp_drupal_ua
 
Happy ever afters with ci workflow
Albina Tiupa
 
Who is here? DrupalCamp Kyiv 2009 opening
Drupal Camp Kyiv
 
Drupal на 20-ти мегабайтах или издевательства над Shared Hosting
Andrii Podanenko
 
Drupal code sprint для новичков
Ovadiah Myrgorod
 
Порівняння Drupal та Typo3
Drupal Camp Kyiv
 
Getting started with Ansible. Be efficient.
Alex S
 
Getting Started with DrupalGap
Alex S
 
Drupal Paranoia
Drupal Camp Kyiv
 
Drupal and diversity of Single sign-on systems
Alex S
 
Build your application in seconds and optimize workflow as much as you can us...
Alex S
 
Andriy Podanenko.Drupal database api.DrupalCamp Kyiv 2011
camp_drupal_ua
 
Многоязычие сайта на Drupal
Drupal Camp Kyiv
 
Історія, теорія та використання CMS Drupal
Igor Bronovskyy
 
Start using vagrant now!
Andrii Podanenko
 
Drupal Continuous Integration Workflow
Andrii Podanenko
 
природна і економна дорожня карта для переходу команди розробки на тест центр...
Andrii Podanenko
 
Головні Принципи Автоматизації
Andrii Podanenko
 
Drush - use full power - DrupalCamp Donetsk 2014
Alex S
 
Ad

Similar to Drupal 8 DevOps . Profile and SQL flows. (20)

PDF
Modernize Your Drupal Development
Chris Tankersley
 
PDF
Devops For Drupal
Kris Buytaert
 
PDF
Drupal and Devops , the Survey Results
Kris Buytaert
 
PPT
icebreakerwithdevops-150218112943-conversion-gate02
Manohar Kumar
 
PDF
Code driven development in drupal
Andriy Yun
 
PDF
Drupal Continuous Integration and devops - Beyond Jenkins
Promet Source
 
PPTX
Ice breaker with dev ops
Mukta Aphale
 
PDF
Probo.ci Drupal 4 Gov Devops 1/2 day Presentation
Zivtech, LLC
 
PDF
CI workflow in a web studio
deWeb
 
ZIP
Staging and Deployment
heyrocker
 
ODP
Devops for drupal
Kris Buytaert
 
PDF
Automatisation in development and testing - within budget [IronCamp prague 20...
David Lukac
 
PPTX
What is dev ops?
Mukta Aphale
 
PDF
DevOps for Drupal: Why We Cook With Chef
Promet Source
 
PPTX
Adapting DevOps Culture for Software Developement and Distribution
ShahidAslam30
 
PPTX
InfrastructureDevOps.pptx it is most sui
pmishra37
 
PPTX
Manage Deployments with Install Profiles and Git
nhepner
 
PPTX
Тарас Кирилюк та Олена Пустовойт — CI workflow у веб-студії
LEDC 2016
 
PPTX
Data Engineer's Lunch #68: DevOps Fundamentals
Anant Corporation
 
PPTX
The Hard Problems of Continuous Deployment
Timothy Fitz
 
Modernize Your Drupal Development
Chris Tankersley
 
Devops For Drupal
Kris Buytaert
 
Drupal and Devops , the Survey Results
Kris Buytaert
 
icebreakerwithdevops-150218112943-conversion-gate02
Manohar Kumar
 
Code driven development in drupal
Andriy Yun
 
Drupal Continuous Integration and devops - Beyond Jenkins
Promet Source
 
Ice breaker with dev ops
Mukta Aphale
 
Probo.ci Drupal 4 Gov Devops 1/2 day Presentation
Zivtech, LLC
 
CI workflow in a web studio
deWeb
 
Staging and Deployment
heyrocker
 
Devops for drupal
Kris Buytaert
 
Automatisation in development and testing - within budget [IronCamp prague 20...
David Lukac
 
What is dev ops?
Mukta Aphale
 
DevOps for Drupal: Why We Cook With Chef
Promet Source
 
Adapting DevOps Culture for Software Developement and Distribution
ShahidAslam30
 
InfrastructureDevOps.pptx it is most sui
pmishra37
 
Manage Deployments with Install Profiles and Git
nhepner
 
Тарас Кирилюк та Олена Пустовойт — CI workflow у веб-студії
LEDC 2016
 
Data Engineer's Lunch #68: DevOps Fundamentals
Anant Corporation
 
The Hard Problems of Continuous Deployment
Timothy Fitz
 
Ad

More from Andrii Podanenko (18)

PDF
Глобальні навчальні дні друпал
Andrii Podanenko
 
PDF
Сейчас самое время...ЖИТЬ!
Andrii Podanenko
 
PDF
Drupal codesprint kyiv drupal cafe 07.02.2013
Andrii Podanenko
 
PDF
Do + ldo for developers(full)
Andrii Podanenko
 
PDF
Диалоговый интенсив 2012 карпаты
Andrii Podanenko
 
PDF
психолог в социальных медиа
Andrii Podanenko
 
PDF
Ubercart7 views catalog ru
Andrii Podanenko
 
PDF
Ubercart7 Dynamic properties ru
Andrii Podanenko
 
ODP
Ubercart 7 ru
Andrii Podanenko
 
PDF
Feeds drupal cafe
Andrii Podanenko
 
PDF
Drupal 7 database api
Andrii Podanenko
 
PDF
Yaremchuk - Drupal CodeLobster
Andrii Podanenko
 
PDF
Yaremchuk - Корпоративные сайты
Andrii Podanenko
 
PDF
управление проектами отношение к клиенту
Andrii Podanenko
 
PDF
Drupal Optimization
Andrii Podanenko
 
PDF
Друпал - стандартні модулі
Andrii Podanenko
 
PDF
Друпал Drush
Andrii Podanenko
 
PPT
Drupal Migrate
Andrii Podanenko
 
Глобальні навчальні дні друпал
Andrii Podanenko
 
Сейчас самое время...ЖИТЬ!
Andrii Podanenko
 
Drupal codesprint kyiv drupal cafe 07.02.2013
Andrii Podanenko
 
Do + ldo for developers(full)
Andrii Podanenko
 
Диалоговый интенсив 2012 карпаты
Andrii Podanenko
 
психолог в социальных медиа
Andrii Podanenko
 
Ubercart7 views catalog ru
Andrii Podanenko
 
Ubercart7 Dynamic properties ru
Andrii Podanenko
 
Ubercart 7 ru
Andrii Podanenko
 
Feeds drupal cafe
Andrii Podanenko
 
Drupal 7 database api
Andrii Podanenko
 
Yaremchuk - Drupal CodeLobster
Andrii Podanenko
 
Yaremchuk - Корпоративные сайты
Andrii Podanenko
 
управление проектами отношение к клиенту
Andrii Podanenko
 
Drupal Optimization
Andrii Podanenko
 
Друпал - стандартні модулі
Andrii Podanenko
 
Друпал Drush
Andrii Podanenko
 
Drupal Migrate
Andrii Podanenko
 

Recently uploaded (20)

PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 

Drupal 8 DevOps . Profile and SQL flows.

  • 1. Drupal 8 DevOps*. Profile and SQL flows. *DevOps is Development Operations Engineer. Takes care about how development process lives and whether it could be improved continuously.
  • 2. About a speaker Andrii Podanenko, FFW Team Lead, Software Architect, DevOps A bunch of contrib modules maintainer D.org power up group mentor UA Localization group manager. http://dgo.to/@podarok @podarok or @podarok_ua
  • 3. Technologies, touched within current session ● Drupal 8(7) ● CIBox (Jenkins, GitHub, Ansible, Virtual Machine) ● Drush, Drupal Console ● Vagrant, Virtualbox, linux containers (Docker style) ● LAMP (Linux, Apache, MySQL, PHP)
  • 4. The crucial point for the development is a... Speed of Delivery
  • 5. If you able to deliver a project for a small amount of time... you can become a winner in terms of marketing and sales
  • 6. If you could demo particular feature any time... you could give the customers thoughts they are controlling the process of developing the product
  • 7. If you could deploy features/fixes more frequently... you could let the customers think they can commit changes to their business easily through the product you are developing
  • 8. If you could provide specific features for UAT* any time... you could get decreased overall UAT time and saved tons of funds for pre launch testing *UAT - User Acceptance Testing
  • 9. If you could test every specific feature on a dedicated environment - feature build (ci build)... your QA could be happy which would make a customer happy as well *QA - Quality Assurance engineer
  • 10. If devs are involved into creating initial user-guides... delivery would be smoother and the client would faster start being more familiar and confident about product usage
  • 11. If your development process facilitates communication and collaboration between developers/team members... you'll create more powerful products in terms of architecture and stability
  • 12. If your process can't be broken by skipping quality rules... your team skills will grow faster and resulting quality won't be affected
  • 13. If your team members could improve development workflow... they'd become more responsible for approaching their tasks
  • 14. How it looks in practice
  • 15. Possible environments for Drupal development ● Local DEV (local developer’s desktop) ● Feature Build (CI server) * ● Static build environments (POC, long term testing feature) *optional ● Remote DEV (Accumulated environment for current master branch) *optional ● Staging (Showroom for a client and UAT) ● Production * Average project outgoings for having CI builds are ● 20-80 $/month hosting ● 35 hours of CI maintenance
  • 16. Possible Drupal 8 development flows 1. Profile - deployment is reinstall a project from scratch. Useful for: a. Initial project creation b. Develop API, library, module, installation suite(platform) c. Drupal.org module maintainer environment d. Develop unit/behat tests with demo content 2. SQL - deployment is fetch/keep SQL data from Live environment and run needed updates. Useful for: a. Content Managers need to prefill a database with a real content data b. Pre launch timeline, testing deployments with ability to keep database data between them c. Service Level Agreement period d. Legacy CMS(non-Drupal) projects e. Acceptance testing
  • 17. Profile flow how-to* - local/remote environment Using CIBox -> http://cibox.tools > git pull && vagrant up && sh reinstall.sh Or ansible-playbook reinstall.yml -i 'localhost,' -- connection=local Using drush -> http://drush.ws > git pull && drush site-install $profile_name $options Using drupal console -> http://drupalconsole.com > git pull && drupal site:install [arguments] [options] * Depends from project specifics but still - install a site takes from 30 seconds to 15 minutes. Best time is not more than 10 minutes.
  • 18. SQL flow how-to* - local environment Using CIBox -> http://cibox.tools > git pull && vagrant up && sh reinstall.sh Or ansible-playbook reinstall.yml -i 'localhost,' --connection=local Using drush -> http://drush.ws > git pull && drush sql-drop && drush sqlc < dump.sql && prepare settings.php && drush updb Using drupal console -> http://drupalconsole.com > git pull && drupal database:drop && drupal database:restore && prepare settings.php && drupal update: execute * Depends from project specifics but still - install a site takes from 3 to a lot of minutes. Best time is not more than 10 minutes.
  • 19. SQL flow how-to* - remote environment (DEV or STAGE) Using CIBox -> http://cibox.tools Using drush or drupal console, manual style... 1. Deploy the codebase 2. Import working database (It should be previously sanitized from client’s sensitive data) -> optional 3. Prepare settings.php -> optional 4. Run update database 5. Import configs if they weren’t imported by hook_update_N 6. Enable development options, modules * Depends from project specifics but still - install a site takes from 3 to any amount of minutes. Best time is not more than 10 minutes.
  • 20. SQL flow how-to* - creating feature branch dev builds Using CIBox -> http://cibox.tools 1. Create GitHub Pull Request(PR) with changes to be tested. 2. Prefill steps for review 3. Wait for the comment with a link to a dedicated site build. Under the hood: a. CI server gets codebase from PR into unique subfolder/subdomain within CI server vhost b. Run reinstall.sh with overridden variables for applying CI environment c. Run sniffers.sh and tests.sh for checking code quality
  • 21. Why is it helpful? e.g. CIBox stats... Projects for 1000+ hours deliver: ● local dev environment is a deploy ~4000 builds. ● CI builds - deploys. generate 2000+ builds. ● remote DEV - deploy as well. ~200 deploys/project ● Staging ~100 deploys ● Production ~50 deploys (~0.5% failed). Everything executed via reinstall.yml on all environments. Only environment variables differs in between. Average deploy run is 6 minutes. The most tested process for CI enabled flows is delivery.
  • 22. All delivery, devops scripts should be put into the project for team access/development.
  • 23. Steps for review -> User Guides
  • 27. To sum up: ● If delivery is an atomic operation - you can move and control development really fast ● Having virtualized environments helps you get rid of versions nightmare ● Getting builds for a features gives your team a powerful distributed network IDE ● Single Button Deploy makes it fast and easy to be executed by literally anyone ● Putting your automation scripts into the project’s codebase get’s your team a full control over delivery without sticking to one guy or department ● Having CI server gives you an ability to work remotely ● Manual code review makes your team more skilled and fluent about a project ● Steps for review make your QA/PM/BA and Product Owner as happy as they should be
  • 28. Welcome to attend codesprint 05 June 2016 At Sunday we are going to sprint about CI !!!! All we need is your brain B U I L D S Builds are everywhere!!!
  • 29. Thanks for your time and attention Andrii Podanenko FFW http://ffwagency.com CIBox http://cibox.tools Team Lead, Architect. http://dgo.to/@podarok Questions?