-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
40 lines (29 loc) · 908 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
35
36
37
38
39
40
.PHONY: all release clean docker-build docker
BUILD_IMAGE ?= erlang:24-alpine
DOCKER_REPO := jfacorro/try_clojerl
DOCKER_TAG := $(shell git describe --tags --always 2>/dev/null || echo 0)
all:
@ rebar3 clojerl compile
repl:
@ rebar3 clojerl repl --apps try_clojerl
clean:
@ rm -rf _build rebar.lock
release: clean
@ rebar3 as prod do clojerl compile, clojerl release
start-release:
CODE_LOADING_MODE=interactive _build/prod/rel/try_clojerl/bin/try_clojerl console
docker-build: clean
@ docker run -i \
-v ${PWD}:/project \
-w /project \
${BUILD_IMAGE} scripts/build
docker: docker-build
@ docker build -t ${DOCKER_REPO}:${DOCKER_TAG} .
publish:
@ docker tag ${DOCKER_REPO}:${DOCKER_TAG} ${DOCKER_REPO}:latest
@ docker push ${DOCKER_REPO}:${DOCKER_TAG}
@ docker push ${DOCKER_REPO}:latest
docker-stop:
@ scripts/docker-stop
docker-start:
@ scripts/docker-start