-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 805 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
default: clean
check:
cargo fmt --all --check && cargo clippy -- -D warnings
serve: clean
fuser -k 7878/tcp || true && cargo run
test:
cargo test
builder:
docker build -t rustworthy/rustbuilder . -f Docker/builder/rust.Dockerfile && docker push rustworthy/rustbuilder
# DEV
dev/build:
docker-compose -f Docker/compose.dev.build.yaml build
dev/up-detached:
docker-compose -f Docker/compose.dev.yaml up -d
dev/up:
docker-compose -f Docker/compose.dev.yaml up
dev/down:
docker-compose -f Docker/compose.dev.yaml down
dev/drop:
docker-compose -f Docker/compose.dev.yaml down -v
# OPTIMIZED BINARY
prod/build:
docker-compose -f Docker/compose.build.yaml build
# CI
ci/up-detached:
docker-compose -f Docker/compose.ci.yaml up -d
ci/drop:
docker-compose -f Docker/compose.ci.yaml down -v