Skip to content

Conversation

@rcooke-warwick
Copy link
Contributor

This adds a new worker that lets tests run on a balena-os in container device: https://github.com/balena-os/balenaos-in-container

You can use a saved docker image file, such as the ones generated by yocto jenkins jobs (balena-image.docker) to create a balenaos-in-container for that os version.

To run it, you can clone this branch, and run make container, then you can run the cloud test suite with it (with some modifications, such as commenting out preloading parts, and adding a line to write the config.json this required by the os-in-container tool)

Change-type: minor
Signed-off-by: Ryan Cooke [email protected]

Change-type: patch
Signed-off-by: Ryan Cooke <[email protected]>
@rcooke-warwick rcooke-warwick linked an issue Nov 5, 2021 that may be closed by this pull request
Copy link
Contributor

@jakogut jakogut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried running this, but I get a failure:
Bail out! Invalid MBR boot signature. Expected 0xAA55, but saw 0x0

Not sure where this is coming from, any suggestions?

this.dockerProc = exec('dockerd &')

// pulling from my own branch at the moment - maybe make a PR on that repo to allow for custom builds
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor tab inconsistency here

Comment on lines +73 to +75
if (signal != null) {
if (signal === 'SIGTERM' || signal === 'SIGINT') {
if (this.osProc != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be squashed to a single conditional

reports-storage:
services:
core:
privileged: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason the core service is being run privileged? This isn't required for the QEMU worker.

labels:
share: 'core-storage'
worker:
privileged: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto on the worker service

args:
- SKIP_INSTALL_BINARY=true
- INSTALL_DOCKER=true
pid: 'host'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to disable pid namespacing?

@resin-jenkins
Copy link
Contributor

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

balenaOS in container worker?

4 participants