-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (49 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
57 lines (49 loc) · 1.19 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
override PROJECT_NAME = my-blog
override JEKYLL_IMAGE = jekyll/jekyll:3.8.5
override JEKYLL_GEMS = faustocv_github_io_gems:/usr/local/bundle
install:
docker container run \
--rm \
--name $(PROJECT_NAME)-install \
-it \
-v $(shell pwd):/srv/jekyll \
-v $(JEKYLL_GEMS) \
$(JEKYLL_IMAGE) \
bundle install
run:
docker container run \
--rm \
--name $(PROJECT_NAME)-run \
-it \
-v $(shell pwd):/srv/jekyll \
-v $(JEKYLL_GEMS) \
-p 4000:4000 \
$(JEKYLL_IMAGE) \
bundle exec jekyll serve --host 0.0.0.0
ssh:
docker container run \
--rm \
--name $(PROJECT_NAME)-ssh \
-it \
-v $(shell pwd):/srv/jekyll \
-v $(JEKYLL_GEMS) \
$(JEKYLL_IMAGE) \
bash
build:
docker container run \
--rm \
--name $(PROJECT_NAME)-build \
-it \
-v $(shell pwd):/srv/jekyll \
-v $(JEKYLL_GEMS) \
$(JEKYLL_IMAGE) \
bundle exec jekyll build -t
htmlproofer: build
docker container run \
--rm \
--name $(PROJECT_NAME)-htmlproofer \
-it \
-v $(shell pwd):/srv/jekyll \
-v $(JEKYLL_GEMS) \
$(JEKYLL_IMAGE) \
sh -c "htmlproofer ./_site --disable-external --trace"