8000 add balena-os-in-container worker by rcooke-warwick · Pull Request #519 · balena-os/leviathan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add balena-os-in-container worker #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 8000 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 ryan@balena.io

Change-type: patch
Signed-off-by: Ryan Cooke <ryan@balena.io>
@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?
3 participants
0