Skip to content

Commit 6cb1117

Browse files
committed
add more docs
1 parent e4dd6c7 commit 6cb1117

File tree

4 files changed

+111
-34
lines changed

4 files changed

+111
-34
lines changed

Changes

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Revision history for Sparky
22

33
{{$NEXT}}
44

5-
0.2.7 2024-06-13T23:57:00Z
5+
0.2.7 2024-06-14T11:59:00Z
66

77
- Huge overhaul of documentation
88
- UI - subtasks
99
- UI - multiple select
1010
- Artifacts (not yet documented)
11-
11+
1212
0.2.6 2024-05-31T11:20:00Z
1313

1414
- Spruce up CSS

README.md

+14-32
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,13 @@ Sparky uses [Sparrowdo](https://github.com/melezhik/sparrowdo) to launch jobs in
193193
\--------------------/ [ ssh host ]
194194
```
195195

196-
By default job scenarios get executed _on the same machine you run Sparky at_, but you can change this to _any remote host_ setting Sparrowdo section in `sparky.yaml` file:
196+
By default job scenarios get executed _on the same machine you run Sparky at_,
197+
to run jobs on _remote host_ set sparrowdo section in `sparky.yaml` file:
197198

198199
```bash
199200
$ nano ~/.sparky/projects/teddy-bear-app/sparky.yaml
200201
```
201202

202-
And define worker configuration:
203-
204203
```yaml
205204
sparrowdo:
206205
host: '192.168.0.1'
@@ -214,7 +213,8 @@ Follow [sparrowdo cli](https://github.com/melezhik/sparrowdo#sparrowdo-cli) docu
214213

215214
### Skip bootstrap
216215

217-
Sparrowdo bootstrap takes a while, if you don't need bootstrap ( sparrow client is already installed at a target host ) use `bootstrap: false` option:
216+
Sparrowdo clinent bootstrap might take some time, disable bootstrap by
217+
( if client is already installed on target host ) using `bootstrap: false` option:
218218

219219
```yaml
220220
sparrowdo:
@@ -416,43 +416,25 @@ tls:
416416

417417
`SPARKY_USE_TLS` enables SSL mode and `tls` section has paths to ssl certificate ( key and certificate parts ).
418418

419-
# Command line client
420-
421-
To trigger Sparky job in terminal use `sparky-runner.raku` cli:
422-
423-
```bash
424-
$ sparky-runner.raku --dir=/home/user/.sparky/projects/teddy-bear-app
425-
```
426-
427-
Or just:
428-
429-
```bash
430-
$ cd ~/.sparky/projects/teddy-bear-app && sparky-runner.raku
431-
```
432-
433-
## Sparky runtime parameters
419+
# Additional topics
434420

435-
Runtime parameters could be overridden by command line ( `--root`, `--work-root` )
421+
## Sparky cli
436422

437-
### Root directory
423+
Sparky cli allows to trigger jobs in terminal.
438424

439-
This is Sparky root directory, or directory where Sparky looks for jobs descriptions:
425+
Read more at [docs/cli.md](https://github.com/melezhik/sparky/blob/master/docs/cli.md)
440426

441-
```bash
442-
~/.sparky/projects/
443-
```
427+
## Sparky Environment variables
444428

445-
### Work directory
429+
Use environment variables to tune Sparky configuration.
446430

447-
This is working directory where sparky might place some stuff, useless at the moment:
431+
Read more at [docs/env.md](https://github.com/melezhik/sparky/blob/master/docs/env.md)
448432

449-
```bash
450-
~/.sparky/work
451-
```
433+
# Glossary
452434

453-
# Sparky Environment variables
435+
Some useful glossary.
454436

455-
Read more at [docs/env.md](https://github.com/melezhik/sparky/blob/master/docs/env.md)
437+
Read more at [docs/glossary.md](https://github.com/melezhik/sparky/blob/master/docs/glossary.md)
456438

457439
# CSS
458440

docs/cli.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Cli
2+
3+
Command line client for Sparky
4+
5+
## Trigger jobs
6+
7+
To trigger Sparky job in terminal use `sparky-runner.raku` cli:
8+
9+
```bash
10+
$ sparky-runner.raku --dir=/home/user/.sparky/projects/teddy-bear-app
11+
```
12+
13+
Or just:
14+
15+
```bash
16+
$ cd ~/.sparky/projects/teddy-bear-app && sparky-runner.raku
17+
```
18+
19+
## Sparky runtime parameters
20+
21+
Runtime parameters could be overridden by command line ( `--root`, `--work-root` )
22+
23+
### root directory
24+
25+
Directory where scheduller looks for job scenarios, by default:
26+
27+
```bash
28+
~/.sparky/projects/
29+
```
30+
31+
### work directory
32+
33+
Directory where scheduller keeps internal jobs data:
34+
35+
```bash
36+
~/.sparky/work
37+
```

docs/glossary.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Glossary
2+
3+
Some useful glossary
4+
5+
# Job aka Sparky aka Sparky project
6+
7+
Raku scenario gets executed on some event and does some useful job
8+
9+
# Sparky scenario
10+
11+
Implimentation of Sparky job written on Raku
12+
13+
# Build
14+
15+
A specific instance of Sparky job. Usually reports are visibale though UI and
16+
might have some artifacts
17+
18+
# Report
19+
20+
Log of Sparky job exececution
21+
22+
# Artifact
23+
24+
Some byproducts ( technucally are files) attached to a build and visible through UI
25+
26+
# UI aka Sparky web UI
27+
28+
Web application to run Sparky jobs and get their reports
29+
30+
# Sparrowdo
31+
32+
A client to run Sparky jobs on (remote) hosts and docker containers
33+
34+
# Sparrow
35+
36+
Underlying automation framework to execute Sparky job
37+
38+
# sparky.yaml
39+
40+
YAML defintion of Sparky job meta information, like input patrameters, UI controls,
41+
triggering logic, etc. Every Sparky job has a sparky.yaml file
42+
43+
44+
# root directory
45+
46+
Directory where scheduller looks for job scenarios, by default:
47+
48+
```bash
49+
~/.sparky/projects/
50+
```
51+
52+
# work directory
53+
54+
Directory where scheduller keeps internal jobs data:
55+
56+
```bash
57+
~/.sparky/work
58+
```

0 commit comments

Comments
 (0)