-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (49 loc) · 1.58 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
## dcape-app-sopds Makefile:
## Backup pg databases via docker container with crond
#:
SHELL = /bin/bash
CFG ?= .env
CFG_BAK ?= $(CFG).bak
#- App name
APP_NAME ?= sopds
#- Docker image name
IMAGE ?= zveronline/sopds
#- Docker image tag
IMAGE_VER ?= 0.47
# ------------------------------------------------------------------------------
# app custom config
#- app root
APP_ROOT ?= $(PWD)
# If you need database, uncomment this var
USE_DB = yes
# If you need user name and password, uncomment this var
ADD_USER = yes
# Hostname for external access
#APP_SITE ?= lib.dev.lan
PERSIST_FILES = start.sh genre.sql
#- Database host
PGHOST ?= db
#- Relative path to library sources from DCAPE/var
LIB_PATH ?= Library
# ------------------------------------------------------------------------------
# if exists - load old values
-include $(CFG_BAK)
export
-include $(CFG)
export
# ------------------------------------------------------------------------------
# Find and include DCAPE_ROOT/Makefile
DCAPE_COMPOSE ?= dcape-compose
DCAPE_ROOT ?= $(shell docker inspect -f "{{.Config.Labels.dcape_root}}" $(DCAPE_COMPOSE))
ifeq ($(shell test -e $(DCAPE_ROOT)/Makefile.app && echo -n yes),yes)
include $(DCAPE_ROOT)/Makefile.app
else
include /opt/dcape/Makefile.app
endif
# -----------------------------------------------------------------------------
## Custom app targets
#:
## Rescan library
rescan: CMD=run app python3 manage.py sopds_scanner scan --verbose
rescan: dc
# ...