-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (25 loc) · 1.3 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
29
30
.PHONY: docker-build
docker-build: ## Build docker image 'typo3-documentation-browsersync:local' for local debugging
docker build -t typo3-documentation-browsersync:local -f Dockerfile .
#docker composer up --build
.PHONY: docker-enter
docker-enter: ## Enter a locally build image
docker run -it --entrypoint=sh --rm \
-v "./Input:/project/Documentation" \
-v "./Output:/project/Documentation-GENERATED-temp" \
typo3-documentation-browsersync:local
.PHONY: watch
watch: ## Run the locally build image
docker run -it --rm \
-v "./Input:/project/Documentation" \
-v "./Output:/project/Documentation-GENERATED-temp" \
-p 5173:5173 \
typo3-documentation-browsersync:local
.PHONY: render-docs
render-docs: ## Render Documentation using typo3-documentation/render-guides
docker run --rm --pull always \
-v "./Input:/project/Documentation" \
-v "./Output:/project/Documentation-GENERATED-temp" \
ghcr.io/typo3-documentation/render-guides:latest --no-progress Documentation
# Within the container:
# docker run --rm --pull always -v "./Documentation:/project/Documentation" -v "./Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp" ghcr.io/typo3-documentation/render-guides:latest --no-progress Documentation