Skip to content

Commit

Permalink
[compose] Remove devices for ovos_phal and use privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Jan 20, 2024
1 parent 77c45ff commit 04f49a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
4 changes: 1 addition & 3 deletions compose/.env-raspberrypi
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
DISPLAY=:0
GPIO_GID=997
HIVEMIND_CONFIG_FOLDER=~/hivemind/config
HIVEMIND_CONFIG_PHAL_FOLDER=~/hivemind/config/phal
HIVEMIND_SHARE_FOLDER=~/hivemind/share
I2C_GID=994
HIVEMIND_USER=hivemind
INPUT_GID=102
OVOS_CONFIG_FOLDER=~/ovos/config
OVOS_CONFIG_PHAL_FOLDER=~/ovos/config/phal
OVOS_SHARE_FOLDER=~/ovos/share
OVOS_USER=ovos
PULL_POLICY=always
RENDER_GID=106
SPI_GID=995
TMP_FOLDER=~/ovos/tmp
TZ=America/Montreal
VERSION=alpha
Expand Down
27 changes: 0 additions & 27 deletions compose/docker-compose.raspberrypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,10 @@ services:
ovos_phal:
healthcheck:
disable: true
devices:
- /dev/gpiomem
- /dev/i2c-1
- /dev/spidev0.0
- /dev/spidev0.1
group_add:
- "$GPIO_GID"
- "$I2C_GID"
- "$SPI_GID"

ovos_phal_admin:
healthcheck:
disable: true
devices:
- /dev/gpiomem
- /dev/i2c-1
- /dev/spidev0.0
- /dev/spidev0.1
group_add:
- "$GPIO_GID"
- "$I2C_GID"
- "$SPI_GID"

ovos_listener:
healthcheck:
Expand All @@ -43,12 +25,3 @@ services:
ovos_core:
healthcheck:
disable: true
devices:
- /dev/gpiomem
- /dev/i2c-1
- /dev/spidev0.0
- /dev/spidev0.1
group_add:
- "$GPIO_GID"
- "$I2C_GID"
- "$SPI_GID"
3 changes: 1 addition & 2 deletions compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ services:
TZ: $TZ
XDG_RUNTIME_DIR: $XDG_RUNTIME_DIR
network_mode: host
devices:
- /dev/snd
privileged: true
volumes:
- ~/.config/pulse/cookie:/home/${OVOS_USER}/.config/pulse/cookie:ro
- ${OVOS_CONFIG_FOLDER}:/home/${OVOS_USER}/.config/mycroft
Expand Down

0 comments on commit 04f49a0

Please sign in to comment.