Skip to content
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

cloudapi: Add ability to skip uploading and save image locally #3585

Merged
merged 1 commit into from
Aug 9, 2023

Commits on Aug 7, 2023

  1. 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'.
    bcl committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    4a35ed7 View commit details
    Browse the repository at this point in the history