You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azul-zulu/content.md
+61-17Lines changed: 61 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,36 +5,80 @@ Azul Zulu Builds of OpenJDK are fully tested, and TCK compliant builds of OpenJD
5
5
%%LOGO%%
6
6
7
7
Azul Zulu Builds of OpenJDK are available for free unlimited use and are commercially supported by [Azul](https://www.azul.com/) as a part of the Azul Platform Core bundle.
8
+
8
9
Check out [Azul Platform Core](https://www.azul.com/products/core/) for more information. The technical documentation can be found on [docs.azul.com/core](https://docs.azul.com/core/).
9
10
10
-
Docker images of Azul Zulu are available with different base systems: Ubuntu, Debian, CentOS, Alpine, and Distroless.
11
+
## Azul Zulu Images
12
+
13
+
Azul Zulu images on Docker Hub are available for different combinations of versions, packages, and systems.
14
+
15
+
### Versions
16
+
17
+
The following Long Term Support (LTS) versions are available:
18
+
19
+
* 8
20
+
* 11
21
+
* 17
22
+
* 21
23
+
* 25
24
+
25
+
Short Term Support (STS) versions are available for six months after their initial release.
26
+
27
+
### Packages
28
+
29
+
The following package types are available:
30
+
31
+
* jdk (default)
32
+
* jdk-headless
33
+
* jre
34
+
* jre-headless
35
+
36
+
### Systems
37
+
38
+
Images based on the following base systems are available :
39
+
40
+
* Debian (apt)
41
+
* Alpine (apk)
42
+
* Rocky Linux (yum)
11
43
12
44
## Usage
13
45
14
-
To run a container of your choice, use the commands below as an example.
46
+
### Running a Container
15
47
16
-
* Azul Zulu 17 based on Ubuntu:
17
-
```
18
-
docker run -it --rm azul-zulu:17-ubuntu java -version
19
-
```
20
-
* Azul Zulu 17 based on Debian:
21
-
```
22
-
docker run -it --rm azul-zulu:17-debian java -version
23
-
```
24
-
* Azul Zulu 17 based on CentOS:
48
+
To run a container of your choice and validite its version, use the commands below as an example.
49
+
50
+
* Azul Zulu based on Debian:
25
51
```
26
-
docker run -it --rm azul-zulu:17-centos java -version
52
+
docker run -it --rm azul-zulu:<ZULU_VERSION>-debian<DISTRO_VERSION> java -version
27
53
```
28
-
* Azul Zulu 17 based on Alpine:
54
+
* Azul Zulu based on Alpine:
29
55
```
30
-
docker run -it --rm azul-zulu:17-alpine java -version
56
+
docker run -it --rm azul-zulu:<ZULU_VERSION>-alpine<DISTRO_VERSION> java -version
31
57
```
32
-
* Azul Zulu 17 based on Distroless:
58
+
* Azul Zulu based on Rocky Linux:
33
59
```
34
-
docker run -it --rm azul-zulu:17-distroless java --version
60
+
docker run -it --rm azul-zulu:<ZULU_VERSION>-rockylinux<DISTRO_VERSION> java --version
35
61
```
36
62
37
63
As the entrypoint, use:
38
64
```
39
-
/usr/lib/jvm/zulu17/bin/java
65
+
/usr/lib/jvm/zulu<VERSION>/bin/java
40
66
```
67
+
68
+
### Building a Container With Your Own Application
69
+
70
+
To build a Debian Docker container with a pre-built jar file with, use the following example Dockerfile:
71
+
72
+
```text
73
+
FROM azul-zulu:<VERSION>
74
+
RUN mkdir /opt/my-app
75
+
COPY my-app.jar /opt/may-app
76
+
CMD ["java", "-jar", "/opt/my-app/my-app.jar"]
77
+
```
78
+
79
+
You can build and run the Docker Image as shown in the following example:
0 commit comments