The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a...
Transcript of The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a...
![Page 1: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/1.jpg)
THE ROAD TO CONTINUOUS DEPLOYMENT - A CASE STUDY
MICHIEL ROOK
@michieltcs
![Page 2: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/2.jpg)
▸ Developer, consultant, trainer, speaker
▸ @michieltcs
![Page 3: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/3.jpg)
![Page 4: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/4.jpg)
@michieltcs
![Page 5: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/5.jpg)
@michieltcs
Large aging monolith
![Page 6: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/6.jpg)
@michieltcs
Large aging monolith
Generates income
![Page 7: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/7.jpg)
@michieltcs
Large aging monolith
Slow & complex
Generates income
![Page 8: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/8.jpg)
@michieltcs
Large aging monolith
Slow & complex
Generates incomeTechnical debt
![Page 9: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/9.jpg)
FRONTEND
MYSQL DB
BACKEND
LOAD BALANCERS / VARNISH
ITBANEN INTERMEDIAIR NATIONALEVACATUREBANK
FRONTEND FRONTENDFRONTEND
BACKEND BACKEND BACKEND
MEMCACHE FTP EXT. SERVICES
SOLR
@michieltcs
![Page 10: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/10.jpg)
@michieltcs
![Page 11: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/11.jpg)
@michieltcs
Manual releases
![Page 12: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/12.jpg)
@michieltcs
Manual releases
Fragile tests
![Page 13: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/13.jpg)
@michieltcs
Manual releases
Frequent issues
Fragile tests
![Page 14: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/14.jpg)
@michieltcs
Manual releases
Frequent issues
Fragile testsLow velocity
![Page 15: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/15.jpg)
GOALS
@michieltcs
![Page 16: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/16.jpg)
GOALS
@michieltcs
REDUCEISSUES
1
![Page 17: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/17.jpg)
GOALS
@michieltcs
REDUCEISSUES
REDUCELEAD TIME
1 2
![Page 18: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/18.jpg)
GOALS
@michieltcs
REDUCEISSUES
REDUCELEAD TIME
INCREASE PRODUCTIVITY
1 2 3
![Page 19: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/19.jpg)
GOALS
@michieltcs
REDUCEISSUES
REDUCELEAD TIME
INCREASE PRODUCTIVITY
INCREASE MOTIVATION
1 2 3 4
![Page 20: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/20.jpg)
REFACTOR? REBUILD?
![Page 21: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/21.jpg)
APPROACH
▸ API first
▸ Services per domain object (job, jobseeker, ...)
▸ Migrate individual pages
@michieltcs
![Page 22: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/22.jpg)
ORIGINAL MONOLITH
DB
@michieltcs
![Page 23: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/23.jpg)
ORIGINAL MONOLITH
PROXY
SERVICEORIGINAL MONOLITH
DB
DBDB
@michieltcs
![Page 24: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/24.jpg)
ORIGINAL MONOLITH
PROXY
SERVICEORIGINAL MONOLITH
ORIGINAL MONOLITH
SERVICE SERVICE
SERVICE
PROXY
DB
DBDB
DB
DB DB
@michieltcs
![Page 25: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/25.jpg)
PROXY
@michieltcs
RewriteEngine On
# Serve feature from new service for internal network RewriteCond expr "%{HTTP:X-FORWARDED-FOR} -ipmatch '192.168.0.0/24'" RewriteRule ^/feature/(.*)$ ${NEW_SERVICE_URL}/$1 [P,L]
# Proxy everything else to legacy application RewriteRule ^/(.*) ${LEGACY_URL}/$1 [P] ProxyPassReverse / ${LEGACY_URL}/
![Page 26: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/26.jpg)
ARCHITECTURE
@michieltcs
FRONTENDS ARE SERVICES
![Page 27: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/27.jpg)
ARCHITECTURE
@michieltcs
FRONTENDS ARE SERVICES
SERVICES BEHIND LOAD BALANCERS
![Page 28: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/28.jpg)
ARCHITECTURE
@michieltcs
FRONTENDS ARE SERVICES
SERVICES BEHIND LOAD BALANCERS
ACCESS LEGACY DB'S
![Page 29: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/29.jpg)
ARCHITECTURE
@michieltcs
FRONTENDS ARE SERVICES
SERVICES BEHIND LOAD BALANCERS
ACCESS LEGACY DB'S
SERVICES IN CONTAINERS
![Page 30: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/30.jpg)
LEGACY
ELASTIC SEARCH
DB
JOB SERVICE
RMQ
ITBANEN INTERMEDIAIR NATIONALEVACATUREBANK
MONGO DB
ITBANEN
JOBSEEKER SERVICE
NVBINTERMEDIAIR
@michieltcs
![Page 31: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/31.jpg)
PROCESS
![Page 32: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/32.jpg)
CONTINUOUS EVERYTHING
![Page 33: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/33.jpg)
CD?
![Page 34: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/34.jpg)
DEV BUILD / TEST
CONTINUOUS INTEGRATION
@michieltcs
![Page 35: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/35.jpg)
DEV BUILD / TEST ACCEPTANCE PRODUCTION
CONTINUOUS DELIVERY
@michieltcs
![Page 36: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/36.jpg)
DEV BUILD / TEST STAGING / ACCEPTANCE PRODUCTION
CONTINUOUS DEPLOYMENT
@michieltcs
![Page 37: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/37.jpg)
@michieltcs
SMALL STEPS
![Page 38: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/38.jpg)
@michieltcs
SMALL STEPS EARLY FEEDBACK
![Page 39: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/39.jpg)
@michieltcs
SMALL STEPS EARLY FEEDBACK
REDUCE TIME TO RECOVER
![Page 40: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/40.jpg)
@michieltcs
SMALL STEPS
EXPERIMENTS!
EARLY FEEDBACK
REDUCE TIME TO RECOVER
![Page 41: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/41.jpg)
@michieltcs
![Page 42: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/42.jpg)
EVERY COMMIT GOES TO PRODUCTION
![Page 43: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/43.jpg)
ONLY COMMIT TO MASTER
![Page 44: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/44.jpg)
NO BRANCHES
![Page 45: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/45.jpg)
NO BRANCHES
REALLY.
![Page 46: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/46.jpg)
![Page 47: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/47.jpg)
![Page 48: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/48.jpg)
PAIR PROGRAMMING
![Page 49: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/49.jpg)
FOCUS ON VALUE
![Page 50: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/50.jpg)
FEATURE TOGGLES, A/B TESTS
@michieltcs
![Page 51: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/51.jpg)
BOY SCOUT RULE
![Page 52: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/52.jpg)
GATES
![Page 53: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/53.jpg)
100% CODE COVERAGE *
![Page 54: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/54.jpg)
DEVOPS
![Page 55: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/55.jpg)
MONITORING
![Page 56: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/56.jpg)
![Page 57: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/57.jpg)
![Page 58: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/58.jpg)
BUILDPIPELINE
![Page 59: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/59.jpg)
AUTOMATE REPEATABLE THINGS
![Page 60: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/60.jpg)
CONTINUOUS TESTING
![Page 61: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/61.jpg)
DEFENSE IN DEPTH
UNIT TESTS
INTEGRATIONTESTS
ACCEPTANCETESTS
UI TESTS
@michieltcs
![Page 62: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/62.jpg)
DEFENSE IN DEPTH
UNIT TESTS
INTEGRATIONTESTS
ACCEPTANCE
UI TESTS
@Test public void jobCannotBeFound() { when(jobRepository.getById(EXPECTED_JOB_ID)) .thenReturn(null); JobService jobService = new JobService(jobRepository); assertNull(jobService.getById(EXPECTED_JOB_ID)); verify(jobRepository).getById(EXPECTED_JOB_ID); }
@michieltcs
![Page 63: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/63.jpg)
DEFENSE IN DEPTH
UNIT TESTS
INTEGRATIONTESTS
ACCEPTANCETESTS
UI TESTS
@Test public void shouldFindJob() { expectedJob = loadFixture('active_job.yml'); actualJob = repository.getById(expectedJob.getId()); assertThat(actualJob, isA(Job.class)); assertEquals(expectedJob.getId(), actualJob.getId()); }
@michieltcs
![Page 64: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/64.jpg)
DEFENSE IN DEPTH
UNIT TESTS
INTEGRATIONTESTS
ACCEPTANCETESTS
UI TESTSScenario: Link to related job Given a job exists And there are related jobs available When that job is viewed Then a list of related jobs is shown And each related job links to the detail page of the related job
@michieltcs
![Page 65: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/65.jpg)
DEFENSE IN DEPTH
UNIT TESTS
INTEGRATIONTESTS
ACCEPTANCETESTS
UI TESTS
@michieltcs
![Page 66: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/66.jpg)
DEFENSE IN DEPTH
TESTER?
UNIT TESTS
INTEGRATIONTESTS
ACCEPTANCETESTS
UI
@michieltcs
![Page 67: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/67.jpg)
![Page 68: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/68.jpg)
CONTINUOUS TESTING
UNIT TESTS
INTEGRATION TESTS
ACCEPTANCE TESTS
UI TESTS
SMOKETESTS
Cost Speed
Exploratorytesting Monitoring
@michieltcs
![Page 69: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/69.jpg)
PIPELINE AS CODEnode { stage('Run tests') { sh "phpunit" sh "behat" } stage('Build docker image') { sh "docker build -t jobservice:${env.BUILD_NUMBER} ." sh "docker push jobservice:${env.BUILD_NUMBER}" } stage('Deploy staging') { sh "ansible-playbook -e BUILD=${env.BUILD_NUMBER} -i staging deploy.yml" } stage('Deploy production') { sh "ansible-playbook -e BUILD=${env.BUILD_NUMBER} -i prod deploy.yml" } }
@michieltcs
![Page 70: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/70.jpg)
DEPLOYING: ROLLING UPDATE
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
@michieltcs
![Page 71: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/71.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
docker pull
@michieltcs
![Page 72: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/72.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
docker run
@michieltcs
![Page 73: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/73.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
wait_for: port=8080 delay=5 timeout=15
@michieltcs
![Page 74: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/74.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
uri: url: http://localhost:8080/health status_code: 200 timeout: 30
@michieltcs
![Page 75: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/75.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
service: name=haproxy state=reloaded
@michieltcs
![Page 76: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/76.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
service: name=haproxy state=reloaded
@michieltcs
![Page 77: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/77.jpg)
DEPLOYING
PULL IMAGE
START NEW CONTAINER
WAIT FOR PORT
SMOKE TESTS / HEALTH CHECKS
ADD NEW CONTAINER TO LB
REMOVE OLD CONTAINER FROM LB
STOP OLD CONTAINER
docker stop
docker rm
@michieltcs
![Page 78: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/78.jpg)
BUILD PIPELINE
@michieltcs
![Page 79: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/79.jpg)
FEEDBACK!
![Page 80: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/80.jpg)
RESULTS
![Page 81: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/81.jpg)
Build per service
< 10 min.
1 4
@michieltcs
![Page 82: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/82.jpg)
Build per service
< 10 min.
1
50+ deploys per day
2
@michieltcs
![Page 83: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/83.jpg)
Build per service
< 10 min.
1
50+ deploys per day
Reduced number of
issues
2 3
@michieltcs
![Page 84: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/84.jpg)
Build per service
< 10 min.
1
50+ deploys per day
Reduced number of
issues
Improved page load
times
2 3 4
@michieltcs
![Page 85: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/85.jpg)
Improved metrics & audience statistics
5
@michieltcs
![Page 86: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/86.jpg)
Improved metrics & audience statistics
5
Learning new
technology
6
@michieltcs
![Page 87: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/87.jpg)
Improved metrics & audience statistics
5
Learning new
technology
Increased confidence, velocity &
fun
6 7
@michieltcs
![Page 88: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/88.jpg)
Team acceptance
@michieltcs
![Page 89: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/89.jpg)
Team acceptance
New technology
@michieltcs
![Page 90: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/90.jpg)
Team acceptance
New technology
Docker stability
@michieltcs
![Page 91: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/91.jpg)
Team acceptance
New technology
Docker stability
Pipeline stability
@michieltcs
![Page 92: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/92.jpg)
Feature toggle cap
@michieltcs
![Page 93: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/93.jpg)
Feature toggle cap
Business alignment
@michieltcs
![Page 94: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/94.jpg)
Feature toggle cap
Business alignment
Focus on replacing legacy
@michieltcs
![Page 96: The road to continuous deployment (V4:Jax) · 2018-06-21 · the road to continuous deployment - a case study michiel rook @michieltcs ... containers. legacy elastic search db job](https://reader034.fdocuments.net/reader034/viewer/2022050602/5fa9c34c0d27c0027555af57/html5/thumbnails/96.jpg)
Reduce cycle times. React faster to the market and test product ideas. Make things!
We make Agile, DevOps and
Continuous Delivery accessible!
Hands-on, results-oriented approach to
get you where you need to be.
Modern infrastructure and
pipelines in minutes.