-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (40 loc) · 1.24 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
playbook: clean
go build && ./xp playbook --config devopsxp.yaml -d
debug:
go build && ./xp playbook -d --config devopsxp.yaml
log:
go build && ./xp playbook -d -l --config devopsxp.yaml
cli:
go build && ./xp cli shell 127.0.0.1-88 -u xp -a "hostname" -L count
image: build
./xp cli image -i java:8 -a "-v /tmp:/data -u root -e OK=123" -L count "env|grep OK && java -version && whoami && for i in {1..3};do echo `date`;sleep 1;done"
shell:
go build && ./xp cli shell 127.0.0.1 -a "for i in {1..100};do date;sleep 1;done" -u lxp -T
systemd:
go build && ./xp cli systemd 127.0.0.1 -n docker -s status -u lxp
script:
go build && ./xp cli script 127.0.0.1 -u lxp -a test.sh
copy:
touch /tmp/123
go build && ./xp cli copy 127.0.0.1 -u lxp -S /tmp/123 -D /tmp/333
fetch: clean
touch /tmp/1abc
mkdir /tmp/fetch
go build && ./xp cli fetch 127.0.0.1 -u xp -S /tmp/1abc -D /tmp/fetch/2abc
ls -lh /tmp/fetch
template:
echo "hello {{.data}}" > /tmp/tmp.j2
go build && ./xp cli template 127.0.0.1 -u lxp -S template.service.j2 -D /tmp/docker.service
rm -f /tmp/tmp.j2
build:
go build && ./xp -h
help:
go run main.go -h
config:
go build && ./xp config
clean:
rm -rf /tmp/fetch
rm -f /tmp/1abc
rm -rf workspace
release:
goreleaser release