blob: 3c891b8b75d472e1e5566cda1451af544b020623 (
plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
(define (make-dir-parents dir-path)
(unless (access? dir-path F_OK)
(make-dir-parents (dirname dir-path))
(mkdir dir-path)))
(register-services
(make <service>
#:docstring "Cardano Test network ssh tunnel, node & psql"
#:provides '(testnet-ssh)
#:start (make-forkexec-constructor
(list "ssh" "-NTv"
"-o" "ServerAliveInterval=60"
"-o" "ExitOnForwardFailure=yes"
"-o" "StreamLocalBindUnlink=yes"
"-L" "/tmp/alinatn.socket:/run/cardano-node-testnet/socket"
"-L" "54321:localhost:5432"
"-R" "3005:localhost:3005" ;; Push to VPS vasil the block producer on 3005
"cardano@alina")
#:log-file "/tmp/testnet-ssh.log")
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:respawn? #t))
(register-services
(make <service>
#:docstring "Cardano Testnet wallet"
#:provides '(testnet-wallet)
#:start (make-forkexec-constructor
(list "cardano-wallet"
;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"serve"
"+RTS" "-T" "-RTS"
"--port" "8091"
"--node-socket" "/tmp/alinatn.socket"
"--database" (string-append (getenv "HOME") "/test-cardano/testnet/wallet")
"--testnet" (string-append (getenv "HOME") "/test-cardano/config/testnet-byron-genesis.json"))
#:log-file (string-append (getenv "HOME") "/test-cardano/testnet/log/wallet.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requires '(testnet-ssh)))
(register-services
(make <service>
#:docstring "Cardano Main network ssh tunnel"
#:provides '(mainnet-ssh)
#:start (make-forkexec-constructor
(list "ssh" "-NTv"
"-o" "ServerAliveInterval=60"
"-o" "ExitOnForwardFailure=yes"
"-o" "StreamLocalBindUnlink=yes"
"-L" "/tmp/alinamn.socket:/run/cardano-node-mainnet/socket"
"-L" "54320:localhost:5432"
"cardano@nina")
#:log-file "/tmp/mainnet-ssh.log")
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:respawn? #t))
(register-services
(make <service>
#:docstring "Mainnet wallet"
#:provides '(mainnet-wallet)
#:start (make-forkexec-constructor
(list ;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"cardano-wallet"
"serve"
"+RTS" "-T" "-RTS"
"--node-socket" "/tmp/alinamn.socket"
"--database" (string-append (getenv "HOME") "/test-cardano/main/wallet")
"--mainnet")
#:log-file (string-append (getenv "HOME") "/test-cardano/main/log/wallet.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requires '(mainnet-ssh)))
(register-services
(make <service>
#:docstring "Vasil devnet node"
#:provides '(vasil-devnet)
#:start (make-forkexec-constructor
(list ;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"/home/titan/dev/cardano/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-node-1.35.0/x/cardano-node/build/cardano-node/cardano-node"
"run"
"+RTS" "-N2" "-A16m" "-qg" "-qb" "-RTS"
"--database-path" (string-append (getenv "HOME") "/test-cardano/dev-vasil/node")
"--socket-path" (string-append (getenv "HOME") "/test-cardano/dev-vasil/vasil.socket")
"--port" "3004"
"--config" (string-append (getenv "HOME") "/dev/cardano/cardano-world/docs/environments/vasil-dev/config.json")
"--topology" (string-append (getenv "HOME") "/dev/cardano/cardano-world/docs/environments/vasil-dev/relay-topology.json")
)
#:log-file (string-append (getenv "HOME") "/test-cardano/dev-vasil/log/node.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:respawn? #t))
(register-services
(make <service>
#:docstring "Vasil devnet block producer"
#:provides '(vasil-bp)
#:start (make-forkexec-constructor
(list ;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"/home/titan/dev/cardano/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-node-1.35.0/x/cardano-node/build/cardano-node/cardano-node"
"run"
"+RTS" "-N2" "-A16m" "-qg" "-qb" "-RTS"
"--database-path" (string-append (getenv "HOME") "/test-cardano/dev-vasil/bp-node")
"--socket-path" (string-append (getenv "HOME") "/test-cardano/dev-vasil/bp-vasil.socket")
"--port" "3005"
"--config" (string-append (getenv "HOME") "/dev/cardano/cardano-world/docs/environments/vasil-dev/config-bp.json")
"--topology" (string-append (getenv "HOME") "/dev/cardano/cardano-world/docs/environments/vasil-dev/block-producer-topology.json")
"--shelley-kes-key" (string-append (getenv "HOME") "/dev/cardano/emacs-wallet/keys/demo/kes.skey")
"--shelley-vrf-key" (string-append (getenv "HOME") "/dev/cardano/emacs-wallet/keys/demo/vrf.skey")
"--shelley-operational-certificate" (string-append (getenv "HOME") "/dev/cardano/emacs-wallet/keys/demo/node.cert")
)
#:environment-variables (list (string-append "LD_LIBRARY_PATH=" (getenv "HOME") "/.local/lib"))
#:log-file (string-append (getenv "HOME") "/test-cardano/dev-vasil/log/bp-node.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requires '(testnet-ssh)
#:respawn? #t))
(register-services
(make <service>
#:docstring "Vasil db sync"
#:provides '(vasil-db-sync)
#:start (make-forkexec-constructor
(list
"/home/titan/dev/cardano/cardano-db-sync/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-db-sync-13.0.0/build/cardano-db-sync/cardano-db-sync"
"--config" (string-append (getenv "HOME") "/dev/cardano/cardano-world/docs/environments/vasil-dev/db-sync-config.json")
"--socket-path" (string-append (getenv "HOME") "/test-cardano/dev-vasil/bp-vasil.socket")
"--state-dir" (string-append (getenv "HOME") "/test-cardano/dev-vasil/ledger-state")
"--schema-dir" (string-append (getenv "HOME") "/dev/cardano/cardano-db-sync/schema")
)
#:environment-variables (list (string-append "PGPASSFILE=" (getenv "HOME") "/test-cardano/config/pgpass-vasil"))
#:log-file (string-append (getenv "HOME") "/test-cardano/dev-vasil/log/db-sync.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requires '(vasil-bp)
#:respawn? #t))
(register-services
(make <service>
#:docstring "Cardano Vasil cncli sync"
#:provides '(vasil-cncli-sync)
#:start (make-forkexec-constructor
(list "cncli"
"sync" "--host" "127.0.0.1" "--port" "3005"
"--network-magic" "9"
"--db" (string-append (getenv "HOME") "/test-cardano/dev-vasil/blocklog.db")
)
#:log-file (string-append (getenv "HOME") "/test-cardano/dev-vasil/log/cncli.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requires '(vasil-bp)))
(register-services
(make <service>
#:docstring "Cardano Vasil wallet"
#:provides '(vasil-wallet)
#:start (make-forkexec-constructor
(list "cardano-wallet"
;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"serve"
"+RTS" "-T" "-RTS"
"--port" "8093"
"--node-socket" (string-append (getenv "HOME") "/test-cardano/dev-vasil/vasil.socket")
"--database" (string-append (getenv "HOME") "/test-cardano/dev-vasil/wallet")
"--testnet" (string-append (getenv "HOME") "/dev/cardano/cardano-world/docs/environments/vasil-dev/byron-genesis.json")
)
#:log-file (string-append (getenv "HOME") "/test-cardano/dev-vasil/log/wallet.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requires '(vasil-devnet)))
|