eclipse-jkube / jkube

Build and Deploy java applications on Kubernetes
https://www.eclipse.dev/jkube/
Eclipse Public License 2.0
776 stars 523 forks source link

Quickstarts : Update Micronaut version in `quickstarts/gradle/micronaut` #2774

Open rohanKanojia opened 8 months ago

rohanKanojia commented 8 months ago

Component

None

Task description

Description

This is a follow-up to #2753

Our Micronaut Gradle quickstarts are using an outdated version of Micronaut framework: https://github.com/eclipse/jkube/blob/b64915ec6090dcb0171e45b6372052278210e6f3/quickstarts/gradle/micronaut-customized-image/gradle.properties#L15 https://github.com/eclipse/jkube/blob/b64915ec6090dcb0171e45b6372052278210e6f3/quickstarts/gradle/micronaut/gradle.properties#L15

Micronaut 4 now requires Java 17 as baseline. Maybe we should not update this quickstart directly to 4.x. For now, updating it to the latest 3.x version (3.9.7 at the time of creating this issue) would be okay.

:warning: This requires setting up some local Kubernetes Cluster (MiniKube/Kind)

After updating Micronaut version, you should verify that quickstart is building fine and is also working as specified in their respective README . You can take a look at this YouTube video Sprint 192 - Eclipse JKube Micronaut integration to see how to try it out.

Expected Behavior

Micronaut Quickstart is updated to latest 3.x version

Acceptance Criteria

Before you start :red_circle:

:point_down: :point_down: :point_down: :point_down: :point_down: :point_down: :point_down: :point_down: :point_down: :point_down::point_down::point_down::point_down::point_down::point_down::point_down: Make sure you read the contributing guide first. Pay special attention to the ECA agreement section and the requirement to sign-off your commit.

How to manually test my changes

Kubernetes

If you don't have a real Kubernetes cluster available (most probably), you can use Minikube or Kind to test with a local cluster.

OpenShift

If you don't have a real OpenShift cluster available (most probably), you can use Red Hat's developer Sandbox for Red Hat OpenShift. The only requirement is to have a Red Hat account.

Once you have your Sandbox environment, you'll need to download the oc tool from the cluster console. (Press the ? icon and from the context menu select Command line tools, you'll be redirected to https://$subdomain.openshiftapps.com/command-lines-tools where you'll be able to download the CLI for your platform)

adityakukankar commented 8 months ago

Hello @rohanKanojia, can I work on this issue?

Teja-11 commented 7 months ago

I would like to work on this, can you assign this to me?

Teja-11 commented 7 months ago

Hi,

Deployed and tested micronaut the endpoints. All seem to be working fine.

Screenshot 2024-04-12 at 4 48 23 PM
Teja-11 commented 7 months ago

Hi @manusa ,

Can you help me with this issue, unable to build micronaut-customized-image:

Downloaded from central: https://repo.maven.apache.org/maven2/com/marcnuri/helm-java/linux-amd64/0.0.6/linux-amd64-0.0.6.jar (24 MB at 7.1 MB/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 35.508 s [INFO] Finished at: 2024-04-17T01:19:47Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.jkube:kubernetes-maven-plugin:1.16.2:build (default-cli) on project micronaut-customized-image: Execution default-cli of goal org.eclipse.jkube:kubernetes-maven-plugin:1.16.2:build failed: No given, no DOCKER_HOST environment variable, no read/writable '/var/run/docker.sock' or '//./pipe/docker_engine' and no external provider like Docker machine configured -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException micronaut-customized-image (master) $

rohanKanojia commented 7 months ago

@Teja-11 : Are you sure you have docker/podman daemon running on your machine?

pujakarakoti07 commented 1 month ago

I want to work on this issue, please assign this to me.