Skip to content
Snippets Groups Projects
Commit 1ee05bc8 authored by David Trattnig's avatar David Trattnig
Browse files

feat: Make target for Docker RUN

parent d51b7434
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,34 @@ help:: ...@@ -12,6 +12,34 @@ help::
@echo " run - start app" @echo " run - start app"
$(call docker_help) $(call docker_help)
# Settings
ENGINE_API_DB_HOST := 0.0.0.0
ENGINE_API_DB_NAME := aura_engine_api
ENGINE_API_DB_USER := aura_engine_api
ENGINE_API_DB_PASS := 1234
AURA_ENGINE_API_CONFIG := ${CURDIR}/config/engine-api.docker.ini
AURA_LOGS := ${CURDIR}/logs
TIMEZONE := "Europe/Vienna"
DOCKER_RUN = @docker run \
--name $(APP_NAME) \
--network="host" \
--mount type=tmpfs,destination=/tmp \
-e TZ=$(TIMEZONE) \
-e ENGINE_API_DB_HOST=$(ENGINE_API_DB_HOST) \
-e ENGINE_API_DB_NAME=$(ENGINE_API_DB_NAME) \
-e ENGINE_API_DB_USER=$(ENGINE_API_DB_USER) \
-e ENGINE_API_DB_PASS=$(ENGINE_API_DB_PASS) \
-v aura_engine_socket:"/srv/socket" \
-v "$(AURA_ENGINE_API_CONFIG)":"/etc/aura/engine-api.ini":ro \
-v "$(AURA_LOGS)":"/srv/logs" \
-u $(UID):$(GID) \
$(DOCKER_ENTRY_POINT) \
autoradio/$(APP_NAME)
# Targets # Targets
init.app:: pyproject.toml init.app:: pyproject.toml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment