You might (or might not) have heard of Docker. But you have no idea what it is and why you should care. But if you are a database or APEX developer and still work with Virtual Machines, it is about time to broaden your horizon.
In this session you'll learn what Docker is and how you can benefit from it in your daily work.
In this presentation we will walk through the following subjects:
- What is Docker
- Where do I get my images
- Pull an image
- Start a Docker container / Stop / Restart
- Use a Docker container for APEX Development : Via the browser, SQL Developer, SQL Plus, etc
- Make host directories accessible within the container
- Use scripts to modify the image or create your own one
10. Architectural differences
server
host OS
hypervisor (VMWare)
guest
OS
guest
OS
guest
OS
bins/
libs
bins/
libs
bins/
libs
App A App A’ App B
server
host OS
hypervisor (VMWare)
guest
OS
guest
OS
guest
OS
bins/
libs
bins/
libs
bins/
libs
App A App A’ App B
bins/libs
Docker
Containers are isolated, but share OS
and, where appropriate, bins/libraries
… result is significantly faster deployment, much less
overhead, easier migration, faster restart
11. •You can put anything in there
•Stays locked
•Efficient transport
•No missing dependencies during deployments
•You can run various versions of libraries
•Reduce compatibily concerns
12. Pros of a Docker Container
•Self contained - everything you need is in …
•an isolated environment
•and therefore highly portable
•it runs everywhere - also in the cloud
•it is (relatively) small and lightweight
•therefore very scalable
•and thus cost-efficient.
So it’s not (just) aVM. It is a …
18. docker image
• A filesystem and parameters to use it at runtime (dockerfile)
• It doesn't have state
• All layers are readonly
• Layers are shared between images
• Update requires just a download of the new layer
• “docker commit” to "save" changes,
• add a new layer
• create a newer image
OS
MySQL
App
20. • A (running) instance of an image
• Adds a read/write layer on top of the image
• Image is not cloned
• Spin up dozens of containers
readonly
docker container
OS
MySQL
App
C1
read
write
C2
read
write
C3
read
write
43. Docker take aways
• Perfect for creating independent building blocks for your app
• Perfect for simple software delivery
• Invest some time to get acquainted with the architecture
• Ideal replacement of your local developmentVM
• Oracle’s support is growing
44. Hier geht es zur
Vortragsbewertung:
apex.doag.org
http://bit.ly/2pzP15a
Vielen Dank!