Skip to content

Sample automotive image builder manifest

Refer to this sample automotive image builder manifest as a complete example of the configuration that you perform as part of the Building applications for AutoSD workflow:

  • One RPM installed in the default ASIL location.
  • One RPM installed in the QM partition.
  • One ASIL container.
  • One QM container.
# Example manifest building an image with two applications talking to each
# other over IPC (here an unix domain socket) between the QM partition and
# outside of it

name: ipc_between_qm_asil_2

content:
    rpms:
      # For testing the image only:
      - openssh-server
      - openssh-clients

    container_images:
      # Get the auto-apps container image from gitlab
      - source: "localhost/ipc_server"
        tag: latest
        name: "localhost/ipc_server"
        containers-transport: containers-storage

    make_dirs:
      - path: /etc/containers/systemd/qm.container.d
        mode: 0755
        parents: true
        exist_ok: true

    add_files:
      - path: /etc/containers/systemd/qm.container.d/10-ipc-demo.conf
        source_path: ./10-ipc-demo.conf
      - path: /etc/containers/systemd/ipc_server.container
        source_path: ./ipc_server.container
      - path: /etc/systemd/system/ipc_server.socket
        source_path: ./ipc_server.socket

    systemd:
      enabled_services:
        # Enable ssh daemon - Required for testing the image only
        - sshd.service
        - ipc_server.socket

qm:
  content:
    repos:
      - id: copr-sample-apps
        baseurl: https://download.copr.fedorainfracloud.org/results/alexl/cs9-sample-images/centos-stream-9-$arch/
    rpms:
      - podman
      - vsomeip3-routingmanager
      - dlt-daemon
      # For testing the image only:
      - openssh-server
      - openssh-clients

    container_images:
      # Get the auto-apps container image from gitlab
      - source: "localhost/ipc_client"
        tag: latest
        name: "localhost/ipc_client"
        containers-transport: containers-storage

    add_files:
      - path: /etc/containers/systemd/ipc_client.container
        source_path: ./ipc_client.container

    systemd:
      enabled_services:
        # Enable the dlt daemon
        - dlt

auth:
  # "password"
  root_password: $6$xoLqEUz0cGGJRx01$H3H/bFm0myJPULNMtbSsOFd/2BnHqHkMD92Sfxd.EKM9hXTWSmELG8cf205l6dktomuTcgKGGtGDgtvHVXSWU.
  # Required for testing the image only:
  sshd_config:
    PasswordAuthentication: true
    PermitRootLogin: true

© Red Hat