aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: ddd82a1a9a3d77fe7644e9ff87aa373728d13050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# onap-java

This project aims to produce a reference ONAP baseline including JAVA 11
following the seccom receommendations [1]

## Build

ONAP Java Dockerfile allows user to build ONAP base Java image based on Java 11 and Java 17.
Building each version depends on build-arg passed by user:

- Java 11 (default) can be build using `docker build . --build-arg java_ver=onap-java11` but in that case
  `--build-arg` is optional
- Java 17 can be build using `docker build . --build-arg java_ver=onap-java17`

## versions

### 12.0.0

Update Dockerfile to build both Java 11 and Java 17 base images
Change base image to eclipse-temurin

### 9.0.0

Update to Java 11.0.11 on alpine 3.13.5
based on image adoptopenjdk/openjdk11:jre-11.0.11\_9-alpine

### 8.0.0

Update Java to 11.0.9

### 7.2.0

Added 'openssl' (OpenSSL 1.1.1g  21 Apr 2020)

### 7.1.0

It is based on adoptopenjdk/openjdk11:jre-11.0.8\_10-alpine

Alpine images are GPLv3 free, which is required by the TSC.

### 7.0.0

It is based on the Debian image 11.0.6-jre-slim.

When you create your docker from this docker you need to copy your jar file
under /app/app.jar.

You may specify two env variables to customize the way you are starting java:

- ENV JAVA\_OPTS: by default set to -Xms256m -Xmx1g
- ENV JAVA\_SEC\_OPTS: empty by default

[1]: https://git.onap.org/integration/seccom/tree/recommended_versions.yaml