Skip to content

Commit a1665cb

Browse files
authored
Merge pull request #1078 from SUSE/for-deploy-5
🤖: Update build recipes for SP5
2 parents 41f37b5 + 87df2db commit a1665cb

4 files changed

Lines changed: 76 additions & 45 deletions

File tree

tomcat-10-image/README.md

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# Tomcat 10 Container Image
2-
2+
33
Apache Tomcat (Tomcat for short) is a free and open-source implementation of the
44
Jakarta Servlet, Jakarta Expression Language, and WebSocket technologies. It
55
provides a pure Java HTTP web server environment that can run Java code. It is a
66
Java web application server and not a complete JEE application server.
7-
8-
7+
8+
99
## How to use the image
10-
10+
1111
By default, the image launches Tomcat with the same configuration as the one
1212
that comes with SUSE Linux Enterprise Server. The difference is that logging is
1313
sent to stdout, meaning that the `podman logs tomcat` command displays Tomcat
1414
logs.
15-
15+
1616
For security reasons, the image runs as the **tomcat** user. This means that
1717
additional packages cannot be installed via `zypper`, unless the user becomes
1818
`root`.
19-
19+
2020
To deploy an application, copy the `.war` file file into
2121
`$CATALINA_BASE/webapps` (either during a container build or by bind-mounting
2222
the directory), and launch the container using the following command:
2323
```ShellSession
2424
$ podman run -d --rm -p 8080:8080 registry.suse.com/suse/tomcat:10
2525
```
26-
26+
2727
The deployed webapp is then accessible via `http://localhost:8080/$webapp_name`.
28-
28+
2929

3030
### How to use the image with rootless Podman
3131

@@ -40,40 +40,49 @@ $ chmod 0777 /path/to/my/app
4040
$ podman run --rm -d -v /path/to/my/app:/usr/share/tomcat/webapps:z \
4141
-p 8080:8080 registry.suse.com/suse/tomcat:10
4242
```
43-
43+
4444

4545
## Configuration
46-
46+
4747
The main Tomcat configuration files (for example
4848
`/etc/tomcat/logging.properties`) are stored in `/etc/tomcat/`.
49-
49+
5050
Tomcat's runtime options can be configured using the environment variables
5151
`JAVA_OPTS` and `CATALINA_OPTS`. `JAVA_OPTS` specifies general options used for
5252
the JVM, whereas `CATALINA_OPTS` specifies Tomcat's flags. You can pass the
5353
options to the container runtime using the `-e` flag:
5454
```ShellSession
5555
$ podman run -it --rm \
56-
-e JAVA_OPTS="-Xmx1024m" \
57-
-p 8080:8080 \
56+
-e JAVA_OPTS="-Xmx1024m" -p 8080:8080 \
5857
registry.suse.com/suse/tomcat:10
5958
```
60-
61-
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat` and `CATALINA_BASE` set to
62-
`/usr/share/tomcat`.
63-
64-
59+
60+
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat`
61+
and `CATALINA_BASE` set to `/usr/share/tomcat`.
62+
63+
6564
## Samples
66-
65+
6766
By default, the sample applications shipped with Tomcat are not installed in
68-
the container image. You can obtain them by installing one of the following
67+
the container image. Add them by installing one of the following
6968
packages:
7069
- tomcat10-webapps
7170
- tomcat10-admin-webapps
7271
- tomcat10-docs-webapp
7372

74-
7573
## Upgrading from Tomcat 9
76-
77-
Tomcat 9 implements Java EE 8, and Tomcat 10 implements Jakarta
78-
EE 9. Before upgrading from version 9, consult the upstream migration guide:
79-
https://tomcat.apache.org/migration-10.html
74+
75+
Tomcat 9 implements Java EE 8, and Tomcat 10
76+
implements Jakarta EE 9. Before upgrading from version 9, consult the
77+
[upstream migration guide](https://tomcat.apache.org/migration-10.html).
78+
79+
## Licensing
80+
`SPDX-License-Identifier: MIT`
81+
82+
The build recipe and this documentation is licensed as MIT.
83+
The container itself contains various software components under various open source licenses listed in the associated
84+
Software Bill of Materials (SBOM).
85+
86+
This image is a tech preview. Do not use it for production.
87+
Your feedback is welcome.
88+
Please report any issues to the [SUSE Bugzilla](https://bugzilla.suse.com/enter_bug.cgi?product=SUSE%20Linux%20Enterprise%20Base%20Container%20Images).

tomcat-10-image/tomcat-10-image.changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Fri May 3 09:48:35 UTC 2024 - Dirk Mueller <dmueller@suse.com>
3+
4+
- update tomcat readme to have standard footer and correct references
5+
16
-------------------------------------------------------------------
27
Fri Apr 12 12:04:50 UTC 2024 - Dirk Mueller <dmueller@suse.com>
38

tomcat-9-image/README.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# Tomcat 9 Container Image
2-
2+
33
Apache Tomcat (Tomcat for short) is a free and open-source implementation of the
44
Jakarta Servlet, Jakarta Expression Language, and WebSocket technologies. It
55
provides a pure Java HTTP web server environment that can run Java code. It is a
66
Java web application server and not a complete JEE application server.
7-
8-
7+
8+
99
## How to use the image
10-
10+
1111
By default, the image launches Tomcat with the same configuration as the one
1212
that comes with SUSE Linux Enterprise Server. The difference is that logging is
1313
sent to stdout, meaning that the `podman logs tomcat` command displays Tomcat
1414
logs.
15-
15+
1616
For security reasons, the image runs as the **tomcat** user. This means that
1717
additional packages cannot be installed via `zypper`, unless the user becomes
1818
`root`.
19-
19+
2020
To deploy an application, copy the `.war` file file into
2121
`$CATALINA_BASE/webapps` (either during a container build or by bind-mounting
2222
the directory), and launch the container using the following command:
2323
```ShellSession
2424
$ podman run -d --rm -p 8080:8080 registry.suse.com/suse/tomcat:9
2525
```
26-
26+
2727
The deployed webapp is then accessible via `http://localhost:8080/$webapp_name`.
28-
28+
2929

