Skip to content

Commit 8dfe2a9

Browse files
authored
Fix various issues in 01_setup.adoc (#147)
* Fix various issues in 01_setup.adoc * Switch to Java 21
1 parent 361c634 commit 8dfe2a9

1 file changed

Lines changed: 24 additions & 26 deletions

File tree

documentation/modules/ROOT/pages/01_setup.adoc

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ endif::workshop[]
2424

2525
[TIP]
2626
====
27-
Installing GraalVM is only required if you intend to build a https://quarkus.io/guides/building-native-image[native binary] for your local operating system and don't have a container runtime.
27+
Installing GraalVM is only required if you intend to build a https://quarkus.io/guides/building-native-image[native binary] for your local operating system and don't have a container runtime.
2828
Quarkus can simply build the native binary inside a container and this way you don't need to install and configure GraalVM on your machine.
2929
====
3030

31-
NOTE: * You can also use Docker instead of Podman. The advantage of Podman is that it is 100% Free Open Source and does not need to run with elevated privileges.
31+
NOTE: You can also use Docker instead of Podman. The advantage of Podman is that it is 100% Free Open Source and does not need to run with elevated privileges.
3232

3333

3434
[tabs]
@@ -47,15 +47,15 @@ Please have them installed and configured before you get started with any of the
4747
| https://podman-desktop.io/downloads[Podman Desktop for Mac, window="_blank"]
4848
| https://podman-desktop.io/downloads[Podman Desktop for Linux, window="_blank"]
4949
| https://podman-desktop.io/downloads[Podman Desktop for Windows, window="_blank"]
50-
| **Java 17**
51-
| `brew tap AdoptOpenJDK/openjdk && brew cask install adoptopenjdk17`
52-
| `dnf install java-17-openjdk.x86_64`
53-
| https://adoptopenjdk.net[Windows] (Make sure you set the `JAVA_HOME` environment variable and add `%JAVA_HOME%\bin` to your `PATH`)
54-
| **Apache Maven 3.8.1+**
50+
| **Java 21**
51+
| `brew install --cask temurin@21`
52+
| `dnf install java-21-openjdk.x86_64`
53+
| https://adoptium.net[Windows] (Make sure you set the `JAVA_HOME` environment variable and add `%JAVA_HOME%\bin` to your `PATH`)
54+
| **Apache Maven 3.8.6+**
5555
| `brew install maven`
5656
| `dnf install maven`
5757
| https://maven.apache.org/download.cgi[Windows] (Make sure you set the `MAVEN_HOME` environment variable and add `%MAVEN_HOME%\bin` to your `PATH`)
58-
| **Graal VM [Optional *]**
58+
| **GraalVM [Optional *]**
5959
| https://www.graalvm.org/latest/docs/getting-started/macos/[Download & install GraalVM for MacOS]
6060
| https://www.graalvm.org/latest/docs/getting-started/linux/[Download & install GraalVM for Linux]
6161
| https://www.graalvm.org/latest/docs/getting-started/windows/[Download & install GraalVM for Windows]
@@ -64,19 +64,19 @@ Please have them installed and configured before you get started with any of the
6464
6565
[TIP]
6666
=====
67-
If you are using Linux, MacOS or WSL on Windows you can also install the required tools using https://sdkman.io[SDKMAN!]. This allows easy version/distribution switching (and you can install the Quarkus CLI with it as well).
67+
If you are using Linux, macOS or WSL on Windows, you can also install the required tools using https://sdkman.io[SDKMAN!]. This allows easy version/distribution switching (and you can install the Quarkus CLI with it as well).
6868
Alternatively on Windows you can also try https://chocolatey.org/[Chocolatey] which works similarly.
6969
[.console-input]
7070
[source,bash,subs="+macros,+attributes"]
7171
----
7272
curl -s "https://get.sdkman.io" | bash
7373
source "$HOME/.sdkman/bin/sdkman-init.sh"
7474
.
75-
sdk install java
75+
sdk install java
7676
sdk install maven
7777
sdk install quarkus
78-
sdk install java 17.0.8-graalce
79-
sdk install jbang
78+
sdk install java 21.0.3-tem
79+
sdk install jbang
8080
----
8181
=====
8282
--
@@ -129,7 +129,7 @@ Before we start setting up the environment, let's clone the tutorial sources and
129129
[#cloneRepo]
130130
[source,bash,subs="+macros,+attributes"]
131131
----
132-
git clone https://github.com/redhat-developer-demos/quarkus-tutorial
132+
git clone https://github.com/redhat-developer-demos/quarkus-tutorial
133133
----
134134
135135
The `work` folder in `$TUTORIAL_HOME` can be used to download the demo application resources and refer to them during the exercises. The `work` folder has a README with instructions on the source code repo and git commands to clone the sources.
@@ -145,7 +145,7 @@ This tutorial was developed and tested with:
145145
- Minikube `{minikube-version}`
146146
- OpenShift `{openshift-version}`
147147
- Minishift `{minishift-version}`
148-
- Graal VM `{graalvm-version}`
148+
- GraalVM `{graalvm-version}`
149149
====
150150
151151
ifndef::workshop[]
@@ -183,10 +183,10 @@ oc new-project {tutorial-namespace}
183183
184184
[NOTE]
185185
====
186-
On macOS, you might need to install hyperkit and pass it as the main engine adding `--vm-driver=hyperkit` after `--disk-size=50g`.
186+
On macOS, you might need to install hyperkit and pass it as the main engine by adding `--vm-driver=hyperkit` after `--disk-size=50g`.
187187
====
188188
189-
Prepare your shell environment
189+
Prepare your shell environment:
190190
191191
[#quarkus-tutorial-shell-env]
192192
[source,bash,subs="+macros,+attributes"]
@@ -196,47 +196,45 @@ export TUTORIAL_HOME=pass:[`pwd`]
196196
export GRAALVM_HOME='PUT THE LOCATION WHERE YOU HAVE EXTRACTED GRAAL VM'
197197
----
198198
199-
Prepare your shell environment:
200-
201199
It is not necessary to install GraalVM as the native compilation can be done within a container.
202200
The only limitation, in this case, is to have Podman/Docker installed and the produced native executable will only be runnable inside a container.
203201
GraalVM is already installed in `tutorial-tools`.
204202
205-
If you installed GraalVM, make sure to also install `native-image`
203+
If you installed GraalVM, make sure to also install `native-image`
206204
207205
[#quarkus-tutorial-graalvm-native]
208206
[source,bash,subs="+macros,+attributes"]
209207
----
210208
gu install native-image
211209
----
212210
213-
214211
[#quarkus-tutorial-shell-env]
215212
[source,bash,subs="+macros,+attributes"]
216213
----
217214
cd quarkus-tutorial
218215
export TUTORIAL_HOME=pass:[`pwd`]
219216
export WORKSHOP_USER='PUT YOUR USERNAME HERE'
220-
export GRAALVM_HOME='PUT THE LOCATION WHERE YOU HAVE EXTRACTED GRAAL VM'
221-
export WORKSHOP_OPENSHIFT_SERVER='PUT THE OPENSHIFT SEVER URL HERE'
217+
export GRAALVM_HOME='PUT THE LOCATION WHERE YOU HAVE EXTRACTED GRAAL VM'
218+
export WORKSHOP_OPENSHIFT_SERVER='PUT THE OPENSHIFT SERVER URL HERE'
222219
----
223220
224-
Login into OpenShift
221+
Login into OpenShift:
222+
225223
[#quarkus-tutorial-oc-login]
226224
[source,bash,subs="+macros,+attributes"]
227225
----
228226
oc login --username pass:[$WORKSHOP_USER] --server pass:[$WORKSHOP_OPENSHIFT_SERVER] --insecure-skip-tls-verify=false
229227
----
230228
231229
ifdef::openshift-console-url[]
232-
You can also access the Openshift Console via url {openshift-console-url}
230+
You can also access the OpenShift Console via {openshift-console-url}.
233231
endif::[]
234232
235-
IMPORTANT: If you are in `MAC OSX`, the variable should point to `Home` sub-directory: `export GRAALVM_HOME=$HOME/Development/graalvm/Contents/Home/`
233+
IMPORTANT: If you are using macOS, the variable should point to `Home` sub-directory: `export GRAALVM_HOME=$HOME/Development/graalvm/Contents/Home/`
236234
endif::workshop[]
237235
238236
[#setup-work-folder]
239237
== Work folder (Optional)
240238
241-
The work folder i.e `$TUTORIAL_HOME/work` can be used as a work directory during the build.
239+
The work folder i.e `$TUTORIAL_HOME/work` can be used as a work directory during the build.
242240
////

0 commit comments

Comments
 (0)