forked from biniyam69/flexile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 766 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: .setup
COMPOSE_PROJECT_NAME ?= flexile
DOCKER_COMPOSE_CMD ?= docker compose
LOCAL_DETACHED ?= true
LOCAL_DOCKER_COMPOSE_CONFIG = $(if $(and $(filter Linux,$(shell uname -s)),$(shell test ! -e /proc/sys/fs/binfmt_misc/WSLInterop && echo true)),docker-compose-local-linux.yml,docker-compose-local.yml)
local: .setup
node docker/createCertificate.js
COMPOSE_PROJECT_NAME=$(COMPOSE_PROJECT_NAME) \
$(DOCKER_COMPOSE_CMD) -f docker/$(LOCAL_DOCKER_COMPOSE_CONFIG) up $(if $(filter true,$(LOCAL_DETACHED)),-d)
stop_local:
COMPOSE_PROJECT_NAME=$(COMPOSE_PROJECT_NAME) \
$(DOCKER_COMPOSE_CMD) -f docker/$(LOCAL_DOCKER_COMPOSE_CONFIG) down
.setup:
mkdir -p docker/tmp/postgres
mkdir -p docker/tmp/redis
.PHONY: ghpr
ghpr:
@./scripts/create_pr.sh || true