SlideShare una empresa de Scribd logo
1 de 42
Descargar para leer sin conexión
DEPLOYER
Peter Niederlag
peter.niederlag@datenbetrieb.de
@jugglefish
TYPO3 deployments with
ease und fun // T3DD17
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
ME
Wtf?
2
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
PETER NIEDERLAG
●
open source and TYPO3 addict since
2000
●
self-employed
●
former member of server- and
certification-teams
●
console kid
●
start=$(date +%s.%N);for i in $(seq 100); do echo $i; curl -s
'http://master3.local.d4b6.de/?eID=f24api' > /dev/null; done; dur=$(echo "$
(date +%s.%N) - $start" | bc); printf "Execution time: %.6f seconds" $dur
●
passionate juggler und accordionist
(http://zoff.band)
3
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
AGENDA
4
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
AGENDA
5
1. Intro to deployment
2. Overview of Tools
3. Reasons for deployer
4. Installation
5. Concepts of deployer
6. Recipe Walk Through
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
DEPLOYMENT ?
6
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 7
DEPLOYMENT ?
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 8
SURVEY
WHO USES A
DEPLOYMENT TOOL ?
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 9
SURVEY
WHICH DEPLOYMENT
TOOL DO YOU USE?
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 10
SURVEY
WHERE DO YOU USE
DEPLOYMENT TOOL?
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
RATIONALE FOR
USING A
DEPLOYMENT
TOOL
11
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Rationale
 Lot’s of simple steps
 Reproducable
 Documentation
 Automation
 Less error prone
12
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
FAMOUS TOOLS
13
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Big Famous Deployment Tools
 TYPO3 Surf
 Capistrano
 Ansistrano
 Magallanes
 Deployer
 ...
14
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 15
SURVEY
THROW IN YOUR
FAVORITE
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 16
SHOUT LOUDER POLL ;)
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
DEPLOYER.ORG
17
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 18
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
NICE THINGS
ABOUT
DEPLOYER
19
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Arguments for deployer
 Fast
 Parallelism
 Simple
 Ease of Use
 Composer based
20
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Arguments for deployer
 Modularity
 Clean Code
 Test Coverage
 Active Development [3.x, 4.x, 5.x]
 Broad Acceptance in PHP-World
21
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
INSTALLATION
22
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Local Installation
# add dependency to composer.json
composer require deployer/deployer
# run deployer
./vendor/bin/dep
23
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Global Installation
# download
curl -LO https://deployer.org/deployer.phar
# move to local bin path
mv deployer.phar /usr/local/bin/dep
# make executable
chmod +x /usr/local/bin/dep
24
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
BASIC CONCEPTS
25
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
RECIPE
26
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
A Recipe
 Is a definition for a deployment
process
 Can be split across multiple files
 Consists of settings and tasks
27
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
deploy.php
 By default deployer will look for the
recipe in the file ‘deploy.php’
28
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Common and community
recipes
 Bunch of common recipes and tasks
shipped with deployer (symfony,
typo3, ...)
 Bunch of additional recipes and
tasks in package deployer/recipes
29
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
FUNCTIONS
30
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Functions in namespace deployer
[5.x/master!!!!]
 set() // set variable
 get() // get variable
 host() // define host
 run() // execute process on host
 write() // write to stdout
 task() // define a task (run, write, ...)
31
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
CONFIGURATION
32
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Settings
set('repository', 'https://git.typo3.org/Packages/TYPO3.CMS');
get(‘repository’);
// look ahead
// interpolation inside run()
// run(‘git checkout {{repository}}’);
33
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
HOSTS
34
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Hosts
35
host('domain.com')
->hostname(‘foo.domain.com’)
->stage('production')
->set('deploy_path', '~/app');
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Inventory
36
inventory('hosts.yml');
domain.com:
hostname: domain.com
user: name
port: 22
configFile: ~/.ssh/config
stage: production
deploy_path: ~/app
extra_param: "foo {{hostname}}"
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
RUN
37
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Settings
write(‘saying hello’);
$output = run('hostname -f')->output();
write(‘saying hello on “‘ . $output ‘”’);
38
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
RECIPE
WALKTHROUGH
39
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Demo Time
 installation
 dep init
40
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
Demo Time
 explain “our” recipe
41
2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun
THANK YOU!
Thx to @bitmotion_de for engaging me
Thx to all the wonderfull sharing in TYPO3
community
Join in on t3summer.io :->
42

Más contenido relacionado

La actualidad más candente

Bfg Ploneconf Oct2008
Bfg Ploneconf Oct2008Bfg Ploneconf Oct2008
Bfg Ploneconf Oct2008
Jeffrey Clark
 
Native Containers on Windows 10 using Docker – a game changer for developers
Native Containers on Windows 10 using Docker – a game changer for developersNative Containers on Windows 10 using Docker – a game changer for developers
Native Containers on Windows 10 using Docker – a game changer for developers
Jorge Arteiro
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with Composer
Jason Grimes
 

La actualidad más candente (19)

Bfg Ploneconf Oct2008
Bfg Ploneconf Oct2008Bfg Ploneconf Oct2008
Bfg Ploneconf Oct2008
 
Drupal Development Tips
Drupal Development TipsDrupal Development Tips
Drupal Development Tips
 
Native Containers on Windows 10 using Docker – a game changer for developers
Native Containers on Windows 10 using Docker – a game changer for developersNative Containers on Windows 10 using Docker – a game changer for developers
Native Containers on Windows 10 using Docker – a game changer for developers
 
나도 할 수 있다 오픈소스
나도 할 수 있다 오픈소스나도 할 수 있다 오픈소스
나도 할 수 있다 오픈소스
 
Python Projects at Neova
Python Projects at NeovaPython Projects at Neova
Python Projects at Neova
 
Python Flask app deployed to OPenShift using Wercker CI
Python Flask app deployed to OPenShift using Wercker CIPython Flask app deployed to OPenShift using Wercker CI
Python Flask app deployed to OPenShift using Wercker CI
 
Stupid Buildout Tricks
Stupid Buildout TricksStupid Buildout Tricks
Stupid Buildout Tricks
 
Adventures in infrastructure as code
Adventures in infrastructure as codeAdventures in infrastructure as code
Adventures in infrastructure as code
 
Git cheat-sheet
Git cheat-sheetGit cheat-sheet
Git cheat-sheet
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with Composer
 
Vagrant move over, here is Docker
Vagrant move over, here is DockerVagrant move over, here is Docker
Vagrant move over, here is Docker
 
Drupal + composer = new love !?
Drupal + composer = new love !?Drupal + composer = new love !?
Drupal + composer = new love !?
 
Essential Git and Github commands
Essential Git and Github commandsEssential Git and Github commands
Essential Git and Github commands
 
Efficient development workflows with composer
Efficient development workflows with composerEfficient development workflows with composer
Efficient development workflows with composer
 
Docker, Ansible and Symfony micro-kernel
Docker, Ansible and Symfony micro-kernelDocker, Ansible and Symfony micro-kernel
Docker, Ansible and Symfony micro-kernel
 
Composer the right way - SunshinePHP
Composer the right way - SunshinePHPComposer the right way - SunshinePHP
Composer the right way - SunshinePHP
 
Composer - Package Management for PHP. Silver Bullet?
Composer - Package Management for PHP. Silver Bullet?Composer - Package Management for PHP. Silver Bullet?
Composer - Package Management for PHP. Silver Bullet?
 
Composer & Drupal
Composer & DrupalComposer & Drupal
Composer & Drupal
 

Similar a deployer, deployment for TYPO3 CMS with ease and fun

Tools of the CPAN Ninja
Tools of the CPAN NinjaTools of the CPAN Ninja
Tools of the CPAN Ninja
Aran Deltac
 
6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier
balaji29
 

Similar a deployer, deployment for TYPO3 CMS with ease and fun (20)

georchestra SDI: Project Status Report
georchestra SDI: Project Status Reportgeorchestra SDI: Project Status Report
georchestra SDI: Project Status Report
 
vBACD - Introduction to Opscode Chef - 2/29
vBACD - Introduction to Opscode Chef - 2/29vBACD - Introduction to Opscode Chef - 2/29
vBACD - Introduction to Opscode Chef - 2/29
 
FluentMigrator - Dayton .NET - July 2023
FluentMigrator - Dayton .NET - July 2023FluentMigrator - Dayton .NET - July 2023
FluentMigrator - Dayton .NET - July 2023
 
Dev-Jam 2019 - Developing & Contributing to OpenNMS
Dev-Jam 2019 - Developing & Contributing to OpenNMSDev-Jam 2019 - Developing & Contributing to OpenNMS
Dev-Jam 2019 - Developing & Contributing to OpenNMS
 
Tools of the CPAN Ninja
Tools of the CPAN NinjaTools of the CPAN Ninja
Tools of the CPAN Ninja
 
How to deploy and scale your meteor apps
How to deploy and scale your meteor appsHow to deploy and scale your meteor apps
How to deploy and scale your meteor apps
 
Odoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenvOdoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenv
 
Chicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - MediaflyChicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - Mediafly
 
Modern Release Engineering in a Nutshell - Why Researchers should Care!
Modern Release Engineering in a Nutshell - Why Researchers should Care!Modern Release Engineering in a Nutshell - Why Researchers should Care!
Modern Release Engineering in a Nutshell - Why Researchers should Care!
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
What's new in TYPO3 6.2 LTS - #certiFUNcation Alumni Event 05.06.2015
What's new in TYPO3 6.2 LTS - #certiFUNcation Alumni Event 05.06.2015What's new in TYPO3 6.2 LTS - #certiFUNcation Alumni Event 05.06.2015
What's new in TYPO3 6.2 LTS - #certiFUNcation Alumni Event 05.06.2015
 
Infrastructure as Software - PuppetConf 2014
Infrastructure as Software - PuppetConf 2014Infrastructure as Software - PuppetConf 2014
Infrastructure as Software - PuppetConf 2014
 
Terrific Composer Workshop
Terrific Composer WorkshopTerrific Composer Workshop
Terrific Composer Workshop
 
Open source projects with python
Open source projects with pythonOpen source projects with python
Open source projects with python
 
CMake best practices
CMake best practicesCMake best practices
CMake best practices
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devices
 
GIT training - advanced for software projects
GIT training - advanced for software projectsGIT training - advanced for software projects
GIT training - advanced for software projects
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
 
sauber92's Potfolio (ver.2012~2017)
sauber92's Potfolio (ver.2012~2017)sauber92's Potfolio (ver.2012~2017)
sauber92's Potfolio (ver.2012~2017)
 
6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier
 

Último

一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理
一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理
一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理
Fir
 
原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样
原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样
原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样
gfhdsfr
 
一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书
A
 
一比一原版布兰迪斯大学毕业证如何办理
一比一原版布兰迪斯大学毕业证如何办理一比一原版布兰迪斯大学毕业证如何办理
一比一原版布兰迪斯大学毕业证如何办理
A
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
ChloeMeadows1
 
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
rgdasda
 
一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书
一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书
一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书
B
 
一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书
一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书
一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书
gfhdsfr
 
一比一定制加州大学欧文分校毕业证学位证书
一比一定制加州大学欧文分校毕业证学位证书一比一定制加州大学欧文分校毕业证学位证书
一比一定制加州大学欧文分校毕业证学位证书
A
 
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
egfdgfd
 
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
Fi
 
一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理
一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理
一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理
gfhdsfr
 
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
asdafd
 

Último (20)

一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理
一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理
一比一原版(TRU毕业证书)温哥华社区学院毕业证如何办理
 
Free scottie t shirts Free scottie t shirts
Free scottie t shirts Free scottie t shirtsFree scottie t shirts Free scottie t shirts
Free scottie t shirts Free scottie t shirts
 
原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样
原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样
原版定制(爱大毕业证书)英国爱丁堡大学毕业证原件一模一样
 
一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书一比一定制波士顿学院毕业证学位证书
一比一定制波士顿学院毕业证学位证书
 
AI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model GeneratorAI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model Generator
 
一比一原版布兰迪斯大学毕业证如何办理
一比一原版布兰迪斯大学毕业证如何办理一比一原版布兰迪斯大学毕业证如何办理
一比一原版布兰迪斯大学毕业证如何办理
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
 
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
一比一定制(OSU毕业证书)美国俄亥俄州立大学毕业证学位证书
 
Free on Wednesdays T Shirts Free on Wednesdays Sweatshirts
Free on Wednesdays T Shirts Free on Wednesdays SweatshirtsFree on Wednesdays T Shirts Free on Wednesdays Sweatshirts
Free on Wednesdays T Shirts Free on Wednesdays Sweatshirts
 
一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书
一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书
一比一定制(Temasek毕业证书)新加坡淡马锡理工学院毕业证学位证书
 
一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书
一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书
一比一定制(Dundee毕业证书)英国邓迪大学毕业证学位证书
 
一比一定制加州大学欧文分校毕业证学位证书
一比一定制加州大学欧文分校毕业证学位证书一比一定制加州大学欧文分校毕业证学位证书
一比一定制加州大学欧文分校毕业证学位证书
 
Reggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirts
 
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(UofT毕业证书)如何办理
 
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
一比一原版(Soton毕业证书)南安普顿大学毕业证原件一模一样
 
GOOGLE Io 2024 At takes center stage.pdf
GOOGLE Io 2024 At takes center stage.pdfGOOGLE Io 2024 At takes center stage.pdf
GOOGLE Io 2024 At takes center stage.pdf
 
一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理
一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理
一比一原版(Cranfield毕业证书)英国克兰菲尔德大学毕业证如何办理
 
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWebiThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
 
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
原版定制(Management毕业证书)新加坡管理大学毕业证原件一模一样
 
The Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdfThe Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdf
 

deployer, deployment for TYPO3 CMS with ease and fun

  • 2. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun ME Wtf? 2
  • 3. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun PETER NIEDERLAG ● open source and TYPO3 addict since 2000 ● self-employed ● former member of server- and certification-teams ● console kid ● start=$(date +%s.%N);for i in $(seq 100); do echo $i; curl -s 'http://master3.local.d4b6.de/?eID=f24api' > /dev/null; done; dur=$(echo "$ (date +%s.%N) - $start" | bc); printf "Execution time: %.6f seconds" $dur ● passionate juggler und accordionist (http://zoff.band) 3
  • 4. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun AGENDA 4
  • 5. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun AGENDA 5 1. Intro to deployment 2. Overview of Tools 3. Reasons for deployer 4. Installation 5. Concepts of deployer 6. Recipe Walk Through
  • 6. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun DEPLOYMENT ? 6
  • 7. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 7 DEPLOYMENT ?
  • 8. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 8 SURVEY WHO USES A DEPLOYMENT TOOL ?
  • 9. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 9 SURVEY WHICH DEPLOYMENT TOOL DO YOU USE?
  • 10. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 10 SURVEY WHERE DO YOU USE DEPLOYMENT TOOL?
  • 11. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun RATIONALE FOR USING A DEPLOYMENT TOOL 11
  • 12. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Rationale  Lot’s of simple steps  Reproducable  Documentation  Automation  Less error prone 12
  • 13. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun FAMOUS TOOLS 13
  • 14. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Big Famous Deployment Tools  TYPO3 Surf  Capistrano  Ansistrano  Magallanes  Deployer  ... 14
  • 15. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 15 SURVEY THROW IN YOUR FAVORITE
  • 16. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 16 SHOUT LOUDER POLL ;)
  • 17. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun DEPLOYER.ORG 17
  • 18. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun 18
  • 19. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun NICE THINGS ABOUT DEPLOYER 19
  • 20. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Arguments for deployer  Fast  Parallelism  Simple  Ease of Use  Composer based 20
  • 21. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Arguments for deployer  Modularity  Clean Code  Test Coverage  Active Development [3.x, 4.x, 5.x]  Broad Acceptance in PHP-World 21
  • 22. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun INSTALLATION 22
  • 23. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Local Installation # add dependency to composer.json composer require deployer/deployer # run deployer ./vendor/bin/dep 23
  • 24. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Global Installation # download curl -LO https://deployer.org/deployer.phar # move to local bin path mv deployer.phar /usr/local/bin/dep # make executable chmod +x /usr/local/bin/dep 24
  • 25. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun BASIC CONCEPTS 25
  • 26. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun RECIPE 26
  • 27. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun A Recipe  Is a definition for a deployment process  Can be split across multiple files  Consists of settings and tasks 27
  • 28. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun deploy.php  By default deployer will look for the recipe in the file ‘deploy.php’ 28
  • 29. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Common and community recipes  Bunch of common recipes and tasks shipped with deployer (symfony, typo3, ...)  Bunch of additional recipes and tasks in package deployer/recipes 29
  • 30. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun FUNCTIONS 30
  • 31. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Functions in namespace deployer [5.x/master!!!!]  set() // set variable  get() // get variable  host() // define host  run() // execute process on host  write() // write to stdout  task() // define a task (run, write, ...) 31
  • 32. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun CONFIGURATION 32
  • 33. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Settings set('repository', 'https://git.typo3.org/Packages/TYPO3.CMS'); get(‘repository’); // look ahead // interpolation inside run() // run(‘git checkout {{repository}}’); 33
  • 34. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun HOSTS 34
  • 35. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Hosts 35 host('domain.com') ->hostname(‘foo.domain.com’) ->stage('production') ->set('deploy_path', '~/app');
  • 36. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Inventory 36 inventory('hosts.yml'); domain.com: hostname: domain.com user: name port: 22 configFile: ~/.ssh/config stage: production deploy_path: ~/app extra_param: "foo {{hostname}}"
  • 37. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun RUN 37
  • 38. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Settings write(‘saying hello’); $output = run('hostname -f')->output(); write(‘saying hello on “‘ . $output ‘”’); 38
  • 39. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun RECIPE WALKTHROUGH 39
  • 40. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Demo Time  installation  dep init 40
  • 41. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun Demo Time  explain “our” recipe 41
  • 42. 2017/07/14 // T3DD17 Deployer, TYPO3 CMS deployments with ease und fun THANK YOU! Thx to @bitmotion_de for engaging me Thx to all the wonderfull sharing in TYPO3 community Join in on t3summer.io :-> 42