-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·33 lines (25 loc) · 834 Bytes
/
makefile
File metadata and controls
executable file
·33 lines (25 loc) · 834 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
include .env
BUILD_IMG=clojure-build-image
RUNTIME_CTR=compiled-clojure-on-jvm
.PHONY : run-docker docker-build docker-build-image native-build test clean-build
run-docker : docker-build-image
docker rm --force $(RUNTIME_CTR)
docker run --rm --env-file .env \
--publish $(PORT):$(PORT) \
--name $(RUNTIME_CTR) \
$(BUILD_IMG)
docker-build : docker-build-image
mkdir -p target
docker create --rm --name $(RUNTIME_CTR) \
$(BUILD_IMG)
docker cp $(RUNTIME_CTR):$(RUNTIME_CTR_DIR)/$(JAR_FILE) ./target/
docker rm --force $(RUNTIME_CTR)
docker-build-image :
docker build --file containerization/build.Dockerfile \
--tag $(BUILD_IMG) .
native-build : clean-build test
clojure -T:build uber
test :
clojure -M:test
clean-build :
clojure -T:build clean