- Introduction
- Environment Prerequisites
- Setup
Current maintainer: Ally Kouao [email protected]
Original content can be found at RedHat-Middleware-Workshop / Quarkus Workshop
This workshop is an introduction to the capabilities of Quarkus; supersonic, subatomic container-native Java, and forms part of the Developer Experience (DevEx) workshops. The workshop uses Red Hat CodeReady Workspaces to develop a simple Quarkus apps, and covers a few developr topics such as:
- Dependency Injection
- Building Native Quarkus Apps
- Documenting and Testing APIs
Assumes you have a running OpenShift 4 cluster and have:
- OpenShift 4 CLI
oc
for your environment from https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/.
If you not have OCP4 cluster then please proceed to https://try.openshift.com to get one installed and configured before proceeding to next section.
-
Clone this repository into your local directory
-
Copy the stack.imagestream.yaml file fom the
stack
branch into your (now cloned) project directory -
Log on to your OpenShift console as a cluster admin from your terminal (recommended). You will occasionally require your UI console in later steps.
-
Create a project called
codeready
$ oc new-project codeready
-
Ensure that you are on
Administrator
view on your browser console. -
Install CodeReady Workspaces and navigate to the CodeReady Workspaces URL (Skip step 1.1.1, though - you created a project already!)
-
Enter the following commands to import the quarkus stack image
$ oc create -n openshift -f stack.imagestream.yaml
$ oc import-image --all quarkus-stack -n openshift
-
Switch to
Developer
view on your UI console, to check that the codeready workspace operator has been deployed. -
Once deployed, open the 'Codeready' URL.
-
Register if you have not already, and log in.
-
You will now create a Quarkus workspace for you to use. Select the
Custom Workspace
tab. -
In the
Workspace Name
field, enterquarkus-lab
as the workspace name. -
In the
devfile
section, select the 'URL of devfile' field and enter the following devfile URL:
https://raw.githubusercontent.com/akouao/quarkus-lab/devfile/devfile.yaml
-
Hit the
Load devfile
button to ensure that the configuration is loaded. -
Your configuration is all set. Wait for 2-3 minutes for your workspace to load, and look forward to Quarkus wow-ing you!