-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
31 lines (24 loc) · 1.14 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
TAG := latest
HOST_PORT := 8085
GUEST_PORT := 8085
REPOSITORY := libreosteo
APP := libreosteo
help:
@echo "Building LibreOsteo docker image"
build: build-http-ready build-sock-ready
build-http-ready:
@echo "Build LibreOsteo app (Http ready)"
docker login
docker buildx build --platform=linux/amd64,linux/arm64 -f Docker/build/http-ready/Dockerfile . -t $(REPOSITORY)/$(APP)-http:$(TAG) --output type=registry
build-sock-ready:
@echo "Build LibreOsteo app (Sock ready)"
docker login
docker buildx build --platform=linux/amd64,linux/arm64 -f Docker/build/sock-ready/Dockerfile . -t $(REPOSITORY)/$(APP)-sock:$(TAG) --output type=registry
build-postgres:
@echo "Build Postgresql (for libreosteo)"
docker build --progress=plain -f Docker/build/postgresql/Dockerfile . -t $(REPOSITORY)/$(APP)-pg:${TAG} --output type=docker
run:
docker run -d --rm --name $(APP)_app -p $(HOST_PORT):$(GUEST_PORT) --mount source=libreosteo-data,target=/Libreosteo/data --mount source=libreosteo-settings,target=/Libreosteo/settings $(REPOSITORY)/$(APP)-http:$(TAG)
run-pg:
docker-compose --env-file=.env -f Docker/deploy/pg/docker-compose.yml up
.DEFAULT_GOAL := help