jkube icon indicating copy to clipboard operation
jkube copied to clipboard

Quickstart using Jitpack as plugin repository

Open manusa opened this issue 3 years ago • 12 comments

Description

Testing the newly implemented features of Eclipse JKube prior to a release is critical to deliver a great product.

For users reporting bugs, it might be helpful to validate that an issue was effectively fixed by being able to use the latest SNAPSHOT from the main/master branch.

Since we don't provide nightly builds (Jitpack seems like a much more powerful option), we need to provide better instructions to use Jitpack instead.

What to do

Provide a Maven quickstart that uses Jitpack as repository and pluginRepository using the quickstarts/maven/zero-config as reference.

Changes:

Change
location quickstarts/maven/zero-config-jitpack
artifactId jkube-maven-sample-zero-config-jitpack
name Eclipse JKube :: Quickstarts :: Maven :: Zero-Config (Jitpack)
description How to use Eclipse JKube from Jitpack

Add the following to the pom.xml

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </pluginRepository>
</pluginRepositories>

Replace the plugin references:

From:

<plugin>
  <groupId>org.eclipse.jkube</groupId>
  <artifactId>kubernetes-maven-plugin</artifactId>
  <version>${jkube.version}</version>
</plugin>
<! -- ... -->
<plugin>
  <groupId>org.eclipse.jkube</groupId>
  <artifactId>openshift-maven-plugin</artifactId>
  <version>${jkube.version}</version>
</plugin>

To:

<plugin>
  <groupId>com.github.eclipse.jkube</groupId>
  <artifactId>kubernetes-maven-plugin</artifactId>
  <version>master-SNAPSHOT</version>
</plugin>
<! -- ... -->
<plugin>
  <groupId>com.github.eclipse.jkube</groupId>
  <artifactId>openshift-maven-plugin</artifactId>
  <version>master-SNAPSHOT</version>
</plugin>

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)

manusa avatar Jun 23 '21 05:06 manusa

I can help with this!

rbrishabh avatar Jun 23 '21 09:06 rbrishabh

I'll assign to you. Let us know if you need assistance.

manusa avatar Jun 23 '21 09:06 manusa

Polite ping, are you still working on this issue?

manusa avatar Jul 27 '21 04:07 manusa

@manusa @rohanKanojia Is the issue available?

theexplorist avatar Aug 08 '21 19:08 theexplorist

I guess that after 2 weeks of silence you can work on this @theexplorist, thx!

manusa avatar Aug 09 '21 09:08 manusa

Is this issue still available @manusa ?

Onyinye91-ctrl avatar Aug 16 '21 21:08 Onyinye91-ctrl

Is this issue still available @manusa ?

Working on it, you can see its assigned

theexplorist avatar Aug 23 '21 06:08 theexplorist

Hey is this issue still open to work on?? I want to work on this if no one is working.

Devamparikh avatar Apr 05 '22 08:04 Devamparikh

Hey @theexplorist are you still working on this?

Devamparikh avatar Apr 08 '22 09:04 Devamparikh

hey @manusa is the issue still available? I would like to help!

daryl-micah avatar Apr 30 '22 09:04 daryl-micah

Hi, there is already an open PR #1293 for this. However, I'm unsure if it works (we need to review).

Given the difficult setup, I'm reconsidering the option to provide nightly SNAPSHOT builds in the standard Sonatype repo. We followed this approach for the Fabric8 Kubernetes Client, and it's giving good results. So removing the complex setup friction point seems like a good idea (at the user's expense of consuming non-deterministic SNAPSHOT versions).

manusa avatar May 02 '22 07:05 manusa

@manusa hey i am beginner in open source can you suggest me some beginner friendly issues to contribute to

Gairick52 avatar Oct 07 '22 18:10 Gairick52