This repository was archived by the owner on Feb 16, 2024. It is now read-only.
Commit 008965d
committed
Implement stacks and services commands (#36)
This PR adds two new subcommands:
* Stacks to install ready-to-use product sets
* Services which allows users to list and access the running services (#10)
The structure of the `stacks.yaml` still needs to be discussed with @lfrancke and might be adopted to the porter.yaml style.
Listing of services is a mechanism i came up with, so is ready to review as is :)
To test the stack command run
```
cargo r --additional-stack-files stacks.yaml stack install druid-superset-s3 -k
```
To test the listing of services (this command was run after installing the stack `druid-superset-s3` and a bunch of other products)
```
cargo r -- services ls
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/stackablectl services ls`
PRODUCT NAME NAMESPACE ENDPOINTS EXTRA INFOS
airflow airflow default webserver-airflow: http://172.18.0.4:31206 Admin user: airflow, password: airflow
druid druid default router-http: http://172.18.0.4:32126
coordinator-http: http://172.18.0.4:30347
hbase simple-hbase default regionserver: 172.18.0.4:32413
ui: http://172.18.0.4:32051
metrics: 172.18.0.4:30504
hdfs simple-hdfs default datanode-default-0-metrics: 172.18.0.4:32607
datanode-default-0-data: 172.18.0.4:30655
datanode-default-0-http: http://172.18.0.4:32340
datanode-default-0-ipc: 172.18.0.4:31295
namenode-default-0-metrics: 172.18.0.3:31541
namenode-default-0-http: http://172.18.0.3:31669
namenode-default-0-rpc: 172.18.0.3:32286
journalnode-default-0-metrics: 172.18.0.5:30631
journalnode-default-0-http: http://172.18.0.5:31961
journalnode-default-0-https: https://172.18.0.5:30133
journalnode-default-0-rpc: 172.18.0.5:31222
hive simple-hive-derby default hive: 172.18.0.4:30560
metrics: 172.18.0.4:31796
superset superset default external-superset: http://172.18.0.3:30067 Admin user: admin, password: admin
trino simple-trino default coordinator-http: http://172.18.0.5:31395
coordinator-metrics: 172.18.0.5:32214
zookeeper druid-zookeeper default zk: 172.18.0.3:32220
zookeeper simple-zk default zk: 172.18.0.5:32548
minio minio-druid default http: http://172.18.0.5:30054 Third party service
console-http: http://172.18.0.5:31771 Admin user: root, password: rootroot
```1 parent 2f3ae9b commit 008965d
File tree
40 files changed
+2902
-448
lines changed- .github/workflows
- docs
- modules/ROOT
- images
- pages
- commands
- readme/images
- go-helm-wrapper
- src
- stacks
- airflow
- druid-superset-s3
- trino-superset-s3
40 files changed
+2902
-448
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
193 | 205 | | |
194 | 206 | | |
195 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
43 | 61 | | |
44 | 62 | | |
45 | 63 | | |
46 | | - | |
| 64 | + | |
47 | 65 | | |
48 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments