forked from Kudaraidee/yiimp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
22 lines (18 loc) · 1.46 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
image=yiimp
version=2024.03r01
MAILADDRESS='[email protected]'
DOMAINNAME='yiimp.example.com'
build:
git submodule init && git submodule update
podman build --tag $(image) --target image-prod -f Dockerfile.yiimp
build-devel:
git submodule init && git submodule update
podman build --tag $(image) --target image-devel -f Dockerfile.yiimp
push:
podman push $(image) ghcr.io/tpfuemp/$(image):$(version)
run:
podman rm -i $(image) && podman run -dt --name=$(image) --network=host -v ./config/letsencrypt:/etc/letsencrypt -v ./config:/etc/yiimp -v ./log:/var/log/apache2 -v ./log:/var/log/yiimp -v ./log:/var/www/yaamp/runtime -v ./config/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf $(image)
run-init-letsencrypt:
podman rm -i $(image) && podman run -dt --name=$(image) --network=host -e MAILADDRESS=$(MAILADDRESS) -e DOMAINNAME=$(DOMAINNAME) -v ./config/letsencrypt:/etc/letsencrypt -v ./config:/etc/yiimp -v ./log:/var/log/apache2 -v ./log:/var/log/yiimp -v ./log:/var/www/yaamp/runtime -v ./config/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf $(image) /usr/local/bin/letsencrypt-yiimp-initial-cert.sh
run-devel:
podman rm -i $(image) && podman run -dt --name=$(image) --network=host -v ./config/letsencrypt:/etc/letsencrypt -v ./config:/etc/yiimp -v ./yiimp/web:/var/www/ -v ./log:/var/log/apache2 -v ./log:/var/log/yiimp -v ./log:/var/www/yaamp/runtime -v ./config/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf $(image) /usr/bin/supervisord