-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
18 lines (14 loc) · 857 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
GO_SRC_FILES := $(wildcard internal/*/*.go)
RS_SRC_FILES := $(wildcard reasoner/src/*.rs)
mortar-server: $(GO_SRC_FILES) main.go
go build -o mortar-server
cp mortar-server docker/mortar-server/.
reasoner: $(RS_SRC_FILES)
cd reasoner && cargo build --release
cp reasoner/target/release/reasoner docker/reasoner/.
run-server: mortar-server
MORTAR_HTTP_ADDRESS=localhost MORTAR_HTTP_PORT=5001 MORTAR_DB_HOST=localhost MORTAR_DB_PORT=5434 MORTAR_DB_USER=mortarchangeme MORTAR_DB_PASSWORD=mortarpasswordchangeme MORTAR_DB_DATABASE=mortar MORTAR_REASONER_ADDRESS=localhost:3030 ./mortar-server
build-single-container-hack:
cd docker/single-container-hack && docker build -t hack1 -f Dockerfile .
run-single-container: build-single-container-hack
docker run -v ${PWD}:${PWD} -w ${PWD} -v /var/run/docker.sock:/var/run/docker.sock -it --rm hack1:latest