-
-
Notifications
You must be signed in to change notification settings - Fork 110
Modernize Debian and RPM packaging (systemd, dedicated user, CI tests) #663
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
Open
vharseko
wants to merge
19
commits into
OpenIdentityPlatform:master
Choose a base branch
from
vharseko:features/linux-distribution
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
552a762
Modernize Debian and RPM packaging (systemd, dedicated user, CI tests)
vharseko 98da118
Make the opendj service find Java via a stable symlink, and harden th…
vharseko 7b5c11b
systemd: grant CAP_NET_BIND_SERVICE so the non-root service can bind …
vharseko 2ff41db
docs: update deb/rpm install/upgrade/uninstall for systemd + dedicate…
vharseko 67f0d6b
CI: test deb/rpm upgrade from the released 5.1.1 packages
vharseko 515fa9a
test-rpm-upgrade: install "which" for the released 5.1.1 scripts
vharseko 809bd5e
Packages must pull their own dependencies: declare util-linux, drop m…
vharseko c9b670d
sysv init: pick the function library by file existence, not distribution
vharseko 179b463
Merge branch 'master' into features/linux-distribution
vharseko 9a05884
Merge remote-tracking branch 'origin/master' into features/linux-dist…
vharseko 7d345d9
[#663] set explicit GITHUB_TOKEN permissions in the build workflow
vharseko f9936b6
Merge origin/master into features/linux-distribution
vharseko 0e30569
Merge remote-tracking branch 'origin/master' into features/linux-dist…
vharseko 436d94b
Merge branch 'master' into features/linux-distribution
vharseko 5e61512
[#663] Upgrade tests: take the released 5.1.2 packages as the upgrade…
vharseko 794154a
[#663] Address review: packaging scriptlets, unit conditions, CI asse…
vharseko 7d46ecf
[#663] Address the second review: upgrade paths, split layout, live-s…
vharseko 3a13158
Merge remote-tracking branch 'origin/master' into features/linux-dist…
vharseko d249391
Fix packaging CI: setup port probe on 389 and missing systemctl in rp…
vharseko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/bin/sh | ||
| # | ||
| # The contents of this file are subject to the terms of the Common Development and | ||
| # Distribution License (the License). You may not use this file except in compliance with the | ||
| # License. | ||
| # | ||
| # You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the | ||
| # specific language governing permission and limitations under the License. | ||
| # | ||
| # When distributing Covered Software, include this CDDL Header Notice in each file and include | ||
| # the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL | ||
| # Header, with the fields enclosed by brackets [] replaced by your own identifying | ||
| # information: "Portions copyright [year] [name of copyright owner]". | ||
| # | ||
| # Copyright 2026 3A Systems, LLC. | ||
|
|
||
| # Waits until the OpenDJ instance under /opt/opendj answers a base search on | ||
| # localhost:$1 (default 1389) with the CI test credentials. Exits non-zero if | ||
| # the server does not come up within ~60 seconds. | ||
|
|
||
| PORT="${1:-1389}" | ||
| i=0 | ||
| while [ "$i" -lt 20 ] ; do | ||
| if /opt/opendj/bin/ldapsearch -h localhost -p "$PORT" -D "cn=Directory Manager" -w password \ | ||
| -b "dc=example,dc=com" -s base "(objectClass=*)" 1.1 >/dev/null 2>&1 ; then | ||
| exit 0 | ||
| fi | ||
| i=$((i + 1)) | ||
| sleep 3 | ||
| done | ||
| echo "OpenDJ did not answer on port $PORT within the timeout" >&2 | ||
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.