debian-forge-composer/cmd/osbuild-composer
Brian C. Lane ea05f400e6 cloudapi: Listen on /run/cloudapi/api.socket
Add a local socket for communicating with the cloudapi. It is started by
osbuild-composer.socket and is located at /run/cloudapi/api.socket

cloudapi requests can be passed to it using curl like this:

curl -k --unix-socket /run/cloudapi/api.socket --header 'Content-Type: application/json' \
--data request.json http://localhost/api/image-builder-composer/v2/compose

A simple request.json looks like this:

{
  "distribution": "fedora-38",
  "image_request":
    {
      "architecture": "x86_64",
      "image_type": "guest-image",
      "upload_options": {},
      "repositories": [
          {
            "name": "fedora",
            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-38&arch=x86_64",
            "check_gpg": false
          },
          {
            "name": "updates",
            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=updates-released-f38&arch=x86_64",
            "check_gpg": false
          }
      ]
    }
}
2024-01-15 11:48:35 +01:00
..
testdata templates/composer: Verify against mass sso and rh sso 2022-02-24 09:48:12 +01:00
composer.go remove old prometheus listener 2023-07-19 10:56:36 +02:00
config.go composer: cleanup unused code related to fluentd sidecar 2023-12-18 11:46:23 +01:00
config_test.go config: don't show azure-eap7-rhui in weldr 2023-03-30 18:40:12 +02:00
main.go cloudapi: Listen on /run/cloudapi/api.socket 2024-01-15 11:48:35 +01:00