Deployment of assets in preconfigured repositories
Files can be deployed in preconfigured Nexus repositories.
The mechanism is started by the configuration key repository_component_uploads.
Files can only be used from the volume repository_component_uploads.
You must therefore store these in the volume before starting Dogus.
In a multinode environment, the files must be stored using the additionalMounts mechanism.
In general, the Dogu uses the Nexus Components REST API to copy the files to the repositories.
The configuration repository_component_uploads is based on the official API.
An upload must therefore contain exactly the keys of the form fields. Also, the name of the target repository.
Example
Official Nexus API call
curl -v -u admin:admin123 -X POST 'http://nexus:8081/service/rest/v1/components?repository=raw_repository_name' \
-F raw.directory=exampleDirectory -F raw.asset1=@/absolute/path/to/the/local/file/pub.key -F raw.assetN.filename=filenameDogu configuration repository_component_uploads
"[{\"repository\": \"raw_repository_name\" ,\"raw.directory\": \"exampleDirectory\", \"raw.asset1\": \"@/absolute/path/to/the/local/file/pub.key\", \"raw.asset1.filename\": \"filename\"}]"Please note: To ensure data consistency, the Dogu saves all component IDs created by the technical users used. When the dogu is restarted, these components are deleted and recreated.