Newer
Older
-include build/base.Makefile
-include build/docker.Makefile
@echo " init.dev - init development environment"
@echo " test - run test suite"
@echo " log - tail log file"
@echo " run - start app"
@echo " run.debug - start app in debug mode"
@echo " docker.init - create docker volume for engine socket"
AURA_ENGINE_CORE_SOCKET := "aura_engine_socket"
AURA_ENGINE_CORE_CONFIG := ${CURDIR}/config/engine-core.docker.ini
AURA_AUDIO_STORE_SOURCE := ${CURDIR}/audio/source
AURA_AUDIO_STORE_PLAYLIST := ${CURDIR}/audio/playlist
AURA_AUDIO_STORE_FALLBACK := ${CURDIR}/audio/fallback
AURA_LOGS := ${CURDIR}/logs
TIMEZONE := "Europe/Vienna"
--name $(APP_NAME) \
--network="host" \
--mount type=tmpfs,destination=/tmp \
--device /dev/snd \
--group-add audio \
-v "$(AURA_ENGINE_CORE_SOCKET)":"/srv/socket" \
-v "$(AURA_ENGINE_CORE_CONFIG)":"/etc/aura/engine-core.ini":ro \
-v "$(AURA_AUDIO_STORE_SOURCE)":"/var/audio/source":ro \
-v "$(AURA_AUDIO_STORE_PLAYLIST)":"/var/audio/playlist":ro \
-v "$(AURA_AUDIO_STORE_FALLBACK)":"/var/audio/fallback":ro \
-u $(UID):$(GID) \
$(DOCKER_ENTRY_POINT) \
autoradio/$(APP_NAME)
# Targets
codespell $(wildcard *.md) docs src tests config contrib
sudo apt install -y
codespell
(cd tests && liquidsoap engine_test_suite.liq)
(cd src && liquidsoap --verbose --debug ./engine.liq)
docker.init::
@echo "Creating Docker Volume for Engine Socket at '$(AURA_ENGINE_CORE_SOCKET)'"
docker volume create aura_engine_socket