Skip to content

Commit d5fd2b8

Browse files
committed
feat(lva): add support for custom docker image and tag overrides
Update docker-compose to use environment variables with defaults for container image selection. Add documentation and example values to the .env configuration file.
1 parent ffdcdf0 commit d5fd2b8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

03-stage-linux-voice-assistant/01-linux-voice-assistant/files/lva/.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Linux-Voice-Assistant - Docker Environment Configuration
22
# Copy this file to .env and customize for your setup by 'cp .env.example .env'
33

4+
### Specify another docker image (optional):
5+
# LVA_IMAGE="ghcr.io/ohf-voice/linux-voice-assistant"
6+
# LVA_IMAGE_TAG="latest"
7+
48
### Enable debug mode (optional):
59
# ENABLE_DEBUG="1"
610

03-stage-linux-voice-assistant/01-linux-voice-assistant/files/lva/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
services:
33
# Fix permissions for wakeword_data and configuration volume
44
fix-permissions:
5-
image: "ghcr.io/ohf-voice/linux-voice-assistant:latest"
5+
image: "${LVA_IMAGE:-ghcr.io/ohf-voice/linux-voice-assistant}:${LVA_IMAGE_TAG:-latest}"
66
entrypoint: []
77
command: "chown -R ${LVA_USER_ID:-1000}:${LVA_USER_GROUP:-1000} /app/local /app/configuration /app/wakewords/custom /app/sounds/custom"
88
environment:
@@ -24,7 +24,7 @@ services:
2424
# Linux Voice Assistant
2525
linux-voice-assistant:
2626
container_name: linux-voice-assistant
27-
image: "ghcr.io/ohf-voice/linux-voice-assistant:latest"
27+
image: "${LVA_IMAGE:-ghcr.io/ohf-voice/linux-voice-assistant}:${LVA_IMAGE_TAG:-latest}"
2828
restart: unless-stopped
2929
network_mode: "host"
3030
user: "${LVA_USER_ID:-1000}:${LVA_USER_GROUP:-1000}"

0 commit comments

Comments
 (0)