-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this not compatible with automated CI builds due to ENTRYPOINT? #1
Comments
Hi @romanr The ENTRYPOINT of this image is just the mvn executable, it cannot be a path. The error message is a maven's error: it just says mvn needs a pom.xml file to build something. |
But that's exactly my point: when I run CI with official openjdk or maven docker images, it works fine and finds my pom.xml. This docker image can't find the file, meaning it's running in some other path. |
This is weird, we are using this image to build several Java projects on Bitbucket without any issue since 3 years. It is just the plain maven:3.6-jdk-11 image plus a couple of installed packages, so I can't see anything which could alter the behavior like that. As you can see, the Dockerfile is very simple. You might want to try to use it to build you project locally, the README explain how. If it works, as it should, then the problem should be in the CI service configuration, I guess. |
I am also facing the same issue |
variables: image: softinstigate/maven-aws stages:
Even I have not called mvn command then also it is giving error message. |
Sorry for not getting back to you sooner, but we are not using this repository anymore for internal reasons. Originally this was the foundation for a docker image used for our CI/CD Bitbucket pipelines, but we have switched to pipes for these purposes. I'm happy to merge PRs, in case. |
Is this image only for local builds?
When running in Gitlab CI I get this error
It can't find the project that was checked out.
Other images work fine.
I think because of ENTRYPOINT the directory is set to
/
somehow.The text was updated successfully, but these errors were encountered: