mattcasters opened a new pull request, #8723:
URL: https://github.com/apache/hop/pull/8723

   ### Description
   Closes #8722.
   
   This PR adds Docker container environment variables to automatically 
download and install marketplace plugins before Apache Hop starts, following 
the precedent established for JDBC drivers (`HOP_DRIVERS_DOWNLOAD`).
   
   ### Key Changes
   1. **Container Entrypoints**:
      - Added `install_marketplace_plugins()` to 
`docker/resources/load-and-execute.sh` and `docker/resources/run-web.sh`.
      - Supported environment variables:
        - `HOP_PLUGINS_DOWNLOAD`: comma-separated plugin coordinates 
(`short-name`, `artifactId`, `artifactId:version`, or 
`groupId:artifactId:version`).
        - `HOP_PLUGINS_MAVEN_REPO`: base URL of the corporate Artifactory or 
custom Maven/Nexus repository.
        - `HOP_PLUGINS_REPO_USERNAME` / `HOP_PLUGINS_REPO_PASSWORD`: 
credentials for authenticated repositories.
        - `HOP_PLUGINS_REPO_AUTH_TYPE`: `auto` (default), `none`, `basic`, or 
`token`.
        - `HOP_PLUGINS_ENV_FILE`: optional path/URL to declarative 
`hop-env.yaml` / `hop-marketplace-repo.yaml` file.
   2. **Marketplace CLI (`hop marketplace install`)**:
      - Added `--repo-url <url>` option to allow downloading directly from 
custom repositories without prior manual registration in `hop-config.json`.
      - Added `--username`, `--password`, and `--auth-type` options to 
`InstallCommand`.
      - Added support for passing an HTTP/HTTPS URL directly to `--repo`.
   3. **Documentation**:
      - Added `Downloading Marketplace plugins` section in 
`docker-container.adoc`.
   4. **Tests**:
      - Added CLI parsing tests in `InstallCommandParsingTest.java`.
      - Added integration test 
`installCommandWithRepoUrlInstallsFromAdHocRepository` in 
`PluginInstallerTest.java`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to