Category : docker-maven-plugin

I am using fabric8.io docker-maven-plugin. I have to specify the tags when I use mvn docker:build command. mvn docker:build -Ddocker.tags.0=someTagHere When I am running above command, below are the logs [INFO] — docker-maven-plugin:0.37.0:build (default-cli) @ complete — [INFO] Building tar: /home/user/projects/hello-world/complete/target/docker/repoName/complete/tmp/docker-build.tar [INFO] DOCKER> [repoName/complete:latest]: Created docker-build.tar in 209 milliseconds [INFO] DOCKER> Step 1 : FROM ..

Read more

I have a project structure like: module-1 pom.xml Dockerfile module-2 pom.xml module-3 pom.xml module-4 pom.xml Dockerfile pom.xml module-2 and module-3 are dependencies for module-1 and module-4 Now I want to deploy module-4 and module-1 independently. Now in my parent pom, I have added dockerfile-maven-plugin and added <skip> to true, while for both child projects I ..

Read more

I’m using Jkube maven plugin to generate a Docker image via a Jenkins pipeline on AWS EC2 instance under Ubuntu. When pipeline executes mvn clean install k8s:build I’m getting this error : [ERROR] Failed to execute goal org.eclipse.jkube:kubernetes-maven-plugin:1.3.0:build (default-cli) on project social-carpooling-frontend: Execution default-cli of goal org.eclipse.jkube:kubernetes-maven-plugin:1.3.0:build failed: No <dockerHost> given, no DOCKER_HOST environment variable, ..

Read more

I am using latest Jhipster vesion v7.0.1 and generated monolithic client application [angular] and separate monolithic server application. I want to create separate docker image for these two application. But observed that docker folder is missing in client application. Can any one please help me here to achieve this dockerization. Source: Dockerfile..

Read more

I want to include some JAR files in my Docker image. I’m using the fabric8 maven plugin’s inline assembly feature. Here is a the dependency in the POM: <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-all</artifactId> <version>${activemq.version}</version> <type>jar</type> </dependency> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>${org.json.version}</version> <type>jar</type> </dependency> And here is the inline assembly for the fabribc8 plugin: <assembly> <inline> <id>copy-jars</id> <dependencySets> <dependencySet> ..

Read more

I have a problem, that i need to dockerize my application and postgresql database. I’m using docker-maven-plugin from fabric8io. Here is my images: <images> <image> <alias>db-postgres</alias> <name>db-postgres</name> <run> <env> <POSTGRES_DB>postgres</POSTGRES_DB> <POSTGRES_USER>postgres</POSTGRES_USER> <POSTGRES_PASSWORD>password</POSTGRES_PASSWORD> </env> <ports> <port>5433</port> </ports> <wait> <log>database system is ready to accept connections</log> </wait> </run> </image> <image> <name>${project.artifactId}</name> <build> <from>${docker.jdk.version}</from> <entryPoint> <exec> <args>java</args> <args>-jar</args> ..

Read more