Skip to content
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

Test docker-compose.yml with multiple interfaces exposed #386

Open
shawaj opened this issue Mar 3, 2022 · 5 comments
Open

Test docker-compose.yml with multiple interfaces exposed #386

shawaj opened this issue Mar 3, 2022 · 5 comments

Comments

@shawaj
Copy link
Member

shawaj commented Mar 3, 2022

Previously docker-compose.yml files with unavailable interfaces (such as i2c-7 on a raspberry pi) would fail to build on that device.

It seems that this might have been changed/fixed in balena but we need to test this further

Relates-to: #385

@shawaj
Copy link
Member Author

shawaj commented Mar 29, 2022

@marvinmarnold i tested this today on a rak unit - it does not seem to be a balena restriction per se.

The diagnostics container ran fine with both i2c-1 and i2c-7 exposed

miner container didn't - however perhaps it is due to diagnostics having privileged: true will test further

@shawaj
Copy link
Member Author

shawaj commented Mar 29, 2022

ok @marvinmarnold confirmed - if you have privileged: true you can have i2c-1 and i2c-7 declared and the containers will still run

if you do not have privileged: true then the containers hang

@shawaj
Copy link
Member Author

shawaj commented Mar 31, 2022

Resolved in #414

@shawaj
Copy link
Member Author

shawaj commented Mar 31, 2022

In fact, further to this, @MuratUrsavas has shown in #414 that we don't even need to declare the i2c devices if we use privileged: true

#414 (comment)

@shawaj
Copy link
Member Author

shawaj commented Mar 31, 2022

Also see #385 (comment)

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

No branches or pull requests

1 participant