Skip to content

Commit 2b1c7cd

Browse files
committed
sw version upgraded and fixes
mvn and java upgrade class name fix mvn fix new podman ui adjustment
1 parent a3bc535 commit 2b1c7cd

6 files changed

Lines changed: 33 additions & 10 deletions

File tree

-292 KB
Loading

documentation/modules/ROOT/pages/env.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import jakarta.ws.rs.Produces;
2929
import jakarta.ws.rs.core.MediaType;
3030
3131
@Path("/hello")
32-
public class HelloResource {
32+
public class GreetingResource {
3333
3434
@ConfigProperty(name = "config")
3535
Optional<String> config;

documentation/modules/ROOT/pages/imagemanagement.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The Podman or Docker CLI offer many ways to manage container images. You can fin
101101
[.console-input]
102102
[source,bash,subs="+macros,+attributes"]
103103
----
104-
docker image -h
104+
podman image -h
105105
----
106106

107107
[.console-output]
@@ -145,7 +145,7 @@ Let's try to remove your just created image:
145145
[.console-input]
146146
[source,bash,subs="+macros,+attributes"]
147147
----
148-
docker image rm my-image
148+
podman image rm my-image
149149
----
150150

151-
Great! You're well on your way to becoming a Container Image expert :)
151+
Great! You're well on your way to becoming a Container Image expert :)

documentation/modules/ROOT/pages/inside.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,20 @@ We can also print the VM settings of this container:
4444
java -XshowSettings:vm -version
4545
----
4646

47-
See Maven's installed version:
47+
Since you are not in your host machine, `mvn` cannot be found:
4848

4949
[.console-input]
5050
[source,bash,subs="+macros,+attributes"]
5151
----
5252
mvn -v
5353
----
5454

55+
[.console-output]
56+
[source,bash,subs="+macros,+attributes"]
57+
----
58+
bash: mvn: command not found
59+
----
60+
5561
And even check the OS version details:
5662

5763
[.console-input]

documentation/modules/ROOT/pages/podman-desktop.adoc

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ image::podman-desktop-nginx.png[alt="Podman Desktop running nginx", align="cente
3939

4040
== Creating a Pod
4141

42-
Podman also allows you to create pods, which are groups of containers that share the same network and storage. This is useful for applications that require multiple containers to run together, such as a database and web server. To create a pod, click the *Play Kubernetes YAML* button in the *Pods* tab. This will bring up a dialog where you select the Kubernetes YAML, and apply it to either Podman or a Kubernetes cluster. For this example, we'll create a `podman-desktop-pod.yaml` file with the following content.
42+
Podman also allows you to create pods, which are groups of containers that share the same network and storage. This is useful for applications that require multiple containers to run together, such as a database and web server.
43+
44+
Before creating the pod, make sure to pull another image:
45+
46+
* Repeat the steps above to *pull* another image from the registry: `postgres:latest`.
47+
48+
Create a new file named `podman-desktop-pod.yaml` with the following content:
4349

4450
[.console-input]
4551
[source,bash,subs="+macros,+attributes"]
@@ -65,7 +71,16 @@ spec:
6571
value: mysecretpassword
6672
----
6773

68-
This YAML file will create a pod with two containers, one running nginx and the other running PostgreSQL. The YAML file can be applied to the Podman engine by clicking the *Play* button after selecting the file. This will create the pod and start the containers.
74+
75+
This YAML file will create a pod with two containers, one running nginx and the other running PostgreSQL:
76+
77+
1. Click on the *Play Kubernetes Yaml* button in the top right corner.
78+
79+
2. Click on the *file* button and select the previously created YAML file.
80+
81+
3. Click on the *Play* button to launch the pod.
82+
83+
4. Click on the *Done* button.
6984

7085
image::podman-desktop-pod-play.png[alt="Podman Desktop Pod Create", align="center"]
7186

documentation/modules/ROOT/pages/setup.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ TIP: By default, the commands in this tutorial are using podman, but you can use
1818
| https://podman-desktop.io/downloads[Podman Desktop for Linux, window="_blank"]
1919
| https://podman-desktop.io/downloads[Podman Desktop for Windows, window="_blank"]
2020

21-
| **Java 21 (or 17)**
22-
| https://adoptium.net/installation/
21+
| **Java 21**
2322
| https://adoptium.net/installation/
23+
| https://adoptium.net/installation/ alternatively:
24+
25+
`dnf install java-21-openjdk-devel`
2426
| https://adoptium.net/installation/ (Make sure you set the `JAVA_HOME` environment variable and add `%JAVA_HOME%\bin` to your `PATH`)
2527

26-
| **Apache Maven 3.6.2+**
28+
| **Apache Maven 3.9.9+**
2729
| `brew install maven`
2830
| `dnf install maven`
2931
| https://maven.apache.org/download.cgi[Windows] (Make sure you set the `MAVEN_HOME` environment variable and add `%MAVEN_HOME%\bin` to your `PATH`)

0 commit comments

Comments
 (0)