-
Notifications
You must be signed in to change notification settings - Fork 0
/
sharpdev.yml
82 lines (60 loc) · 2.62 KB
/
sharpdev.yml
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
version: 1.0
envfile: .env
values:
SECRETD: '{\"secret\":\"$PASSD\"}'
SECRET: '{\"secret\":\"$PASS\"}'
sharpcd_internal: ./internal/sharpcd
setup: |
go mod tidy
go build -o ./internal/sharpcd ./src
scripts:
server: |
sharpdev kill
sudo sharpcd_internal server > /dev/null 2>&1 &
serveropen: |
sharpdev kill
sudo sharpcd_internal server
default: |
sharpdev server
sharpdev client_test_different_url_and_password
sharpdev client
sharpdev client_test_password_fail
sharpdev kill
kill: |
sudo apt-get install -y lsof
sudo lsof -ti :5666 | sudo xargs --no-run-if-empty kill -9
shared: |
sudo docker-compose -f "./internal/sharpcd-data/docker/external_task/docker-compose.yml" down
$(sudo docker volume rm externalv) > /dev/null 2>&1 || true
$(sudo docker network rm externalv) > /dev/null 2>&1 || true
client: |
sharpcd_internal --secret $PASSD
clientonly:
sharpcd_internal --secret $PASSD
client_test_different_url_and_password: |
sharpcd_internal --secret $PASSD --remotefile https://raw.githubusercontent.com/SharpSet/sharpcd/dev/testing/configs/different_url/sharpcd.yml
client_test_password_fail: |
sharpcd_internal --secret "Wrong" --remotefile https://raw.githubusercontent.com/SharpSet/sharpcd/dev/testing/configs/passwords/sharpcd.yml
trak2: |
sharpcd_internal --secret $PASSD trak $_ARG1 $_ARG2
trak3: |
sharpcd_internal --secret $PASSD trak $_ARG1 $_ARG2 $_ARG3
trakone: |
sharpdev trak3 job local $_ARG1
trakall: |
sharpdev trak2 alljobs local
traklist: |
sharpdev trak2 list local
traklogs: |
sharpdev trak3 logs local $_ARG1
filter: sharpcd_internal addfilter https://raw.githubusercontent.com/SharpSet/
remove: sharpcd_internal removefilter https://raw.githubusercontent.com/SharpSet/
token: sharpcd_internal changetoken $_ARG1
alljobsd: curl -k -X POST -d SECRETD https://localhost:5666/api/jobs
alljobs: curl -k -X POST -d SECRET https://173.312.252.82:5666/api/jobs
logsfeed: curl -k -X POST -d SECRETD https://localhost:5666/api/logsfeed/$_ARG1
job: curl -k -X POST -d SECRETD https://localhost:5666/api/job/$_ARG1
logs: curl -k -X POST -d SECRETD https://localhost:5666/api/logs/$_ARG1
logsremote: curl -k -X POST -d SECRET https://mcaq.me:5666/api/logs/$_ARG1
keygen: |
sudo openssl req -x509 -nodes -days 730 -newkey rsa:2048 -keyout /home/coder/code-server/go/src/sharpCD/internal/sharpcd-data/private/server.key -out /home/coder/code-server/go/src/sharpCD/internal/sharpcd-data/private/server.crt -config /home/coder/code-server/go/src/sharpCD/testing/openssl.conf -extensions 'v3_req'