-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
34 lines (27 loc) · 842 Bytes
/
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
31
32
33
34
IMAGE_NAME = "veupathdb/vdi-plugin-handler-server"
ifeq '$(shell command -v podman 2>&1 >/dev/null; echo $$?)' '0'
CONTAINER_CMD := podman
else
CONTAINER_CMD := docker
endif
default:
@echo "what are you doing?"
.PHONY: build
build:
@$(CONTAINER_CMD) compose \
-f docker-compose.dev.yml \
--env-file=.env build \
--build-arg GITHUB_USERNAME=${GITHUB_USERNAME} \
--build-arg GITHUB_TOKEN=${GITHUB_TOKEN}
.PHONY: up
up:
@mkdir -p '.tmp/mount/build-68'
@$(CONTAINER_CMD) compose -f docker-compose.dev.yml --env-file=.env up
.PHONY: down
down:
@$(CONTAINER_CMD) compose -f docker-compose.dev.yml --env-file=.env down --remove-orphans -v
@rm -rf '.tmp/mount/build-68/*'
docs/http-api.html: service/api.yml node_modules/.bin/redocly
@node_modules/.bin/redocly build-docs -o $@ $<
node_modules/.bin/redocly:
@npm i