Skip to content

Commit

Permalink
[Elao - App - Docker] Get rid of docker compose project arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo committed May 31, 2022
1 parent 115e282 commit 2280700
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
4 changes: 1 addition & 3 deletions elao.app.docker/.manala/Makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ _CURRENT_DIR = $(patsubst ./%,%,.$(patsubst $(realpath $(CURDIR)/$(_DIR))%,%,$(C
# Project #
###########

PROJECT_NAME = {{ .Vars.project.name }}

define project_host
$(PROJECT_NAME).{{ .Vars.project.domain }}$(if $(1),:{{ .Vars.project.ports_prefix }}$(shell printf "%02d" $(1)))
{{ .Vars.project.name }}.{{ .Vars.project.domain }}$(if $(1),:{{ .Vars.project.ports_prefix }}$(shell printf "%02d" $(1)))
endef

-include $(_DIR)/.manala/make/text.mk
Expand Down
2 changes: 2 additions & 0 deletions elao.app.docker/.manala/docker/compose.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: {{ .Vars.project.name }}

services:

{{- if .Vars.system.mysql.version }}
Expand Down
2 changes: 2 additions & 0 deletions elao.app.docker/.manala/docker/compose/integration.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: app

services:

#######
Expand Down
4 changes: 0 additions & 4 deletions elao.app.docker/.manala/docker/make.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ _DOCKER_COMPOSE_FILE = \
$(if $(_MUTAGEN_COMPOSE),$(_DIR)/.manala/docker/compose/mutagen.yaml) \
$(if $(_GIT_CONFIG),$(_DIR)/.manala/docker/compose/git.yaml) \
$(if $(_GITHUB_CONFIG),$(_DIR)/.manala/docker/compose/github.yaml)
_DOCKER_COMPOSE_PROJECT_NAME = $(PROJECT_NAME)
_DOCKER_COMPOSE_PROJECT_DIRECTORY = $(_DIR)/.manala/docker
_DOCKER_COMPOSE_PROFILE = development
_DOCKER_COMPOSE_EXEC_SERVICE = app
_DOCKER_COMPOSE_EXEC_USER = app
Expand All @@ -72,9 +70,7 @@ endif
ifndef DOCKER
define _docker_compose
$(_DOCKER_COMPOSE_ENV) \
$(if $(_DOCKER_COMPOSE_PROJECT_NAME),COMPOSE_PROJECT_NAME=$(_DOCKER_COMPOSE_PROJECT_NAME)) \
$(_DOCKER_COMPOSE) \
$(if $(_DOCKER_COMPOSE_PROJECT_DIRECTORY),--project-directory $(_DOCKER_COMPOSE_PROJECT_DIRECTORY)) \
$(if $(_DOCKER_COMPOSE_PROFILE),--profile $(_DOCKER_COMPOSE_PROFILE)) \
$(foreach FILE, $(_DOCKER_COMPOSE_FILE), \
--file $(FILE) \
Expand Down
5 changes: 0 additions & 5 deletions elao.app.docker/.manala/github/system/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ runs:
run: |
echo "::group::🐳 Docker pull"
docker-compose \
--project-directory ./.manala/docker \
--profile integration \
--file ./.manala/docker/compose.yaml \
--file ./.manala/docker/compose/integration.yaml \
Expand Down Expand Up @@ -82,8 +81,6 @@ runs:
MANALA_USER_ID=$(id -u) \
MANALA_GROUP_ID=$(id -g) \
docker-compose \
--project-directory ./.manala/docker \
--project-name app \
--profile integration \
--file ./.manala/docker/compose.yaml \
--file ./.manala/docker/compose/integration.yaml \
Expand All @@ -103,8 +100,6 @@ runs:
run: |
echo "::group::${{ inputs.shell_group }}"
docker-compose \
--project-directory ./.manala/docker \
--project-name app \
--profile integration \
--file ./.manala/docker/compose.yaml \
--file ./.manala/docker/compose/integration.yaml \
Expand Down

0 comments on commit 2280700

Please sign in to comment.