Questions tagged [dockerfile-maven-plugin]

22 questions
0
votes
1 answer

How can I run a .jar on Tomcat container?

I'm new with docker, what I'm trying to run maven-wrapper.jar file in tomcat:8.0-alpine container. I follow some steps in the following website https://medium.com/@pra4mesh/deploy-war-in-docker-tomcat-container-b52a3baea448 the difference is that it…
Abrahem Gh
  • 47
  • 1
  • 2
  • 9
0
votes
1 answer

pull access denied for 8u162-jdk in maven project

I have a dockerfile in a maven project, and I have this error in the Build when I use the docker base image 8u162-jdk. The build works fine when I use openjdk:8u131-jdk-alpine, but I need to change JDK version to 8u162. Step 1/15 : FROM…
Souad
  • 4,856
  • 15
  • 80
  • 140
0
votes
1 answer

com.spotify/dockerfile-maven-plugin: tag failed: path is 'null'

For a multimodule maven project build using com.spotify:dockerfile-maven-plugin on a CI runner, building the docker image with dockerfile:build dockerfile:tag in a previous step, and running mvn clean deploy dockerfile:push in deploy step results in…
0
votes
0 answers

How to retrieve maven build number in pom.xml?

I would like to retrieve maven build number in pom.xml so that I could use it to tag docker image with dockerfile-maven-plugin. I have checked out https://www.mojohaus.org/buildnumber-maven-plugin/usage.html but that's not what I want. According to…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
0
votes
0 answers

Evaluating ARGs in dockerfile

I am using dockerfile maven plugin to build the docker images. In pom.xml file, 3 args will be sent to the dockerfile. I have added my dockerfile here. ARG PROJECT_BASE_DIR ARG TOMCAT_JULI_ADAPTER_VERSION ARG TOMCAT_JULI_VERSION FROM…
Pubudu Jayasanka
  • 1,294
  • 4
  • 18
  • 34
0
votes
0 answers

dockerfile-maven-plugin push image on gitlab-ci registry

I'm using the dockerfile-maven-plugin from spotify: com.spotify dockerfile-maven-plugin 1.4.0
-1
votes
1 answer

I don’t understand how to write a Dockerfile to run Java HTTP

I need to write a dockerfile that clones a repository from github and starts a simple Java server. Аm i moving in the right direction? please help FROM alpine/git WORKDIR /app RUN git clone https://github.com/trekawek/jhttp.git FROM…
skydogs
  • 11
  • 1
  • 4
1
2