forked from input-output-hk/mithril
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (26 loc) · 875 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
.PHONY: all build test check debug run help doc
CARGO = cargo
all: test build
build:
${CARGO} build --release --features bundle_openssl
cp ../target/release/mithril-aggregator .
run: build
./mithril-aggregator serve
debug:
${CARGO} run -- -vvv serve
test:
${CARGO} test
check:
${CARGO} check --release --all-features --all-targets
${CARGO} clippy --release --all-features --all-targets
${CARGO} fmt --check
help:
@${CARGO} run -- -h
doc:
${CARGO} doc --no-deps --open
docker-build:
cd ../ && docker build -t mithril/mithril-aggregator -f mithril-aggregator/Dockerfile .
docker-build-ci: build
cd ../ && docker build -t mithril/mithril-aggregator -f mithril-aggregator/Dockerfile.ci --build-arg DOCKER_IMAGE_FROM --build-arg CARDANO_NODE_VERSION .
docker-run:
docker run --rm -p 8080:8080 --name='mithril-aggregator' mithril/mithril-aggregator serve