@marekgoldmann
Warsaw JBUG, 28th May 2014
http://www.reddit.com/r/pics/comments/nf8la/im_always_tempted_to_switch_two_random_cables_to/
http://www.shedworking.co.uk/2012/03/nuts-and-bolts-cable-ties.html
A project to create and manage containers.
Yes, a lightweight operating system virtualization.
It's completely different.
Virtual Machine (KVM, VMware) | Container (LXC, OpenVZ) | |
---|---|---|
Hardware | Simulated | Uses it (almost) directly |
Supported OS'es | Almost any | Only Linux |
Space | User space | Kernel space |
Separation | Full | Control Groups (cgroups) |
Startup time | Seconds to minutes | Miliseconds |
Scalability | A few | Sky is the limit (thousands) |
Custom kernel | Yes | No |
Enterprise features (live migration, etc) | Yes | No |
Ease of creation | Moderate | Easy |
Time consumption of creation | High | Low |
Size | HUGE | Small |
Docker, Inc. and a powerful community.
Achieved after 15 months since first commit to GitHub
It's simple! Use Dockerfiles.
A plain text file with instructions that automates building the image.
# Base on the Fedora 20 image
FROM fedora
# Upgrade the image
RUN yum -y update
# Install WildFly application server
RUN yum -y install wildfly
# Run WildFly after container boot
ENTRYPOINT /usr/share/wildfly/bin/standalone.sh -c standalone-ha.xml -b 0.0.0.0
This should be saved as Dockerfile
docker build .
$ docker build .
Uploading context 2.56 kB
Uploading context
Step 0 : FROM fedora
---> 58394af37342
[SNIP]
Step 3 : ENTRYPOINT /usr/share/wildfly/bin/standalone.sh -c standalone-ha.xml -b 0.0.0.0
---> Running in 72f63daffbd1
---> e91c26099a67
Removing intermediate container 72f63daffbd1
Successfully built e91c26099a67
We've built image e91c26099a67
Dockerfile
build
command once againIt's (fairly) easy to create a PaaS with Docker
There is even a tutorial to create one in 5 minutes...
(and remember to Docker all the things!)
Attributions: