-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 710 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 710 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
27
28
29
30
31
32
33
34
35
36
37
38
# Intel Copyright © 2021, Intel Corporation.
APP_NAME := moonshot
BUILDER_DOCKER_IMG := ubuntu
APP_RUNNER_DOCKER := $(USER)/$(APP_NAME)-runner
override DOCKER_REGISTRY := $(and $(DOCKER_REGISTRY),$(DOCKER_REGISTRY)/)
DOCKER_BUILD=docker build
CMD=docker run \
-v ${CURDIR}:${CURDIR} \
-w ${CURDIR} \
--rm \
-u `id -u`:`id -g` \
-e HOME=${HOME} \
$(BUILDER_DOCKER_IMG) \
echo $@
.PHONY: all clean install package test check
all: clean package
install:
$(CMD)
test:
$(CMD)
check:
$(CMD)
package: install
docker build --tag $(DOCKER_REGISTRY)$(APP_RUNNER_DOCKER) .
ifdef DOCKER_REGISTRY
docker push $(DOCKER_REGISTRY)$(APP_RUNNER_DOCKER)
endif
deploy:
docker run --rm $(APP_RUNNER_DOCKER)