docker, vagrant and kubernetes walk into an eclipse'd bar
Transcript of docker, vagrant and kubernetes walk into an eclipse'd bar
DOCKER, VAGRANT AND KUBERNETES WALK INTO AN ECLIPSE’D BAR
Demo
Max Rydahl AndersenRed Hat
EclipseCon NA 2016, WashingtonMarch 8th, 2016
Docker
DevConf 2016, Brno
DOCKER
3
“Docker allows you to package an application with all of its dependencies into a standardized unit for software development.”
- docker.com
DevConf 2016, Brno
DOCKER
4
Advantages
Lightweight
Fast
Portable
● The whole stack in one container, works everywhere
Security
● Each app in its own sandbox
No installation of apps - just get the image and run
DevConf 2016, Brno
DOCKER PARTS
5
Image
Dockerfile
Registry
Container
Daemon
FROM wildflyADD standalone.xmlRUN yum install jdk-9CMD start.sh
DevConf 2016, Brno
DOCKER AND ECLIPSE
6
Docker Tools part of Linux Tools (but works on OS X and Windows too)
Connect to your existing Docker daemon on any host
Value on top of CLI
Can be reused by other plugins
DEMO
DevConf 2016, Brno
DOCKER DEMO
8
Connect to Docker
Search & Pull images
Dockerfile
Build
Start/stop containers
Linking containers
DevConf 2016, Brno
DOCKER DEMO
9
dockerhostEclipseDocker Tooling
Server Adapter
/deployments
Postgres
WildFly
Vagrant
DevConf 2016, Brno
Vagrant
11
Machine(s) defined in a VagrantFile
Put into your project or externally
Can do “anything”
Basic needs are easy start/stop
DevConf 2016, Brno
Vagrant Tooling
12
DEMOThe State of Docker and Vagrant Tooling in Eclipse
- 17:00 Grand Ballroom C
Kubernetes/OpenShift
DevConf 2016, Brno15Source: http://omerio.com/2015/12/18/learn-the-kubernetes-key-concepts-in-10-minutes/
DevConf 2016, Brno
Kubernetes / OpenShift 3
16
● Kubernetes uses Docker containers and provides higher level management
● Red Hat's Platform-as-a-Service (Paas) build as a layered system exposing underlying Docker and Kubernetes
● Adds source code management, builds, deployment, promotion of images, application management, team and user tracking on top of it
● Runs on-premise, Amazon EC2, Google Cloud Platform and Azure●
● Ops <3
DevConf 2016, Brno17
….how does this affect developers and development ?
DevConf 2016, Brno18
IDE Projects
DEMO
DevConf 2016, Brno
Demo
20
Create projects
Docker containers in OpenShift
Docker Tooling in Eclipse
● Everything you can do from CLI and more
Red Hat Container Development Toolkit + CDK Tooling in Eclipse
● Start/stop● Automatically connect to Docker and OpenShift from Eclipse
OpenShift 3 in Eclipse
DevConf 2016, Brno
Ideas.Next
21
Docker Server Adapters
Run java apps in isolated containers directly from Eclipse
- “Che” style runtimes
More Incremental deployment
docker rsync
maven kubernetes sync
“OpenShift-in-a-box” - Red Hat Container Development Kit
- Vagrant driven setup that gives you docker and openshift locally- Use cli or IDE’s especially Eclipse smoothly
In short: anything that makes the distance from idea to refresh shorter
DevConf 2016, Brno
QUESTIONS ?
22
Eclipse Linux Tools
tools.jboss.org
eclipse.org/linuxtools
https://github.com/mmalina/wildfly-db-docker
developers.redhat.com
www.openshift.org
THANK YOU
[email protected]@maxandersenabout.me/maxandersen