-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 915 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
.PHONY:
SHELL := /bin/bash
export PROJECT = rust-book
# ==============================================================================
# Local
format:
rustfmt ./src/*
release:
cargo build --release
ls target/release
# ==============================================================================
# Docker compose
up:
docker-compose -p ${PROJECT} -f deployments/docker-compose/docker-compose.yml up --detach --remove-orphans
up-debug:
docker-compose -p ${PROJECT} -f deployments/docker-compose/docker-compose.yml -f deployments/docker-compose/docker-compose-debug.yml up --detach --remove-orphans
down:
docker-compose -p ${PROJECT} -f deployments/docker-compose/docker-compose.yml down --remove-orphans
restart: down up
logs:
docker-compose -p ${PROJECT} -f deployments/docker-compose/docker-compose.yml logs -f
ps:
docker-compose -p ${PROJECT} -f deployments/docker-compose/docker-compose.yml ps