-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: master
Are you sure you want to change the base?
Conversation
Change-type: patch Signed-off-by: Ryan Cooke <ryan@balena.io>
There was a problem hiding this 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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor tab inconsistency here
if (signal != null) { | ||
if (signal === 'SIGTERM' || signal === 'SIGINT') { | ||
if (this.osProc != null) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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?
Can one of the admins verify this patch? |
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