Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info on required Java option to doc; update pipelines #4324

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci-release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
distribution: 'temurin'
java-version: '17'
check-latest: true
cache: 'sbt'
- name: Set up proxy for docker buildx
run: |
echo http_proxy=${http_proxy} >> $GITHUB_ENV
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-release-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ jobs:
distribution: 'temurin'
java-version: '17'
check-latest: true
cache: 'sbt'
- name: Publish To Sonatype
run: sbt -Dsbt.color=always -Dsbt.supershell=false ci-release
1 change: 0 additions & 1 deletion .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
distribution: 'temurin'
java-version: '17'
check-latest: true
cache: 'sbt'
- name: Set up proxy for docker buildx
run: |
echo http_proxy=${http_proxy} >> $GITHUB_ENV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ There are 3 ways to modify the default configuration:
environment variables. In order to enable this style of configuration, the JVM property
`-Dconfig.override_with_env_vars=true` needs to be set. Once set, a configuration flag can be overridden. For example: `CONFIG_FORCE_app_http_interface="127.0.0.1"`.

In terms of JVM pool memory allocation, we recommend setting the following values to the `JAVA_OPTS` environment variable: `-Xms4g -Xmx4g`. The recommended values should be changed accordingly with the usage of Nexus Delta, the number of projects and the resources/schemas size.
In terms of JVM pool memory allocation, we recommend setting the following values to the `JAVA_OPTS` environment variable: `-Xms4g -Xmx4g --add-opens=java.base/java.lang=ALL-UNNAMED`. The recommended values should be changed accordingly with the usage of Nexus Delta, the number of projects and the resources/schemas size.

In order to successfully run Nexus Delta there is a minimum set of configuration flags that need to be specified

Expand Down
8 changes: 8 additions & 0 deletions docs/src/main/paradox/docs/releases/v1.8-to-v1.9-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ Currently, both remote storages and composite views with remote sources can hold
A remote storage might currently have a token stored in the storage definition. In 1.9, this should be moved to `plugins.storage.storages.remote-disk.credentials`, as shown @ref:[here](../getting-started/running-nexus/configuration/index.md#remote-storage-configuration)

A composite view might currently have a token stored in the view definition. In 1.9, this should be moved to `plugins.composite-views.remote-source-credentials`, as shown @ref:[here](../getting-started/running-nexus/configuration/index.md#composite-views-plugin-configuration)

## Java options

As the official Nexus Delta image moves to JRE 17, one dependency now requires the addition of
`--add-opens=java.base/java.lang=ALL-UNNAMED` in `JAVA_OPTS`. This option is present by
default in the image. However, if you are setting a custom value for `JAVA_OPTS` in your
deployment, it is required to append `--add-opens=java.base/java.lang=ALL-UNNAMED` to it.
This is because the custom value will override the one from the image.
2 changes: 1 addition & 1 deletion tests/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- '/bin/bash'
- '-c'
- |
ln -s /opt/docker/plugins/disabled/project-deletion.jar /opt/docker/plugins/project-deletion.jar &&
ln -sf /opt/docker/plugins/disabled/project-deletion.jar /opt/docker/plugins/project-deletion.jar &&
/opt/docker/bin/delta-app -Xmx4G
ports:
- 8080:8080
Expand Down