16. “Recipes” for the new images.
Dockerfiles
FROM ubuntu
EXPOSE 8080
RUN apt-get install java
RUN mkdir /jars
ADD target/app.jar /jars/
CMD ["java", "-jar", "/jars/app.jar"]]
17. Create the new image
$ docker build -t com.me/app:1.0 .
$ docker run -t com.me/app:1.0]
18. Let’s create the production-grade container!
Demo!
FROM ubuntu
RUN apt-get update -qqy
RUN apt-get install -qqy cowsay
ENTRYPOINT ["/usr/games/cowsay"]
CMD ["Hello Docker!"]
19. Docker Maven plugin by Roland ‘Jolokia’ Huß
How can I put a fresh jar into an image?
20. How can I put a fresh jar into an image?
<image>
<name>${project.artifactId}:${project.version}</name>
<build>
<from>hekonsek/fatjar:0.0.10-SNAPSHOT</from>
<assemblyDescriptorRef>artifact</assemblyDescriptorRef>
<exportDir>/jars</exportDir>
</build>
</image>
mvn docker:buid docker:push
21. Provided by the database community/vendor.
How can I get database image?
docker run -d -p 27017:27017 --name mongo mongo
]
22. Yes. That’s all I can say ;) .
Any Red Hat customers using Docker in
production?
30. Where can I find Kubernetes?
- Red Hat Atomic
- Red Hat Linux 7.1
- CoreOS Linux
- OpenShift 3
- GKE (Google Container Engine)
- Microsoft Azure
- All the major cloud providers (soon)
31. - REST API
- etcd key/value store
- controller manager server
Kubernetes architecture - master node
58. - CDI extension for Kubernetes
- Kubernetes API client for Java
- Spring Boot Kubernetes integration
- Kubernetes JUnit goodies
Value added by Fabric8 -
extra libraries
61. Why Jube?
- your VPS doesn’t support Docker
- your operating system doesn’t support Docker/Kubernetes
- you’re not operational ready to go into the production with
Docker