forked from LibrePhotos/librephotos-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (20 loc) · 1.04 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
.PHONY: default build rename
include librephotos.env
REPLACE_NAMES=sed 's/__backend_name__/$(BACKEND_CONT_NAME)/g; s/__frontend_name__/$(FRONTEND_CONT_NAME)/g; s/__proxy_name__/$(PROXY_CONT_NAME)/g; s/__db_name__/$(DB_CONT_NAME)/g; s/__pgadmin_name__/$(PGADMIN_CONT_NAME)/g; s/__network_name__/$(NETWORK_NAME)/g'
default: build
build-dev: build-base build-dependencies
build: build-backend build-frontend build-proxy
build-base:
docker build -t reallibrephotos/librephotos-base:dev backend/base --no-cache
build-dependencies:
docker build -t reallibrephotos/librephotos-dependencies:dev backend/dependencies --no-cache
build-backend:
docker build -t reallibrephotos/librephotos:latest backend
build-frontend:
docker build -t reallibrephotos/librephotos-frontend:latest frontend
build-proxy:
docker build -t reallibrephotos/librephotos-proxy:latest proxy
rename:
$(REPLACE_NAMES) docker-compose.raw > docker-compose.yml
$(REPLACE_NAMES) docker-compose.dev.raw > docker-compose.dev.yml
$(REPLACE_NAMES) docker-compose.e2e.raw > docker-compose.e2e.yml