-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 670 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 670 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
IMAGE := hexpm/elixir:1.15.4-erlang-26.0.2-alpine-3.18.2
RUN_STANDARD := docker run --rm -v `pwd`:/app -w /app $(IMAGE)
all: build
up:
docker compose up
build:
$(RUN_STANDARD) sh -c 'apk update && mix do local.rebar --force, local.hex --force, \
deps.get, \
deps.compile --force, \
compile --plt'
testing:
$(RUN_STANDARD) sh -c 'apk update && MIX_ENV=test mix do local.hex --force, \
test'
iex:
$(RUN_STANDARD) iex -S mix
bash:
docker run --rm -t -v `pwd`:/app -w /app elixir:latest sh
format:
$(RUN_STANDARD) mix format