-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (33 loc) · 1.29 KB
/
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
41
42
.PHONY: dev run db.reset
dev:
mix deps.get
run:
# Note that this will run aganst wherever your AWS... env vars are pointed at
iex -S mix
run_against_local:
METRIST_API_HOST=localhost:4443 \
METRIST_DISABLE_TLS_VERIFICATION=1 \
METRIST_INSTANCE_ID=`hostname` \
METRIST_API_TOKEN=fake-api-token-for-dev \
METRIST_RUN_GROUPS=local-development \
iex -S mix
generate_build_info:
mkdir -p priv/
echo Revision: `git rev-parse --short HEAD` >priv/build.txt
echo Date: `date` >>priv/build.txt
echo Build-Host: `hostname` >>priv/build.txt
release: generate_build_info
docker build -t orchestrator:`git rev-parse --short HEAD` --build-arg GITHUB_REF=`git rev-parse --symbolic-full-name HEAD` .
# These tests exercise (or rather demonstrate) how Erlexec works. Given
# that these tests are full with external dependencies and timeouts,
# only run these if you suspect something fishy or if you want to
# (re)confirm that this bit is indeed still as advertised.
integration_test:
npm --prefix ./test/integration/test_monitor/ ci
mix test --include external
local_release:
MIX_ENV=prod mix do compile, release --overwrite
tail_log_dev:
aws logs tail --region=us-east-1 --follow --since=0m dev1-orchestrator-logs
tail_log_prod:
aws logs tail --region=us-west-2 --follow --since=0m prod-orchestrator-logs