docker tooling for eclipse
TRANSCRIPT
#eclipsedocker
Docker Tooling for Eclipse
Max Rydahl Andersen / @maxandersen Red Hat
#eclipsedocker
What is Docker ?“Docker allows you to package an application with all of its dependencies into a standardized unit for software development.” - docker.com
.jar
.war.ear
.rpm
.deb
.ovf.dll
#eclipsedocker
.jar
.war.ear
.rpm.deb
.ovf Standardized unit Simple toolchain
Portable toolchain Super Fast
#eclipsedocker
Docker “Parts”
DockerFile
Image
Container
FROM wildfly ADD standalone.xmlRUN yum install jdk-9CMD start.sh
Registry
daemon
#eclipsedocker
Docker Possibilities• run apps in isolation
• deploying apps to server running exactly or very similar to production - fast.
• use docker as basis for jenkins build slaves
• take same image and use for development
• experiment with different databases/configuration without spending time on install/setup
• docker remote builds/deployments
#eclipsedocker
Docker @ Eclipse• Project at Linux Tools (works on OS X and Windows
too)
• Make Docker accessible from Eclipse
• Work with existing Docker tools (docker-machine, cli, compose etc.)
• Provide value on top of CLI
• Allow reuse by other plugins
#eclipsedocker
To get started• install and configure Docker (use docker-machine)
• (optional) eval "$(docker-machine env dev)” in setup
• (optional) configure /etc/host to have dockerhost
• Install tools.jboss.org or via Mars and Docker works out-of-box
#eclipsedocker
Intro Demo
• Connection
• Pull images
• Start/stop containers
• Show logs
#eclipsedocker
Demo
• DockerFile
• Build
• Linking containers
#eclipsedocker
localhost dockerhost
8080
5432
* No animals was harmed making this slide
/deployments~/deploy
#eclipsedocker
Docker in Eclipse• management of Docker containers beyond what
CLI can do
• deploy javaee applications
• build native Linux C/C++ aps while running OSX/Windows or some other Linux variant
• <your favorite usecase here>
#eclipsedocker
Future• short-term (Mars SR1)
• Usability - context menus, access and docker build
• medium-term (Mars ??)
• use docker as target for c/c++, javaee, java
• Launch Configurations for Build and Run
• docker machine
• OpenShift/Kubernetes
• .next
• DockerFile Editor
• “compose”, ?
• Other Containers…
#eclipsedocker
Questions
http://tools.jboss.org https://eclipse.org/linuxtools/
https://docs.docker.com/machine/ https://github.com/maxandersen/wildfly-db-docker