forked from tpfuemp/yiimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
17 lines (14 loc) · 911 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
image=yiimp
version=2024.03r01
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 --name=$(image) --network=host -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-devel:
podman rm -i $(image) && podman run --name=$(image) --network=host -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