Deployment to Redhat Openshift

Hello team,

Currently, when we execute the boot jar on the container environment,
We are unable to build the jar file due to an error with cannot access the parent folder,
In order to check if the Dockerfile works correctly, we have cloned a Jmix project and were able to build the Jar file.
But the issue behavior is the same when we copy the build.gradle to the clone Jmix project.
After that, we commented on all the premium lib, then the clone project was able to be built successfully,

We are using Jmix version 1.5.x, here was the build.gradle and the Dockerfile.
jmix_config.zip (1.9 KB)

Here was the error image,
image

Please help us on how to build the source code with all the premium lib on container env.

Hi Quang,

It is possible that your repository credentials are missing.
The repository configuration in build.gradle expects premiumRepoUser and premiumRepoPass properties to be passed as repository credentials.
You can uncomment your premium libs and supply these properties to the Gradle process as parameters.

See this answer: Error while trying to build project from CI/CD pipeline - #2 by krivopustov

Regards,
Sergey

Hello Sergey,

We have passed the param premiumRepoUser and premiumRepoPass to Gradle,
But the issue persists, we have tried hardcode the user and pass to build.gradle or passed it to Gradle command like your suggestion above,
None have to work,

Many thanks,

Сould you please attach the full build log with your problem?

Hi,

We have attached the full build log,
ac-buildah.log (46.4 KB)

Many thanks,

Based on the errors in the logs, it looks like there are problems in your project configuration.
You can try to reproduce your build and these errors in a small demo project and send it to us with the build command, docker file, etc., and add a more detailed description of how to get the error.