3030
### How to use the image with rootless Podman
3131

@@ -40,33 +40,45 @@ $ chmod 0777 /path/to/my/app
4040
$ podman run --rm -d -v /path/to/my/app:/usr/share/tomcat/webapps:z \
4141
-p 8080:8080 registry.suse.com/suse/tomcat:9
4242
```
43-
43+
4444

4545
## Configuration
46-
46+
4747
The main Tomcat configuration files (for example
4848
`/etc/tomcat/logging.properties`) are stored in `/etc/tomcat/`.
49-
49+
5050
Tomcat's runtime options can be configured using the environment variables
5151
`JAVA_OPTS` and `CATALINA_OPTS`. `JAVA_OPTS` specifies general options used for
5252
the JVM, whereas `CATALINA_OPTS` specifies Tomcat's flags. You can pass the
5353
options to the container runtime using the `-e` flag:
5454
```ShellSession
5555
$ podman run -it --rm \
56-
-e JAVA_OPTS="-Xmx1024m" \
57-
-p 8080:8080 \
56+
-e JAVA_OPTS="-Xmx1024m" -p 8080:8080 \
5857
registry.suse.com/suse/tomcat:9
5958
```
60-
61-
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat` and `CATALINA_BASE` set to
62-
`/usr/share/tomcat`.
63-
64-
59+
60+
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat`
61+
and `CATALINA_BASE` set to `/usr/share/tomcat`.
62+
63+
6564
## Samples
66-
65+
6766
By default, the sample applications shipped with Tomcat are not installed in
68-
the container image. You can obtain them by installing one of the following
67+
the container image. Add them by installing one of the following
6968
packages:
7069
- tomcat-webapps
7170
- tomcat-admin-webapps
7271
- tomcat-docs-webapp
72+
73+
74+
75+
## Licensing
76+
`SPDX-License-Identifier: MIT`
77+
78+
The build recipe and this documentation is licensed as MIT.
79+
The container itself contains various software components under various open source licenses listed in the associated
80+
Software Bill of Materials (SBOM).
81+
82+
This image is a tech preview. Do not use it for production.
83+
Your feedback is welcome.
84+
Please report any issues to the [SUSE Bugzilla](https://bugzilla.suse.com/enter_bug.cgi?product=SUSE%20Linux%20Enterprise%20Base%20Container%20Images).

tomcat-9-image/tomcat-9-image.changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Fri May 3 09:48:35 UTC 2024 - Dirk Mueller <dmueller@suse.com>
3+
4+
- update tomcat readme to have standard footer and correct references
5+
16
-------------------------------------------------------------------
27
Fri Apr 12 12:04:50 UTC 2024 - Dirk Mueller <dmueller@suse.com>
38

0 commit comments

Comments
 (0)