-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 711 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 711 Bytes
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
HOST_INDEX_LOCATION := /etc/cliff2/IndexDirectory
CLIFF_VERSION := 2.3.0
CLIFF_PORT := 8080
.PHONY: default
default: description
description:
@echo "Available commands:"
@echo " * buildindex"
@echo " * buildserver"
@echo " * run"
.PHONY: buildindex
buildindex:
docker build -t cliff_index -f ./Dockerfile.index .
docker run -t cliff_index /bin/true
docker cp `docker ps -q -n=1`:/CLAVIN/IndexDirectory $(HOST_INDEX_LOCATION)
.PHONY: buildserver
buildserver:
docker build --build-arg CLIFF_VERSION=$(CLIFF_VERSION) -t cliff:$(CLIFF_VERSION) -f ./Dockerfile.server .
.PHONY: run
run:
docker run -d -p $(CLIFF_PORT):8080 -v $(HOST_INDEX_LOCATION):/etc/cliff2/IndexDirectory cliff:$(CLIFF_VERSION)