Skip to content

Commit

Permalink
Light miner: Remove dbus container
Browse files Browse the repository at this point in the history
* remove dbus container
  • Loading branch information
pritamghanghas committed Mar 27, 2022
1 parent eb6d47f commit 6f51c32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ Repo: [github.com/NebraLtd/hm-gatewayrs](https://github.com/NebraLtd/hm-gatewayr

This container is the actual Helium Gateway-rs software (from upstream), with the required configuration files added.

## DBus Session

Repo: [github.com/balenablocks/dbus](https://github.com/balenablocks/dbus)

This container doesn't serve any purpose any more and will be removed.

# Quick Start

This is a guide to help you get started with the repository and get it running on your local device. This guide is focused on pushing the repository onto a Raspberry Pi using Balena.
Expand Down
4 changes: 2 additions & 2 deletions settings.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[versions]
FIRMWARE_VERSION=2022.03.07.0-2
DIAGNOSTICS_VERSION=fb63618
CONFIG_VERSION=e5ac58c
CONFIG_VERSION=6866eec
PKTFWD_VERSION=b95cc46
GATEWAY_VERSION=409c974
GATEWAY_VERSION=d3b1c78

[quectel_modem]
MODEM_SERIAL0=/dev/ttyUSB0
Expand Down
17 changes: 0 additions & 17 deletions templates/docker-compose.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ services:
depends_on:
- helium-miner
- diagnostics
- dbus-session
environment:
- FIRMWARE_VERSION={{FIRMWARE_VERSION}}
- FIRMWARE_SHORT_HASH={{ENV.FIRMWARE_SHORT_HASH}}
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
- DBUS_SESSION_BUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
privileged: true
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- miner-storage:/var/data
- dbus:/session/dbus
labels:
io.balena.features.sysfs: 1
io.balena.features.kernel-modules: 1
Expand Down Expand Up @@ -48,15 +45,12 @@ services:
- {{I2C_DEVICE}}:{{I2C_DEVICE}}
restart: on-failure
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
- FIRMWARE_VERSION={{FIRMWARE_VERSION}}
- I2C_DEVICE={{I2C_DEVICE}}

diagnostics:
image: nebraltd/hm-diag:{{DIAGNOSTICS_VERSION}}
depends_on:
- helium-miner
- dbus-session
environment:
- FIRMWARE_VERSION={{FIRMWARE_VERSION}}
- FIRMWARE_SHORT_HASH={{ENV.FIRMWARE_SHORT_HASH}}
Expand All @@ -81,17 +75,6 @@ services:
io.balena.features.procfs: 1
io.balena.features.dbus: 1

dbus-session:
image: balenablocks/dbus:rpi-0.0.2
restart: always
volumes:
- dbus:/session/dbus
environment:
- DBUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
- FIRMWARE_VERSION={{FIRMWARE_VERSION}}
- FIRMWARE_SHORT_HASH={{ENV.FIRMWARE_SHORT_HASH}}

volumes:
miner-storage:
pktfwdr:
dbus:

0 comments on commit 6f51c32

Please sign in to comment.