Container technology. Let’s dive into the world of docker and kubernetes Bjarte Brandt, DevOps Architect TV2
Agenda Why containers? Let’s look into container architecture Demo: Oracle Database 12.2.0.1 in a container Why container clusters? Let’s look into container cluster architecture Demo: A full container deployment cycle in a container-cluster!
Shipping code to the server is too hard. Why containers? Shipping code to the server is too hard.
Container architecture Linux Kernel namespaces: isolation. Much like FreeBDS Jails, Solaris Zones. Started in 2002. ns:mnt,pid,net,ipc,uts,user. Look into /proc/pid/ns cgroup (control group): resource management, resource accounting/tracking solution. Started in 2006 (Google). Merged into kernel 2008 (2.6.24) look at /proc/pid/cgroup (process), /proc/cgroup (system) The combination of NAMESPACE and CGROUP enables container-technology!!
Wait!! We forgot CoW! Filesystem Property CoW: Copy On Write. When container starts, image (storage,libs,apps,etc) is availabe. Just mount. This is fast! Storage keeps track of what has changed. AUFS,overlay (file level) look into /var/lib/docker/…. DeviceMapper (RHEL) (block level) BTRFS, ZFS (FS level)
The combination of NAMESPACE, CGROUP, CoW enables container-technology!!
Demo: Oracle Database 12.2.0.1 running in a docker container Maria Colgans blog: https://sqlmaria.com/2017/04/27/oracle-database-12c-now-available-on-docker/ Oracle products for docker: https://github.com/oracle/docker-images
Why container clusters?
Demo: A full container deployment cycle in a container-cluster!