debian-forge-composer/distribution
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
..
Dockerfile-config remove Fedora 35 support 2023-01-06 11:34:50 +01:00
Dockerfile-fauxauth Dockerfile*: chown the copied files 2023-05-17 13:08:29 +02:00
Dockerfile-ubi Container: set the composer git revision during the build 2023-10-09 14:06:50 +02:00
Dockerfile-ubi-maintenance Dockerfile*: chown the copied files 2023-05-17 13:08:29 +02:00
Dockerfile-ubi-packer use app-sre packer image 2022-03-11 09:24:26 +01:00
Dockerfile-worker remove Fedora 35 support 2023-01-06 11:34:50 +01:00
osbuild-composer-api.socket internal/cloudapi: additional prometheus listener 2023-06-07 17:05:32 +02:00
osbuild-composer-prometheus.socket internal/cloudapi: additional prometheus listener 2023-06-07 17:05:32 +02:00
osbuild-composer.conf distribution: set permissions on api sockets 2020-05-20 01:55:26 +02:00
osbuild-composer.service spec: remove dnf-json service and socket 2022-06-01 11:36:52 +01:00
osbuild-composer.socket cloudapi: Listen on /run/cloudapi/api.socket 2024-01-15 11:48:35 +01:00
osbuild-local-worker.socket composer: split out the local worker socket 2020-11-17 17:01:18 +00:00
osbuild-remote-worker.socket sockets: clarify their descriptions 2020-11-17 17:01:18 +00:00
osbuild-remote-worker@.service spec: remove dnf-json service and socket 2022-06-01 11:36:52 +01:00
osbuild-worker@.service spec: remove dnf-json service and socket 2022-06-01 11:36:52 +01:00