NebraLtd / helium-miner-software

Software for Nebra (and third party) Helium Miners
https://nebra.io/hnt
MIT License
93 stars 48 forks source link

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

Open shawaj opened 2 years ago

shawaj commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

Resolved in #414

shawaj commented 2 years ago

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

https://github.com/NebraLtd/helium-miner-software/pull/414#discussion_r839258765

shawaj commented 2 years ago

Also see https://github.com/NebraLtd/helium-miner-software/issues/385#issuecomment-1064816488