Skip to content

Commit 9d008a4

Browse files
committed
1 parent 68be953 commit 9d008a4

File tree

1 file changed

+61
-17
lines changed

1 file changed

+61
-17
lines changed

azul-zulu/content.md

Lines changed: 61 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,80 @@ Azul Zulu Builds of OpenJDK are fully tested, and TCK compliant builds of OpenJD
55
%%LOGO%%
66

77
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+
89
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/).
910

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)
1143

1244
## Usage
1345

14-
To run a container of your choice, use the commands below as an example.
46+
### Running a Container
1547

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:
2551
```
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
2753
```
28-
* Azul Zulu 17 based on Alpine:
54+
* Azul Zulu based on Alpine:
2955
```
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
3157
```
32-
* Azul Zulu 17 based on Distroless:
58+
* Azul Zulu based on Rocky Linux:
3359
```
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
3561
```
3662

3763
As the entrypoint, use:
3864
```
39-
/usr/lib/jvm/zulu17/bin/java
65+
/usr/lib/jvm/zulu<VERSION>/bin/java
4066
```
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:
80+
81+
```bash
82+
docker build -t my-app-container .
83+
docker run -it --rm my-app-container
84+
```

0 commit comments

Comments
 (0)