View
16
Download
0
Category
Preview:
Citation preview
© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved.
An Introduction to Docker & ContainersRob Earlam
April 2020
#sugcon
Photo by chuttersnap on Unsplash
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Donate
https://virtual.sugcon.events/Donate
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Rob Earlam
robearlam.com
twitter.com/robearlam
linkedin.com/in/rob-earlam/
github.com/robearlam
Sitecore Technical Evangelist
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
• Docker Concepts
• Sitecore Docker Image Repository
• Using Docker for Development
Agenda
Docker Concepts
Photo by Lucas van Oort on Unsplash
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Common Issues
Upgrades Environments Operating Systems
Dependencies Deployments
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Containers to the rescue!
Container
Application
Dependencies / Libraries
Configuration
Other requirements
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Virtual Machines vs Containers
Infrastructure
Host Operating System
Hypervisor
Virtual Machine
Guest Operating
System
Application
Co
nta
iner
Virtual Machine
Guest Operating
System
Application
Virtual Machine
Guest Operating
System
Application
Host Operating System
Docker Daemon
Co
nta
iner
Co
nta
iner
Co
nta
iner
Co
nta
iner
Co
nta
iner
Infrastructure
Virtual Machines Containers
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
What’s inside an Image?
Sitecore XP
4.8-windowsservercore-ltsc2019
Sitecore Experience Platform (XP)
Sitecore XP + SPE
4.8-windowsservercore-ltsc2019
Sitecore Experience Platform (XP)
Sitecore PowerShell Extensions (SPE)
SPE + SXA
4.8-windowsservercore-ltsc2019
Sitecore Experience Platform (XP)
Sitecore PowerShell Extensions (SPE)
Sitecore Experience Accelerator (SXA)
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Registries
Docker Hub
Docker Daemon
Local Registry
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Docker Daemon
Local Registry
Images, Containers & Registries
Containers
Docker Hub
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Volumes
Docker Daemon
Containers
Local Registry
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Networking
Docker Daemon
Containers
Local Registry
Network
The Sitecore Docker Images Repository
Photo by Lucas van Oort on Unsplash
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
What is the Docker-Images repository?
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Build.ps1• [Mandatory] SitecoreUsername
• [Mandatory] SitecorePassword
• [Optional] SitecoreVersion
• [Optional] Topology
• [Optional] WindowsVersion
• [Optional] IncludeSpe
• [Optional] IncludeSxa
• [Optional] IncludeJss
• [Optional] SkipExistingImage
• [Optional] IncludeExperimental
• [Optional] Registry
How to build the Images?
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Legend
What Images are built?
aspnet:4.8-windowsservercore-ltsc2019
XM CM XM CD XP Standalone XP CD
XP
Iden
tity
XP
XC
on
nec
t
XC
Biz
FX
XC
En
gin
e A
uth
ori
ng
XC
En
gin
e M
inio
ns
XC
En
gin
e O
ps
XC
En
gin
e Sh
op
s
XM
JSS
CM
XM
SP
E C
MX
M S
XA
CM
XM
SX
A J
SSS
CM
XM
JSS
CD
XM
SX
A C
DX
M S
XA
JSS
C
D
XP
SP
E St
and
alo
ne
XP
SX
A
Stan
dal
on
eX
P S
XA
JSS
St
and
alo
ne
XC
St
and
alo
ne
XC
SP
E St
and
alo
ne
XC
SX
A
Stan
dal
on
e
XC
SX
A
Sto
refr
on
t St
and
alo
ne
XP
JSS
St
and
alo
ne
XC
Iden
tity
XC
XC
on
nec
t
XC
CD
XP
SX
A C
D
XP
JSS
CD
XC
SP
E C
DX
C S
XA
CD
XC
SX
A
Sto
refr
on
t C
D
XC
SX
A J
SS C
D
Sitecore Experience Manager (XM)
Sitecore Experience Platform (XP)
Sitecore Experience Commerce (XC)
Sitecore PowerShell Extensions (SPE)
Sitecore Experience Accelerator (SXA)
Sitecore JavaScript Services (JSS)
Sitecore SXA & JSS Sitecore SXA Storefront
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Entrypoints
DevelopmentProduction
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
How to use the images?
• Docker-Compose pulls groups of
containers into complete systems
• 22+ examples for 9.3 in the repo.
• XM, XP & XC examples
• SPE, SXA, JSS examples and more!
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
How to work in a dev team?
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
How to work in a dev team?
Using Docker for Sitecore Development
Photo by CJ Dayrit on Unsplash
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
What do we need?
Custom docker-compose (XP & SXA)
Visual Studio Solution
TDS Serialisation
GitHub Repository
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Legend
aspnet:4.8-windowsservercore-ltsc2019
XP XConnect
Sitecore Experience Platform (XP)
mssql-developer:2017-windowsservercore-ltsc2019
runtime:4.8-windowsservercore-ltsc2019
XP XConnect Index Worker
XP XConnect Processing
Engine
XP XConnect Automation
Engine
sitecore-openjdk:8-nanoserver-ltsc2019
Base Image
Sitecore Experience Accelerator (SXA)
XP SXA Standalone
XP SXA CD
XP SXA SqlDev
XP SXA Solr
Architecture
• Please insert a background image that suits your presentation,
or leave it empty.© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved. @RobEarlam
Links
Videos:• Docker – A Quick Introduction
https://www.youtube.com/watch?v=RMYGVOswIKk• Sitecore Docker Images Repo
https://www.youtube.com/watch?v=cA1CMdwrNVU
Github• Sitecore Docker Images Repo
https://github.com/Sitecore/docker-images• This Repo
https://github.com/robearlam/Getting-Started-With-Docker-and-Containers
© 2020 Sitecore User Group Conference Global and its respective speakers. All rights reserved.
I am a proud community member! Please contact me on the following handles:
sitecorechat.slack.com twitter
Questions?
Rob Earlam @RobEarlam
Photo by Vidar Nordli-Mathisen on Unsplash
Thank you!
Photo by Daniel von Appen on Unsplash
robearlam.com
twitter.com/robearlam
linkedin.com/in/rob-earlam/
github.com/robearlam
Recommended