Skip to content

Example on how to setup a simple project to build RHIVOS/AutoSD

License

Notifications You must be signed in to change notification settings

rhadp/rhas-builder-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rhas-builder-example

Example project demonstrating how to build and test RHIVOS/AutoSD images with sample automotive applications.

Overview

This repository contains:

  • Sample automotive applications (src/) that demonstrate SOME/IP communication
    • engine-service: Simple service emitting reverse gear events
    • radio-service: Radio emulator with volume control
    • radio-client: Command-line interface for the radio service
  • Image customization manifest (manifests/simple.aib.yml)
  • Integration with Red Hat Automotive Image Builder
  • Jumpstarter-based testing workflow for virtual devices

Prerequisites

  • Access to Red Hat OpenShift Dev Spaces
  • Jumpstarter client configuration
  • Repository webhook configured for automated builds (optional)

Getting Started

Create a workspace

Navigate to Red Hat OpenShift Dev Spaces and import the repository.

Initialize Jumpstarter

Once the workspace is started, initialize Jumpstarter:

.scripts/init-jumpstarter

This creates a new Jumpstarter client for the current user.

Build the OS image

With a webhook configured to trigger builds on Red Hat OpenShift, pushing changes to GitHub will automatically create a new OS image. The built image will be uploaded to an AWS S3 bucket.

The image configuration is defined in manifests/simple.aib.yml, which specifies packages, services, and authentication settings.

Access the virtual device

List available exporters:

jmp get exporters

Get a lease on one of the exporters:

jmp shell --selector type=virtual

Now you are inside the Jumpstarter shell and you can interact with the device:

j --help

This lists all available commands the exporter supports.

Next, "flash" the OS image onto the virtual device:

.scripts/flash

The script uses the OS image from the previous build by default.

In case you do not want to build a new image first, use an existing image instead:

j flasher flash https://rhadp-aib-cdn.s3.us-east-2.amazonaws.com/prebuilt/autosd9-qemu.qcow2

Test the OS image

Boot the virtual device and login:

j power on && j console start-console

Use root as user with password password to login.

You can exit the shell on the virtual device with the usual exit command.

Cleanup

To drop out of the Jumpstarter shell, hit Ctrl-B 3 times.

This will also end your lease on the exporter, making it available for other users or clients.

bump

About

Example on how to setup a simple project to build RHIVOS/AutoSD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published