Skip to content
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

Dockerfile overriden when deploying stream app #5930

Closed
ram4444 opened this issue Sep 10, 2024 · 3 comments
Closed

Dockerfile overriden when deploying stream app #5930

ram4444 opened this issue Sep 10, 2024 · 3 comments
Labels
status/need-feedback Calling participant to provide feedback

Comments

@ram4444
Copy link

ram4444 commented Sep 10, 2024

When I start deploying stream app and pull my docker image from repo. which dockerfile has a line of

ENTRYPOINT ["java", "-Dspring.profiles.active=dev", "-jar", "my-application.jar"]

the error log shown on my K8S is
Error: Could not find or load main class org.springframework.boot.loader.launch.JarLauncher │
│ Caused by: java.lang.ClassNotFoundException: org.springframework.boot.loader.launch.JarLauncher

Of cause the docker image can be run in my local docker

I have tried the fix below which is found somewhere easily

ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher", "-Dspring.profiles.active=dev", "my-application.jar"]

On K8S I got the same error message
on my own local docker I got this message as well

May I know is it supposed not work or my dockerfile entrypoint got overriden when the STREAM APP is being deployed?

INFO:
SCDF installed from helm with
docker.io/bitnami/spring-cloud-dataflow:2.11.4-debian-12-r3
docker.io/bitnami/spring-cloud-skipper:2.11.4-debian-12-r2

SCDF Application is a Spring boot and its docker image build by Kaniko

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Sep 10, 2024
@corneil
Copy link
Contributor

corneil commented Sep 11, 2024

@ram4444
Please configure deployer.<application>.kubernetes.entryPointStyle=<Entry Point Style>
Where <Entry Point Style> is one of exec, shell or boot
I suggest you try shell for your case.

I would suggest you create docker images using Spring Boot Gradle or Maven plugins to produce a container using Paketo buildpacks.

@corneil corneil added status/need-feedback Calling participant to provide feedback and removed status/need-triage Team needs to triage and take a first look labels Sep 13, 2024
@ram4444
Copy link
Author

ram4444 commented Sep 19, 2024

Hi,

Thanks for your help. My previous trial is with Kaniko. After using Gradle Jib for docker image building everything is fine

@github-actions github-actions bot added for/team-attention For team attention and removed status/need-feedback Calling participant to provide feedback labels Sep 19, 2024
@cppwfs
Copy link
Contributor

cppwfs commented Sep 20, 2024

Glad to hear your issue is resolved. Will close this issue.

@cppwfs cppwfs closed this as completed Sep 20, 2024
@github-actions github-actions bot added status/need-feedback Calling participant to provide feedback and removed for/team-attention For team attention labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-feedback Calling participant to provide feedback
Projects
None yet
Development

No branches or pull requests

3 participants