mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
11 hours ago 9db63ab6e694fca23b93cb1cb059165930554c07
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Tuesday, November 24, 2026 07:39 +0100
committer GitHub <noreply@github.com>
Tuesday, November 24, 2026 07:39 +0100
commit9db63ab6e694fca23b93cb1cb059165930554c07
tree d5f22be955df3773d25e4f3912b747503206e01d tree | zip | gz
parent 5e5b44b9a11a65749e726ce4c784ada7ac50b0c2 view | diff
Start the Docker bootstrap server after setup exits (#1326)

## Summary

- Run Docker bootstrap setup with `--doNotStart`. Start the temporary
server only after the installer JVM exits, then configure the backend
and import data.
- Keep the temporary server's JVM argument resolution and fail bootstrap
if setup or startup fails.
- Launch the temporary server from `/opt/opendj/bin` so relative paths
in `start-ds.java-args` resolve as they did when the installer launched
it.

## Validation

- On the CI image at 512 MiB, completed bootstrap on an empty volume,
reached healthy status, and read the imported base entry over LDAPS.
- Sampled the JVMs during bootstrap and verified that the installer and
temporary server ran in sequence. The container still reached the 512
MiB limit in this run.
- Exercised command ordering and failure propagation on dash and BusyBox
sh. Ran `git diff --check`.
- Reproduced the relative GC log path failure on a local Docker image at
512 MiB. With the working directory restored, the log was written to
`/opt/opendj/data/logs/bootstrap-gc.log`, the container became healthy,
and the imported base entry was readable over LDAPS.
1 files modified
9 ■■■■■ changed files
opendj-packages/opendj-docker/bootstrap/setup.sh 9 ●●●●● diff | view | raw | blame | history