an introduction to docker & containers · 2020. 8. 18. · an introduction to docker &...
TRANSCRIPT
![Page 1: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/1.jpg)
© 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
![Page 2: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/2.jpg)
• 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
![Page 3: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/3.jpg)
• 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
![Page 4: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/4.jpg)
• 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
![Page 5: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/5.jpg)
Docker Concepts
Photo by Lucas van Oort on Unsplash
![Page 6: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/6.jpg)
• 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
![Page 7: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/7.jpg)
• 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
![Page 8: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/8.jpg)
• 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
![Page 9: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/9.jpg)
• 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)
![Page 10: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/10.jpg)
• 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
![Page 11: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/11.jpg)
• 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
![Page 12: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/12.jpg)
• 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
![Page 13: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/13.jpg)
• 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
![Page 14: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/14.jpg)
The Sitecore Docker Images Repository
Photo by Lucas van Oort on Unsplash
![Page 15: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/15.jpg)
• 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?
![Page 16: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/16.jpg)
• 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?
![Page 17: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/17.jpg)
• 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
![Page 18: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/18.jpg)
• 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
![Page 19: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/19.jpg)
• 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!
![Page 20: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/20.jpg)
• 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?
![Page 21: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/21.jpg)
• 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?
![Page 22: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/22.jpg)
Using Docker for Sitecore Development
Photo by CJ Dayrit on Unsplash
![Page 23: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/23.jpg)
• 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
![Page 24: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/24.jpg)
• 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
![Page 25: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/25.jpg)
• 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
![Page 26: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/26.jpg)
© 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
![Page 27: An Introduction to Docker & Containers · 2020. 8. 18. · An Introduction to Docker & Containers Rob Earlam April 2020 #sugcon Photo by chuttersnap on Unsplash • Please insert](https://reader033.vdocuments.mx/reader033/viewer/2022052814/609eacf4963a6516a11c60af/html5/thumbnails/27.jpg)
Thank you!
Photo by Daniel von Appen on Unsplash
robearlam.com
twitter.com/robearlam
linkedin.com/in/rob-earlam/
github.com/robearlam