-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (36 loc) · 870 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
IMAGE_PREFIX := localhost/immich-tools
api: api-build postgres
podman run \
--net host \
--env-file .env-file \
${IMAGE_PREFIX}-api
jumble: jumble-build postgres camera
podman run \
--net host \
--env-file .env-file \
-v ${PWD}/camera:/user/bcdf8310-430f-48de-a4d2-0d2a1868e901 \
${IMAGE_PREFIX}-jumble
syncthing: syncthing-build postgres
podman run -ti \
--net host \
--env-file .env-file \
${IMAGE_PREFIX}-syncthing
import: import-build camera
podman run \
--net host \
--env-file .env-file \
-v ${PWD}/files:/import \
${IMAGE_PREFIX}-import
harmonize: harmonize-build camera
podman run \
--net host \
--env-file .env-file \
-v ${PWD}/camera:/sync \
${IMAGE_PREFIX}-harmonize
.PHONY: camera
camera:
test -e camera/thumbnails
%-build:
podman build services/$* -t ${IMAGE_PREFIX}-$*
postgres:
nc -v 127.0.0.1 5432 -w0