SlideShare a Scribd company logo
.docker : how to deploy Digital Experience
in a container drinking a cup of coffee
Matteo Bisi – Andrea Fontana
About us
2
• Matteo Bisi – System Engineer
• IBM Champion Social Business 2014,15, 16
• Blogger – www.msbiro.net, blog.msbiro.net
• Social: @mbisi78
https://it.linkedin.com/in/matteobisi
matteo.bisi@factor-y.com
About us
3
• Andrea Fontana – CTO
• IBM Champion Social Business 2015,16
• IBM Champion for WebSphere 2012,13,14
• IBM Advocate since 2012
• Blogger – razioni-k.net2action.com
• Social: @net2action
https://it.linkedin.com/in/afontana
a.fontana@sowre.com
SAP DEVELOPER
BUSINESS PARTNER
Docker + IBM Social Software
What and why
4
Docker
• Docker is an open platform for developing, shipping, and running applications.
• Docker is designed to deliver your applications faster.
• With Docker you can separate your applications from your infrastructure and treat your
infrastructure like a managed application.
5
Docker and containers in a few slides
Docker is a way to “package” your software in an
image:
 File system
 System security (user/groups) & settings
 TCP Network (ports that needs to be
reachable)
 Image inheritance is possible (incremental
specialization)
Docker is a way to “ship & run” your software to
other systems:
• Start an “image” to get a container where your
software runs
• Manage containers (start/stop/control etc)
• The container runs regardless of the actual
(underlying) system (VM, bare metal, etc)
6
Docker History
• Docker was released as open source in March 2013
• Solomon Hykes started Docker in France as an internal project within dotCloud, a platform-
as-a-service company, with initial contributions by other dotCloud engineers including
Andrea Luzzardi and Francois-Xavier Bourlet.
• with the release of version 0.9, Docker dropped LXC as the default execution environment
and replaced it with its own libcontainer library written in the Go programming language.
(Google’s OpenSource Programming Language )
• In 2015, the project had over 25,600 GitHub, over 6,800 forks, and nearly 1,100
contributors.
• In May 2016 analysis showed the following organizations as main contributors to Docker:
The Docker team, Cisco, Google, Huawei, IBM, Microsoft, and Red Hat.
7
The underlying technology
Namespaces
• Pod: pid isolation
• Net: network interface
• Ipc: interProcess
Communication
• Mnt: managing mount point
• Uts: isolating kernel and
version identifier
Control groups
limits and isolates
the resource usage of a
collection of processes
Union File Systems
operate by creating layers
very lightweight and fast
CONTAINER (libcontainer)
8
Docker Engine
Docker Engine is a client-server application with these major components:
• A server which is a type of long-running program called a daemon process.
• A REST API which specifies interfaces that programs can use to talk to the daemon and
instruct it what to do.
• A command line interface (CLI) client.
9
Docker Machine
• Docker Machine is a tool that lets you install
Docker Engine on virtual hosts, and manage
the hosts with docker-machine commands.
• You can use Machine to create Docker
hosts on your local Mac or Windows box, on
your company network, in your data center,
or on cloud providers like AWS or Digital
Ocean.
10
Docker registry
The registry is a server application that lets you distribute Docker images.
https://hub.docker.com/explore/
11
Docker registry… On-premises
Docker hub free-to-use, hosted Registry, plus additional features (organization
accounts, automated builds, and more).
12
Docker registry… On-premises
Running your own Registry is a great solution to integrate with your CI/CD system.
(Continuous Integration/Delivery)
A notification from the Registry would then trigger to notify other systems that a new
image is available.
It’s also an essential component if you want to quickly deploy a new image over a large
cluster of machines.
Finally, it’s the best way to distribute images inside an isolated network.
13
Availability
• Linux
• Windows
• Mac
• Aws
• Azure
• Bluemix
• …
Docker’s architecture
Docker uses a client-server
architecture !
The same image can run
on your laptop, on your server, on your cloud
14
HA is also available
Starting from version 1.12 Docker swarm was integrated into Docker Engine in swarm
mode:
Highlights:
• Cluster management integrated with Docker Engine
• Multi-host networking
• Load balancing
• Secure by default (TLS stricly enforced for communications)
• Scaling
15
Why Docker
Create images to support developers (standard deployment)
Keep an archive of images for every software release to perform back-version
debugging/testing (start a clean server in minutes)
Consolidate multiple servers on a single powerful machine but maintain complete
isolation
16
Containers vs Virtual Machine
Virtual machine runs a dedicated
operating system.
Each VM has its own binaries/libraries
and application(s) that it services,
and the VM may be many gigabytes
in size
Each container shares the host OS kernel
and, usually, the binaries and libraries, too.
Shared components are read-only
This makes containers exceptionally “light” –
containers are only megabytes in size and
take just seconds to start, versus minutes for
a VM
17
Yours Containers can be shipped!18
And IBM ?
19
IBM announces zSystem
for Docker
Download here: http://www.ibm.com/developerworks/linux/linux390/docker.html
IBM and Docker offer integrated container solutions that
can meet the diverse needs of enterprises.
Supporting the creation and deployment of multi-platform,
multi-container workloads across hybrid infrastructures,
IBM and Docker accelerate application delivery and
enable application lifecycle management for Dockerized
containers.
20
IBM announces Docker on
IBM PureApplication System
The good news is that Docker is now supported on IBM
PureApplication v2.1! You can now use Docker containers in the
virtual system patterns that you create and you can reference Docker
images that are stored on Docker Hub or in a private Docker registry
that runs inside PureApplication. Taking advantage of the Docker
containers on PureApplication is as easy as building patterns.
21
IBM Bluemix
• IBM Bluemix provides built in DevOps services to manage source code and to build, test
and deploy applications to Bluemix.
• For more complex scenarios IBM provides the Continuous Delivery toolset UrbanCode to
deploy hybrid applications to the cloud and on-premises and to deploy composite
applications with multiple components or microservices.
• The store application uses one container on Bluemix . Containers running in a Docker
Swarm cluster on-premises.
Does anyone know this guy?
http://heidloff.net/article/11.11.2015100203NHECLU.htm
He is Niklas Heidloff, Developer Advocate for IBM
Bluemix, working on Docker on Bluemix Environment.
22
IBM Bluemix Containers Roadmap
23
How To: Create Docker images with
IBM Social Software
24
Prepare your Container
• Prepare the Installation script
• Using Silent installation method
• Preparing the response file and whatever you need to
complete setup
• Create your Docker File and deploy it.
25
Docker Image
A docker image is a read-only template for creating containers.
• Manual: Start from a base image, build your customization and commit the new image.
• DockerFile: Use a script.
DockerFile anatomy
A “DockerFile” is a text file with docker commands, it
• Declares the “base image” to inherit from
• Copies files to the image filesystem
• Executes commands in the image to setup things
• Declares “VOLUME” mappings
• Declares ports to “EXPOSE”d.
26
Docker File Anatomy
Identifies which folder you need to share
between container and host
Identifies which image you want to use
Identifies which command you need to
execute inside the containers
FROM ubuntu:latest
VOLUME [/opt/data]
VOLUME [/etc]
VOLUME [/home]
RUN apt-get install -y 
aptitude 
net-tools 
libxtst6 
libxi6 
libcanberra-gtk3 
gtk+
COPY DB2_Svr_10.5.0.3_Linux_x86-64.tar.gz /tmp/db210.5/ Copy your Packages into the containers
27
Prepare IBM Silent Installation
You can use the IBM installation manager from command line, and create your response
file sample!
IBMIM –record /tmp/was9.xml -skipInstall /tmp/IBM/
<?xml version='1.0' encoding='UTF-8'?>
<agent-input>
<variables>
<variable name='sharedLocation' value='/opt/ibm/IMShared'/>
</variables>
<server>
<repository location='/tmp/sw-repo/WAS_ND_9'/>
<repository location='/tmp/sw-repo/SDK_JAVA_V8'/>
</server>
<profile id='IBM WebSphere Application Server V9.0' installLocation='/opt/ibm/WebSphere/AppServer'>
<data key='cic.selector.arch' value='x86_64'/>
<data key='cic.selector.nl' value='en,en'/>
</profile>
<install>
<!-- IBM WebSphere Application Server Network Deployment 9.0.0.0 -->
<offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.websphere.ND.v90' version='9.0.0.20160526_1854' features='core.feature,ejbdeploy,thinclient,embeddablecontainer'/>
<!-- IBM SDK, Java Technology Edition, Versione 8 8.0.3.0 -->
<offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.java.jdk.v8' version='8.0.3000.20160526_1317' features='com.ibm.sdk.8'/>
</install>
28
/opt/ibm/im/eclipse/tools/imcl input /tmp/was9.xml -acceptLicense
Ready to go?
imcl install packageID[_version][,featureID]
-repositories source_repository
-installationDirectory installation_directory
-accessRights mode
We can use our response file
Install from command line
29
Was9 Docker File
# Select the base image to inherit from
FROM ubuntu:latest
# Image description
LABEL Description="WebSphere 9, HTTP 9, Plugin 9" Vendor="MSBIRO.NET" Version="1.0"
# Execute unix command
COPY sw-repo/* /tmp/sw-repo/
RUN apt-get update && apt-get install vim –y
RUN apt-get install -y 
vim 
psmisc
30
RUN /tmp/sw-repo/IM185_LNX64/installc -log log_file -acceptLicense -installationDirectory /opt/ibm/im/
RUN /opt/ibm/im/eclipse/tools/imcl input /tmp/sw-repo/RESPONSE/was9.xml
-acceptLicense
RUN /opt/ibm/im/eclipse/tools/imcl input /tmp/sw-repo/RESPONSE/was9supp.xml –acceptLicense
RUN echo $(head -1 /etc/hosts | cut -f1) dmgr.ondemand.com >> /etc/hosts &&
/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -response /tmp/sw-repo/RESPONSE/dmgr
RUN echo $(head -1 /etc/hosts | cut -f1) dmgr.ondemand.com >> /etc/hosts &&
/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -response /tmp/sw-repo/RESPONSE/appsrv01
Was9 Docker File
31
Was9 Image
RUN /opt/ibm/WebSphere/AppServer/bin/wasservice.sh -add docker-DMGR -servername dmgr
-profilePath /opt/ibm/WebSphere/AppServer/profiles/Dmgr01/ -stopArgs
‘-username waslocal -password docker'
RUN /opt/ibm/WebSphere/AppServer/bin/wasservice.sh -add docker-NA -servername nodeagent
-profilePath /opt/ibm/WebSphere/AppServer/profiles/AppSrv01/ -stopArgs
'-username waslocal -password docker -stopservers‘
RUN mkdir /var/lock/subsys
# Volume definition
VOLUME ["/opt/ibm/WebSphere/AppServer"]
# port exposed to external world
EXPOSE 80 443 9060 9043RUN
rm /tmp/sw-repo -R
A data volume is a specially-designated directory within one or more containers that bypasses the Union File System.
Data volumes provide several useful features for persistent or shared data:
Volumes are initialized when a container is created. Data volumes can be shared and reused among containers.
Changes to a data volume are made directly.
Changes to a data volume will not be included when you update an image.
Data volumes persist even if the container itself is deleted.
Data volumes are designed to persist data, independent of the life cycle of the container.
The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime
32
LIVE DEMO
33
Questions?
34
Links
Docker training – online video course
https://training.docker.com/self-paced-training
IBM Installation Manager resources
http://tinyurl.com/ibm-im-command-line-arg
http://tinyurl.com/ibm-im-record-response
Docker and Domino
http://tinyurl.com/domino-container-docker
35
Thank you!
36

More Related Content

PDF
Servlets made easy. 
Write once and run everywhere.
PDF
Find your data - use GraphDB capabilities in XPages applications - and beyond
PPTX
docker : how to deploy Digital Experience in a container drinking a cup of co...
PPTX
Let's serve your data
PDF
ICON UK 2016: Modernizing an IBM Notes applicaton using with AngularJS
PDF
Docking, loading, running domino on docker v12
PPTX
Domino on docker version 2
PPTX
IBM Container Service Overview
Servlets made easy. 
Write once and run everywhere.
Find your data - use GraphDB capabilities in XPages applications - and beyond
docker : how to deploy Digital Experience in a container drinking a cup of co...
Let's serve your data
ICON UK 2016: Modernizing an IBM Notes applicaton using with AngularJS
Docking, loading, running domino on docker v12
Domino on docker version 2
IBM Container Service Overview

What's hot (20)

PPTX
Docker in a big company
PPTX
Docker introduction
PPTX
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
PDF
DockerCon SF 2015: DHE/DTR
PDF
December OpenNTF Webinar: The Volt MX LotusScript Toolkit
PDF
Containers and microservices for realists
PPTX
Development tools
PDF
Introduction to Docker Containers - Docker Captain
PPTX
Structured Container Delivery by Oscar Renalias, Accenture
PPTX
Docker introduction (1)
PDF
WebCenter Portal - Integrate Custom taskflows
PPTX
.docker : how to deploy Digital Experience in a container drinking a cup of c...
PDF
"Workstation Up" - Docker Development at Flow by Mike Roth
PDF
April, 2021 OpenNTF Webinar - Domino Administration Best Practices
PPTX
2014, April 15, Atlanta Java Users Group
PDF
OPEN SOURCE TECHNOLOGY: Docker Containers on IBM Bluemix
PDF
DSpace UI prototype dsember
PDF
Docker Datacenter - CaaS
PPTX
Docker for .NET Developers
PDF
AppCatalyst and Photon OS
Docker in a big company
Docker introduction
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
DockerCon SF 2015: DHE/DTR
December OpenNTF Webinar: The Volt MX LotusScript Toolkit
Containers and microservices for realists
Development tools
Introduction to Docker Containers - Docker Captain
Structured Container Delivery by Oscar Renalias, Accenture
Docker introduction (1)
WebCenter Portal - Integrate Custom taskflows
.docker : how to deploy Digital Experience in a container drinking a cup of c...
"Workstation Up" - Docker Development at Flow by Mike Roth
April, 2021 OpenNTF Webinar - Domino Administration Best Practices
2014, April 15, Atlanta Java Users Group
OPEN SOURCE TECHNOLOGY: Docker Containers on IBM Bluemix
DSpace UI prototype dsember
Docker Datacenter - CaaS
Docker for .NET Developers
AppCatalyst and Photon OS
Ad

Viewers also liked (9)

PDF
Feed me, Seymore - Supplemental User Data for IC Profiles
PPTX
Migration:Impossible ... Not so
PDF
21 ways to make your data work for you
PDF
Modernising a Notes app with AngularJS
PDF
A Hitchhiker's Guide to troubleshooting IBM Connections
PDF
Migration from IBM Domino to IBM Verse
PPTX
Migrating data around the office
PPTX
Help! My Travelers complain about performance, what to do ??
PDF
From collaboration to engagement
Feed me, Seymore - Supplemental User Data for IC Profiles
Migration:Impossible ... Not so
21 ways to make your data work for you
Modernising a Notes app with AngularJS
A Hitchhiker's Guide to troubleshooting IBM Connections
Migration from IBM Domino to IBM Verse
Migrating data around the office
Help! My Travelers complain about performance, what to do ??
From collaboration to engagement
Ad

Similar to .docker : How to deploy Digital Experience in a container, drinking a cup of coffee (20)

PPTX
Docker, how to use it. organize a meeting with IBM products...
PPT
IBM WebSphere Application Server traditional and Docker
PPTX
Docker Orchestration: Welcome to the Jungle! JavaOne 2015
PDF
Dockercon eu tour 2015 - Devoxx Casablanca
PDF
Docker Overview - Rise of the Containers
PDF
InterConnect 2015: 3962 Docking DevOps
PDF
IBM Containers- Bluemix
PPTX
Docker Orchestration: Welcome to the Jungle! Devoxx & Docker Meetup Tour Nov ...
PDF
Docker slides
PDF
Rapid Application Development with Docker
PDF
An introduction to configuring Domino for Docker
PDF
An Introduction to Configuring Domino for Docker
PDF
What is Docker & Why is it Getting Popular?
PDF
PDF
AtlanTEC 2017: Containers! Why Docker, Why NOW?
PPTX
WebSphere Application Server Liberty Profile and Docker
PDF
Docker-v3.pdf
PPTX
Introduction to Docker - 2017
PPTX
Webinar Docker Tri Series
PPTX
Docker Overview
Docker, how to use it. organize a meeting with IBM products...
IBM WebSphere Application Server traditional and Docker
Docker Orchestration: Welcome to the Jungle! JavaOne 2015
Dockercon eu tour 2015 - Devoxx Casablanca
Docker Overview - Rise of the Containers
InterConnect 2015: 3962 Docking DevOps
IBM Containers- Bluemix
Docker Orchestration: Welcome to the Jungle! Devoxx & Docker Meetup Tour Nov ...
Docker slides
Rapid Application Development with Docker
An introduction to configuring Domino for Docker
An Introduction to Configuring Domino for Docker
What is Docker & Why is it Getting Popular?
AtlanTEC 2017: Containers! Why Docker, Why NOW?
WebSphere Application Server Liberty Profile and Docker
Docker-v3.pdf
Introduction to Docker - 2017
Webinar Docker Tri Series
Docker Overview

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Cloud computing and distributed systems.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PDF
Modernizing your data center with Dell and AMD
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Advanced Soft Computing BINUS July 2025.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Reach Out and Touch Someone: Haptics and Empathic Computing
Cloud computing and distributed systems.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
GamePlan Trading System Review: Professional Trader's Honest Take
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Modernizing your data center with Dell and AMD
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Advanced Soft Computing BINUS July 2025.pdf

.docker : How to deploy Digital Experience in a container, drinking a cup of coffee

  • 1. .docker : how to deploy Digital Experience in a container drinking a cup of coffee Matteo Bisi – Andrea Fontana
  • 2. About us 2 • Matteo Bisi – System Engineer • IBM Champion Social Business 2014,15, 16 • Blogger – www.msbiro.net, blog.msbiro.net • Social: @mbisi78 https://it.linkedin.com/in/matteobisi matteo.bisi@factor-y.com
  • 3. About us 3 • Andrea Fontana – CTO • IBM Champion Social Business 2015,16 • IBM Champion for WebSphere 2012,13,14 • IBM Advocate since 2012 • Blogger – razioni-k.net2action.com • Social: @net2action https://it.linkedin.com/in/afontana a.fontana@sowre.com SAP DEVELOPER BUSINESS PARTNER
  • 4. Docker + IBM Social Software What and why 4
  • 5. Docker • Docker is an open platform for developing, shipping, and running applications. • Docker is designed to deliver your applications faster. • With Docker you can separate your applications from your infrastructure and treat your infrastructure like a managed application. 5
  • 6. Docker and containers in a few slides Docker is a way to “package” your software in an image:  File system  System security (user/groups) & settings  TCP Network (ports that needs to be reachable)  Image inheritance is possible (incremental specialization) Docker is a way to “ship & run” your software to other systems: • Start an “image” to get a container where your software runs • Manage containers (start/stop/control etc) • The container runs regardless of the actual (underlying) system (VM, bare metal, etc) 6
  • 7. Docker History • Docker was released as open source in March 2013 • Solomon Hykes started Docker in France as an internal project within dotCloud, a platform- as-a-service company, with initial contributions by other dotCloud engineers including Andrea Luzzardi and Francois-Xavier Bourlet. • with the release of version 0.9, Docker dropped LXC as the default execution environment and replaced it with its own libcontainer library written in the Go programming language. (Google’s OpenSource Programming Language ) • In 2015, the project had over 25,600 GitHub, over 6,800 forks, and nearly 1,100 contributors. • In May 2016 analysis showed the following organizations as main contributors to Docker: The Docker team, Cisco, Google, Huawei, IBM, Microsoft, and Red Hat. 7
  • 8. The underlying technology Namespaces • Pod: pid isolation • Net: network interface • Ipc: interProcess Communication • Mnt: managing mount point • Uts: isolating kernel and version identifier Control groups limits and isolates the resource usage of a collection of processes Union File Systems operate by creating layers very lightweight and fast CONTAINER (libcontainer) 8
  • 9. Docker Engine Docker Engine is a client-server application with these major components: • A server which is a type of long-running program called a daemon process. • A REST API which specifies interfaces that programs can use to talk to the daemon and instruct it what to do. • A command line interface (CLI) client. 9
  • 10. Docker Machine • Docker Machine is a tool that lets you install Docker Engine on virtual hosts, and manage the hosts with docker-machine commands. • You can use Machine to create Docker hosts on your local Mac or Windows box, on your company network, in your data center, or on cloud providers like AWS or Digital Ocean. 10
  • 11. Docker registry The registry is a server application that lets you distribute Docker images. https://hub.docker.com/explore/ 11
  • 12. Docker registry… On-premises Docker hub free-to-use, hosted Registry, plus additional features (organization accounts, automated builds, and more). 12
  • 13. Docker registry… On-premises Running your own Registry is a great solution to integrate with your CI/CD system. (Continuous Integration/Delivery) A notification from the Registry would then trigger to notify other systems that a new image is available. It’s also an essential component if you want to quickly deploy a new image over a large cluster of machines. Finally, it’s the best way to distribute images inside an isolated network. 13
  • 14. Availability • Linux • Windows • Mac • Aws • Azure • Bluemix • … Docker’s architecture Docker uses a client-server architecture ! The same image can run on your laptop, on your server, on your cloud 14
  • 15. HA is also available Starting from version 1.12 Docker swarm was integrated into Docker Engine in swarm mode: Highlights: • Cluster management integrated with Docker Engine • Multi-host networking • Load balancing • Secure by default (TLS stricly enforced for communications) • Scaling 15
  • 16. Why Docker Create images to support developers (standard deployment) Keep an archive of images for every software release to perform back-version debugging/testing (start a clean server in minutes) Consolidate multiple servers on a single powerful machine but maintain complete isolation 16
  • 17. Containers vs Virtual Machine Virtual machine runs a dedicated operating system. Each VM has its own binaries/libraries and application(s) that it services, and the VM may be many gigabytes in size Each container shares the host OS kernel and, usually, the binaries and libraries, too. Shared components are read-only This makes containers exceptionally “light” – containers are only megabytes in size and take just seconds to start, versus minutes for a VM 17
  • 18. Yours Containers can be shipped!18
  • 20. IBM announces zSystem for Docker Download here: http://www.ibm.com/developerworks/linux/linux390/docker.html IBM and Docker offer integrated container solutions that can meet the diverse needs of enterprises. Supporting the creation and deployment of multi-platform, multi-container workloads across hybrid infrastructures, IBM and Docker accelerate application delivery and enable application lifecycle management for Dockerized containers. 20
  • 21. IBM announces Docker on IBM PureApplication System The good news is that Docker is now supported on IBM PureApplication v2.1! You can now use Docker containers in the virtual system patterns that you create and you can reference Docker images that are stored on Docker Hub or in a private Docker registry that runs inside PureApplication. Taking advantage of the Docker containers on PureApplication is as easy as building patterns. 21
  • 22. IBM Bluemix • IBM Bluemix provides built in DevOps services to manage source code and to build, test and deploy applications to Bluemix. • For more complex scenarios IBM provides the Continuous Delivery toolset UrbanCode to deploy hybrid applications to the cloud and on-premises and to deploy composite applications with multiple components or microservices. • The store application uses one container on Bluemix . Containers running in a Docker Swarm cluster on-premises. Does anyone know this guy? http://heidloff.net/article/11.11.2015100203NHECLU.htm He is Niklas Heidloff, Developer Advocate for IBM Bluemix, working on Docker on Bluemix Environment. 22
  • 24. How To: Create Docker images with IBM Social Software 24
  • 25. Prepare your Container • Prepare the Installation script • Using Silent installation method • Preparing the response file and whatever you need to complete setup • Create your Docker File and deploy it. 25
  • 26. Docker Image A docker image is a read-only template for creating containers. • Manual: Start from a base image, build your customization and commit the new image. • DockerFile: Use a script. DockerFile anatomy A “DockerFile” is a text file with docker commands, it • Declares the “base image” to inherit from • Copies files to the image filesystem • Executes commands in the image to setup things • Declares “VOLUME” mappings • Declares ports to “EXPOSE”d. 26
  • 27. Docker File Anatomy Identifies which folder you need to share between container and host Identifies which image you want to use Identifies which command you need to execute inside the containers FROM ubuntu:latest VOLUME [/opt/data] VOLUME [/etc] VOLUME [/home] RUN apt-get install -y aptitude net-tools libxtst6 libxi6 libcanberra-gtk3 gtk+ COPY DB2_Svr_10.5.0.3_Linux_x86-64.tar.gz /tmp/db210.5/ Copy your Packages into the containers 27
  • 28. Prepare IBM Silent Installation You can use the IBM installation manager from command line, and create your response file sample! IBMIM –record /tmp/was9.xml -skipInstall /tmp/IBM/ <?xml version='1.0' encoding='UTF-8'?> <agent-input> <variables> <variable name='sharedLocation' value='/opt/ibm/IMShared'/> </variables> <server> <repository location='/tmp/sw-repo/WAS_ND_9'/> <repository location='/tmp/sw-repo/SDK_JAVA_V8'/> </server> <profile id='IBM WebSphere Application Server V9.0' installLocation='/opt/ibm/WebSphere/AppServer'> <data key='cic.selector.arch' value='x86_64'/> <data key='cic.selector.nl' value='en,en'/> </profile> <install> <!-- IBM WebSphere Application Server Network Deployment 9.0.0.0 --> <offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.websphere.ND.v90' version='9.0.0.20160526_1854' features='core.feature,ejbdeploy,thinclient,embeddablecontainer'/> <!-- IBM SDK, Java Technology Edition, Versione 8 8.0.3.0 --> <offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.java.jdk.v8' version='8.0.3000.20160526_1317' features='com.ibm.sdk.8'/> </install> 28
  • 29. /opt/ibm/im/eclipse/tools/imcl input /tmp/was9.xml -acceptLicense Ready to go? imcl install packageID[_version][,featureID] -repositories source_repository -installationDirectory installation_directory -accessRights mode We can use our response file Install from command line 29
  • 30. Was9 Docker File # Select the base image to inherit from FROM ubuntu:latest # Image description LABEL Description="WebSphere 9, HTTP 9, Plugin 9" Vendor="MSBIRO.NET" Version="1.0" # Execute unix command COPY sw-repo/* /tmp/sw-repo/ RUN apt-get update && apt-get install vim –y RUN apt-get install -y vim psmisc 30
  • 31. RUN /tmp/sw-repo/IM185_LNX64/installc -log log_file -acceptLicense -installationDirectory /opt/ibm/im/ RUN /opt/ibm/im/eclipse/tools/imcl input /tmp/sw-repo/RESPONSE/was9.xml -acceptLicense RUN /opt/ibm/im/eclipse/tools/imcl input /tmp/sw-repo/RESPONSE/was9supp.xml –acceptLicense RUN echo $(head -1 /etc/hosts | cut -f1) dmgr.ondemand.com >> /etc/hosts && /opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -response /tmp/sw-repo/RESPONSE/dmgr RUN echo $(head -1 /etc/hosts | cut -f1) dmgr.ondemand.com >> /etc/hosts && /opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -response /tmp/sw-repo/RESPONSE/appsrv01 Was9 Docker File 31
  • 32. Was9 Image RUN /opt/ibm/WebSphere/AppServer/bin/wasservice.sh -add docker-DMGR -servername dmgr -profilePath /opt/ibm/WebSphere/AppServer/profiles/Dmgr01/ -stopArgs ‘-username waslocal -password docker' RUN /opt/ibm/WebSphere/AppServer/bin/wasservice.sh -add docker-NA -servername nodeagent -profilePath /opt/ibm/WebSphere/AppServer/profiles/AppSrv01/ -stopArgs '-username waslocal -password docker -stopservers‘ RUN mkdir /var/lock/subsys # Volume definition VOLUME ["/opt/ibm/WebSphere/AppServer"] # port exposed to external world EXPOSE 80 443 9060 9043RUN rm /tmp/sw-repo -R A data volume is a specially-designated directory within one or more containers that bypasses the Union File System. Data volumes provide several useful features for persistent or shared data: Volumes are initialized when a container is created. Data volumes can be shared and reused among containers. Changes to a data volume are made directly. Changes to a data volume will not be included when you update an image. Data volumes persist even if the container itself is deleted. Data volumes are designed to persist data, independent of the life cycle of the container. The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime 32
  • 35. Links Docker training – online video course https://training.docker.com/self-paced-training IBM Installation Manager resources http://tinyurl.com/ibm-im-command-line-arg http://tinyurl.com/ibm-im-record-response Docker and Domino http://tinyurl.com/domino-container-docker 35