-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cloudapi: Add ability to skip uploading and save image locally
During development it can be very useful to store the results locally instead of uploading to a remote system. This implements a development only option to help with that. To use it you need to add OSBUILD_LOCALSAVE to the server's environment. This can be done by editing /usr/lib/systemd/system/osbuild-composer.service and adding: Environment="OSBUILD_LOCALSAVE=1" You can then use an 'upload_options' object to skip trying to upload to the default service for the type of image, eg: "image_requests": [ { "architecture": "x86_64", "image_type": "guest-image", "upload_options": { "local_save": true }, ... }] The results will be saved to /var/lib/osbuild-composer/artifacts/UUID/ using the default filename for the image type. If local_save is used without OSBUILD_LOCALSAVE being set it will return an error with id=36 saying 'local_save is not enabled'.
- Loading branch information
Showing
4 changed files
with
195 additions
and
128 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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.