Skip to content

Package vespa-crypto-cli-standalone as RPM subpackage#37148

Merged
gjoranv merged 2 commits into
masterfrom
gjoranv/crypto-cli-standalone-jar-path
Jun 5, 2026
Merged

Package vespa-crypto-cli-standalone as RPM subpackage#37148
gjoranv merged 2 commits into
masterfrom
gjoranv/crypto-cli-standalone-jar-path

Conversation

@gjoranv

@gjoranv gjoranv commented Jun 5, 2026

Copy link
Copy Markdown
Member

Makes the standalone crypto CLI installable as an RPM so it can run without a full Vespa installation.

  • vespa-crypto-cli-standalone.sh: resolve the fat JAR via a fallback chain ($VESPA_CRYPTO_CLI_JAR, then the installed lib/jars/ location relative to the script, then target/ for local dev) instead of the hardcoded target/ path.
  • vespaclient-java/CMakeLists.txt: install the fat-with-provided JAR and the standalone launcher script.
  • dist/vespa.spec: add a vespa-crypto-cli-standalone subpackage containing only the script and the fat JAR, requires only a headless JRE.

AI-assisted PR (Claude Opus 4.8) - all changes verified by the author before submission

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Packages the standalone Vespa crypto CLI as its own RPM subpackage so it can be installed and run without a full Vespa installation, by installing a self-contained fat JAR plus a launcher script that can locate it both in RPM installs and local dev builds.

Changes:

  • Update vespa-crypto-cli-standalone.sh to resolve the fat JAR via an override env var and fallback search paths.
  • Install the fat-with-provided JAR and standalone launcher via vespaclient-java/CMakeLists.txt.
  • Add a vespa-crypto-cli-standalone RPM subpackage that ships only the launcher and fat JAR and depends on a headless JRE.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
vespaclient-java/src/main/sh/vespa-crypto-cli-standalone.sh Adds a robust JAR discovery chain (env override, installed path, local target/) and improved failure handling.
vespaclient-java/CMakeLists.txt Installs the standalone launcher and the fat-with-provided JAR into the standard install tree.
dist/vespa.spec Introduces an RPM subpackage for the standalone crypto CLI and ensures the launcher is owned by that subpackage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vespaclient-java/CMakeLists.txt Outdated
Comment thread vespaclient-java/src/main/sh/vespa-crypto-cli-standalone.sh
gjoranv added 2 commits June 5, 2026 16:28
- Resolve fat JAR via env var, installed lib/jars, then target/
- Enables RPM installation while preserving local dev usage
- Install fat JAR + standalone script via CMake
- Add vespa-crypto-cli-standalone subpackage; no Vespa dep, JRE only
- Allows running the crypto CLI without a Vespa install
@gjoranv gjoranv force-pushed the gjoranv/crypto-cli-standalone-jar-path branch from dedfc29 to e946abb Compare June 5, 2026 14:29
@gjoranv gjoranv requested a review from bjorncs June 5, 2026 14:30
@gjoranv gjoranv merged commit 08c2946 into master Jun 5, 2026
4 checks passed
@gjoranv gjoranv deleted the gjoranv/crypto-cli-standalone-jar-path branch June 5, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants