-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
100 lines (78 loc) · 1.95 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
skipTests = false
version = 2.1-SNAPSHOT
current_dir = $(shell pwd)
mvn_exec = mvn -Dmaven.test.skip=${skipTests}
port = 8085
user=administrator
password=password
all: clean install
clean:
${mvn_exec} clean
install:
${mvn_exec} install
launch:
export ROCK_HOME=$(shell pwd)/target/rock-${version}-dist/rock-${version} && \
cd target/rock-${version}-dist/rock-${version} && \
chmod +x ./bin/rock && \
./bin/rock
debug:
export ROCK_HOME=$(shell pwd)/target/rock-${version}-dist/rock-${version} && \
export JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=8003,suspend=n && \
cd target/rock-${version}-dist/rock-${version} && \
chmod +x ./bin/rock && \
./bin/rock
deb:
mvn clean install -Pci-build
log:
tail -f target/rock-${version}-dist/rock-${version}/logs/rock.log
rlog:
tail -f target/rock-${version}-dist/rock-${version}/logs/Rserve.log
test: status stop start
status:
curl --user ${user}:${password} localhost:${port}/rserver
@echo
@echo
start:
curl -X PUT --user ${user}:${password} localhost:${port}/rserver
@echo
@echo
stop:
curl -X DELETE --user ${user}:${password} localhost:${port}/rserver
@echo
@echo
_log:
curl -X GET --user ${user}:${password} -H "Accept: text/plain" localhost:${port}/rserver/_log?limit=10
@echo
@echo
packages:
curl --user ${user}:${password} localhost:${port}/rserver/packages
@echo
@echo
packages-datashield:
curl --user ${user}:${password} localhost:${port}/rserver/packages/_datashield
@echo
@echo
package:
curl --user ${user}:${password} localhost:${port}/rserver/package/${n}
@echo
@echo
check:
curl -v localhost:${port}/_check
@echo
@echo
info:
curl -v localhost:${port}/_info
@echo
@echo
sessions:
curl -X GET --user ${user}:${password} localhost:${port}/r/sessions
@echo
@echo
sessions-close:
curl -X DELETE --user ${user}:${password} localhost:${port}/r/sessions
@echo
@echo
session:
curl -X GET --user ${user}:${password} localhost:${port}/r/session/${sid}
@echo
@echo