-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.routeros
More file actions
47 lines (33 loc) · 959 Bytes
/
Makefile.routeros
File metadata and controls
47 lines (33 loc) · 959 Bytes
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
ifneq (,$(wildcard ./.env))
include .env
export
endif
ROS_SSH ?= admin@192.168.88.1
ROS_PATH ?= raid1-part1/traefik
ROS_IMAGE_PATH ?= images
ROS_ROOT_PATH ?= root
ROS_PLUGIN_PATH ?= plugins
ROS_CELLAR_PATH ?= cellar
scp-tars:
scp *.tar $(ROS_SSH):/$(ROS_PATH)-$(ROS_IMAGE_PATH)
scp-wasm:
scp -r plugins/* $(ROS_SSH):/$(ROS_PATH)-$(ROS_PLUGIN_PATH)
wasm-grain:
scp plugins/src/wasm-grain/*.wasm $(ROS_SSH):/$(ROS_PATH)-$(ROS_PLUGIN_PATH)/src/wasmtest
scp plugins/src/wasm-grain/.*.yml $(ROS_SSH):/$(ROS_PATH)-$(ROS_PLUGIN_PATH)/src/wasmtest
rosssh:
ssh $(ROS_SSH)
proxyrestart:
ssh $(ROS_SSH) '$$proxyrestart'
proxytest:
curl -k https://`echo $(ROS_SSH) | awk '{FS="@"; print $2}'`/$(URIPATH)
proxytail:
ssh -t $(ROS_SSH) ':do { $$proxytail; } on-error={/quit}; :delay 5s; /quit'
proxysh:
ssh -t $(ROS_SSH) '$$proxysh; /quit'
proxyscript:
ssh -t $(ROS_SSH) '$$proxyscript; /quit'
viros:
vi Makefile.routeros
vienv:
vi .env