-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
63 lines (43 loc) · 1.54 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: build-image run-image clean-container clean-image all
.PHONY: build-centos run-centos centos-shell
ifneq (,$(wildcard ./.env))
include .env
export
endif
build-image:
docker build -t build-rollbar_jvm_agent-image:latest .
build-centos:
docker build -f Dockerfile.centos -t build-rollbar_jvm_agent-image-centos:latest .
run-image:
docker run -it --rm --name build-rollbar_jvm_agent -v $(CURDIR)/target:/home/rust/src/target build-rollbar_jvm_agent-image
run-centos:
docker run -it --rm --name build-rollbar_jvm_agent-centos -v $(CURDIR)/target:/target build-rollbar_jvm_agent-image-centos
clean-container:
docker rm build-rollbar_jvm_agent
clean-image:
docker rmi build-rollbar_jvm_agent-image
centos-shell:
docker run -it build-rollbar_jvm_agent-image-centos:latest /bin/sh
all: build-image run-image
build-wasm:
wasm-pack build --out-dir ../../build/wasm crates/wasm
create-wasm-link: build-wasm
yarn --cwd ./build/wasm link
link-wasm: create-wasm-link
yarn --cwd ./examples/nextjs link rollbar-wasm
before-nextjs-example: link-wasm
yarn --cwd ./examples/nextjs install
nextjs-example: before-nextjs-example
yarn --cwd ./examples/nextjs dev
before-build-node:
yarn --cwd ./crates/node install
build-node: before-build-node
yarn --cwd ./crates/node build
create-node-link: build-node
yarn --cwd ./crates/node link
link-node: create-node-link
yarn --cwd ./examples/nodejs link rollbar-node
before-nodejs-example: link-node
yarn --cwd ./examples/nodejs install
nodejs-example: before-nodejs-example
node ./examples/nodejs/index.js