steve-community/steve

Maven wrapper now found during K8s docker build

Closed this issue · 4 comments

The image for k8s can not be build because the Maven wrapper is not found.

Build fails on this line.

RUN ./mvnw clean package -Pkubernetes -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"

The issue is that the .mvn directory and mvnw executable are not added to the docker image during the build.

Should be fixed by #1319 but it is not tested.

@ml170722d can you briefly explain how you are using the k8s with steve?

background: #1351

Hi,

I was trying to run steve in my cluster for testing porpoises, but was unable to build the Docker image. The cause was mentioned above.

When I added 1 or 2 lines of code to Dockerfile it worked end I continued to use steve normally. There was nothing special about steve setup and usage. Lines I added were for adding .mvn directory with wrapper inside.

Basically, I was using steve as a plug in and play solution for my tests. Hope this explanation is good enough.