-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
27 lines (20 loc) · 1.04 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
DOCKER=docker
FLAGS=
MOUNT_OPTION=
# uncomment the following lines to use podman instead of docker
DOCKER=podman
FLAGS=--userns=keep-id
MOUNT_OPTION=:Z
.PHONY: serve build default build-image deploy
default: buildimage serve
buildimage:
$(DOCKER) build -t openhsr/www.openhsr.ch docker/
$(DOCKER) run -i -t --rm --name www.openhsr.ch -v $(shell pwd):/src/$(MOUNT_OPTION) -p 4000:4000 $(FLAGS) openhsr/www.openhsr.ch bundle install --clean
build:
$(DOCKER) run -i -t --rm --name www.openhsr.ch -v $(shell pwd):/src/$(MOUNT_OPTION) -p 4000:4000 $(FLAGS) openhsr/www.openhsr.ch bundle exec jekyll build
enter:
$(DOCKER) run -i -t --rm --name www.openhsr.ch -v $(shell pwd):/src/$(MOUNT_OPTION) -p 4000:4000 $(FLAGS) openhsr/www.openhsr.ch bash
serve:
$(DOCKER) run -i -t --rm --name www.openhsr.ch -v $(shell pwd):/src/$(MOUNT_OPTION) -p 4000:4000 $(FLAGS) openhsr/www.openhsr.ch bundle exec jekyll serve
updatedeps:
$(DOCKER) run -i --rm --name www.openhsr.ch -v $(shell pwd):/src/$(MOUNT_OPTION) -p 4000:4000 $(FLAGS) openhsr/www.openhsr.ch bundle update