-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (31 loc) · 800 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Directory to save podcast
# Mopidy saves this in /var/lib/mopidy/media
export APP = rhasspy-handler
export APP_PATH := $(shell pwd)
export PODCAST_DIR=media
export NPM_VERBOSE ?= 1
export DEVICE=raspberry
export REGISTRY=ghcr.io
export DOCKER_USERNAME=cristianpb
dummy := $(shell touch artifacts)
include ./artifacts
${PODCAST_DIR}:
mkdir -p ${PODCAST_DIR}
build:
@export EXEC_ENV=production; \
docker compose build
dev:
@export EXEC_ENV=development; \
docker compose up --build
up: ${PODCAST_DIR}
@export EXEC_ENV=production; \
docker compose up
test: ${PODCAST_DIR}
npm run test
# sync code
push:
rsync -avz dist raspi:~/rhasspyhandler/
pull:
rsync -avz raspi:~/rhasspyhandler/rhasspy .
#./run-venv.sh --profile es
#mosquitto_sub -h localhost -v -t 'hermes/#' -p 1883