-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·28 lines (19 loc) · 1.01 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
CONTAINER_USER="$(shell id -u):$(shell id -g)"
IMAGE="ghcr.io/getzola/zola:v0.19.1"
CONTAINER_NAME="blog.williamdes.eu"
PROJECT_NAME="blog.williamdes.eu"
version:
docker run --name ${CONTAINER_NAME} --rm -it ${IMAGE} --version
init:
docker run --name ${CONTAINER_NAME} --rm -it --user ${CONTAINER_USER} -v ${PWD}:/app --workdir /app ${IMAGE} init ${PROJECT_NAME}
build:
docker run --name ${CONTAINER_NAME} --rm --user ${CONTAINER_USER} -v ${PWD}:/app --workdir /app/${PROJECT_NAME} ${IMAGE} build
serve:
docker run --name ${CONTAINER_NAME} --rm --user ${CONTAINER_USER} -v ${PWD}:/app --workdir /app/${PROJECT_NAME} --network host ${IMAGE} serve --interface 0.0.0.0 --port 8111 --base-url localhost
date:
date +'%Y-%m-%dT%H:%M:%SZ' --utc
cleanup:
find ./${PROJECT_NAME}/ -name *.jpg -or -name *.jpeg
@echo "Cleaning up..."
find ./${PROJECT_NAME}/ -name *.jpg -print0 -exec exiftool -overwrite_original "-gps*=" {} \;
find ./${PROJECT_NAME}/ -name *.jpeg -print0 -exec exiftool -overwrite_original "-gps*=" {} \;