Home » Tag Archives: Docker

Tag Archives: Docker

Automating Jenkins Docker Setup

Jenkins is, by far, the most used CI/CD tool in the market. That comes as no surprise since it’s been around for a while, it has one of the biggest open source communities, it has enterprise version for those who need it, and it is straightforward to extend it to suit (almost) anyone’s needs. Products that dominate the market for ...

Read More »

Deploying Docker Images to OpenShift

OpenShift is RedHat’s cloud development Platform as a Service (PaaS). It uses Kubernetes as container orchestration (so you can use OpenShift as Kubernetes implementation), but providing some features missed in Kubernates such as automation of the build process of the containers, health management, dynamic provision storage or multi-tenancy to cite a few. In this post I am going to explain how you can deploy ...

Read More »

Running Parallel Tests in Docker

Sometimes when you are running your tests on your CI environment, you want to run tests in parallel. This parallelism is programmed in build tool such as Maven or Gradle or by using Jenkins plugin. If you are using Docker as a testing tool for providing external dependencies to the application (for example databases, mail servers, ftp servers, ….) you might find a big ...

Read More »

Testing Dockerized SQL Databases

One of the big advantages of using Docker for testing is that you don’t need to install the required dependencies of code under tests in all machines where you are going to run these tests. This is really helpful for external services such as database servers, mail services, JMS queues, … Also one of the big advantages of this approach is ...

Read More »

Java and Docker: Now and the Future

Sharat Chander‘s blog post Official Docker Image for Oracle Java and the OpenJDK Roadmap for Containers provides a high-level overview of the “Official Docker Image for Oracle Java,” an introduction to Docker and why containers like Docker are desirable, and a peek at things to come for Java on Docker. The post also provides a link to the “Docker image ...

Read More »

Creating Smaller Java Image using Docker Multi-stage Build

Two of the announcements at DockerCon 2017 directly relevant to Java developers are: Docker Multi-stage build Oracle JRE in Docker Store This blog explains the purpose of Docker multi-stage build and provide examples of how they help us generate smaller and more efficient Java Docker images. Just show me the code: github.com/arun-gupta/docker-java-multistage. What is the issue? Building a Docker image for a Java application typically involves building the application ...

Read More »

Docker Remote API on Windows and OSX

There are multiple ways to monitor Docker containers. Docker CLI provides the docker container stats API that gives basic information about the running containers. Docker Remote API provides more detailed information about the containers. Staring with Docker 1.13, there is an experimental feature with a Prometheus endpoint cAdvisor is an open source tool that provides last container usage and performance characteristics. This data can be ...

Read More »

3 ways of using Docker Containers for Testing in Arquillian

Arquillian Cube is an Arquillian extension that can be used to manager Docker containers from Arquillian. With this extension you can start a Docker container(s), execute Arquillian tests and after that shutdown the container(s). The first thing you need to do is add Arquillian Cube dependency. This can be done by using Arquillian Universe approach: <dependencyManagement> <dependencies> <dependency> <groupId>org.arquillian</groupId> <artifactId>arquillian-universe</artifactId> <version>${version.arquillian_universe}</version> <scope>import</scope> ...

Read More »

Managing Secrets In Docker Swarm Clusters

Docker 1.13 introduced a set of features that allow us to centrally manage secrets and pass them only to services that need them. They provide a much-needed mechanism to provide information that should be hidden from anyone except designated services. A secret (at least from Docker’s point of view) is a blog of data. A typical use case would be ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns