32 lines
606 B
Makefile
32 lines
606 B
Makefile
include vars.mk
|
|
build = ./build/expensesweb
|
|
image = $(registry)/$(repo)/fax-frontend:$(tag)
|
|
|
|
build:
|
|
make -C src build_release_alpine
|
|
|
|
build_image: build
|
|
podman buildx build -t $(image) .
|
|
|
|
push_image:
|
|
podman push $(image)
|
|
|
|
clean:
|
|
podman container rm esilva-fax-container-test --force
|
|
|
|
attach:
|
|
podman exec -u root -it esilva-fax-container zsh
|
|
|
|
attach-test:
|
|
podman exec -u root -it esilva-fax-container-test zsh
|
|
|
|
test: clean
|
|
podman run \
|
|
--name esilva-fax-container-test \
|
|
-v ./data.db:/data.db \
|
|
-v ./src/config.yml:/etc/fax/config.yml \
|
|
-p 8083:8083 \
|
|
-it esilva-fax zsh
|
|
|
|
debug: clean test
|