-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
622 lines (349 loc) · 18.1 KB
/
index.html
File metadata and controls
622 lines (349 loc) · 18.1 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="Ethan Hann">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="lang:clipboard.copied" content="Copied to clipboard">
<meta name="lang:search.language" content="en">
<meta name="lang:search.result.none" content="No matching documents">
<meta name="lang:search.result.one" content="1 matching document">
<meta name="lang:search.result.other" content="# matching documents">
<meta name="lang:search.tokenizer" content="[\s\-]+">
<link rel="shortcut icon" href="./images/favicon.ico">
<meta name="generator" content="mkdocs-0.17.2, mkdocs-material-2.2.0">
<title>InEngine.NET</title>
<link rel="stylesheet" href="./assets/stylesheets/application.5d3fffba.css">
<link rel="stylesheet" href="./assets/stylesheets/application-palette.fbd935c7.css">
<script src="./assets/javascripts/modernizr.1aa3b519.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700|Roboto+Mono">
<style>body,input{font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="./css/style.css">
</head>
<body data-md-color-primary="blue" data-md-color-accent="blue">
<svg class="md-svg">
<defs>
<svg xmlns="http://www.w3.org/2000/svg" width="416" height="448" viewBox="0 0 416 448" id="github"><path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19T128 352t-18.125-8.5-10.75-19T96 304t3.125-20.5 10.75-19T128 256t18.125 8.5 10.75 19T160 304zm160 0q0 10-3.125 20.5t-10.75 19T288 352t-18.125-8.5-10.75-19T256 304t3.125-20.5 10.75-19T288 256t18.125 8.5 10.75 19T320 304zm40 0q0-30-17.25-51T296 232q-10.25 0-48.75 5.25Q229.5 240 208 240t-39.25-2.75Q130.75 232 120 232q-29.5 0-46.75 21T56 304q0 22 8 38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0 37.25-1.75t35-7.375 30.5-15 20.25-25.75T360 304zm56-44q0 51.75-15.25 82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5T212 416q-19.5 0-35.5-.75t-36.875-3.125-38.125-7.5-34.25-12.875T37 371.5t-21.5-28.75Q0 312 0 260q0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25 30.875Q171.5 96 212 96q37 0 70 8 26.25-20.5 46.75-30.25T376 64q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34 99.5z"/></svg>
</defs>
</svg>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="drawer">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="search">
<label class="md-overlay" data-md-component="overlay" for="drawer"></label>
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink">
<a href="." title="InEngine.NET" class="md-header-nav__button md-logo">
<img src="./images/inengine-logo-32-alt.png" width="24" height="24">
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="drawer"></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic">
InEngine.NET
</span>
<span class="md-header-nav__topic">
Quickstart
</span>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--search md-header-nav__button" for="search"></label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="search"></label>
<div class="md-search__inner">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" required placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query">
<label class="md-icon md-search__icon" for="search"></label>
<button type="reset" class="md-icon md-search__icon" data-md-component="reset"></button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="result">
<div class="md-search-result__meta">
Type to start searching
</div>
<ol class="md-search-result__list"></ol>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
<a href="https://github.com/InEngine-NET/InEngine.NET" title="Go to repository" class="md-source" data-md-source="github">
<div class="md-source__icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<use xlink:href="#github" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
InEngine.NET
</div>
</a>
</div>
</div>
</div>
</nav>
</header>
<div class="md-container">
<nav class="md-tabs md-tabs--active" data-md-component="tabs">
<div class="md-tabs__inner md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href="." title="Home" class="md-tabs__link md-tabs__link--active">
Home
</a>
</li>
<li class="md-tabs__item">
<a href="commands/" title="Documentation" class="md-tabs__link">
Documentation
</a>
</li>
</ul>
</div>
</nav>
<main class="md-main">
<div class="md-main__inner md-grid" data-md-component="container">
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" data-md-level="0">
<label class="md-nav__title md-nav__title--site" for="drawer">
<span class="md-nav__button md-logo">
<img src="./images/inengine-logo-32-alt.png" width="24" height="24">
</span>
InEngine.NET
</label>
<div class="md-nav__source">
<a href="https://github.com/InEngine-NET/InEngine.NET" title="Go to repository" class="md-source" data-md-source="github">
<div class="md-source__icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<use xlink:href="#github" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
InEngine.NET
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-1" type="checkbox" id="nav-1" checked>
<label class="md-nav__link" for="nav-1">
Home
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
<label class="md-nav__title" for="nav-1">
Home
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active">
<input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="toc">
<label class="md-nav__link md-nav__link--active" for="toc">
Quickstart
</label>
<a href="." title="Quickstart" class="md-nav__link md-nav__link--active">
Quickstart
</a>
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#how-does-it-work" title="How does it work?" class="md-nav__link">
How does it work?
</a>
</li>
<li class="md-nav__item">
<a href="#how-does-queueing-work" title="How does queueing work?" class="md-nav__link">
How does queueing work?
</a>
</li>
<li class="md-nav__item">
<a href="#how-do-i-run-non-net-commands" title="How do I run non-.NET commands?" class="md-nav__link">
How do I run non-.NET commands?
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="license/" title="License" class="md-nav__link">
License
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-toggle md-nav__toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2">
<label class="md-nav__link" for="nav-2">
Documentation
</label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="1">
<label class="md-nav__title" for="nav-2">
Documentation
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="commands/" title="Commands" class="md-nav__link">
Commands
</a>
</li>
<li class="md-nav__item">
<a href="scheduling/" title="Scheduling" class="md-nav__link">
Scheduling
</a>
</li>
<li class="md-nav__item">
<a href="queuing/" title="Queuing" class="md-nav__link">
Queuing
</a>
</li>
<li class="md-nav__item">
<a href="configuration/" title="Configuration" class="md-nav__link">
Configuration
</a>
</li>
<li class="md-nav__item">
<a href="server/" title="Server" class="md-nav__link">
Server
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#how-does-it-work" title="How does it work?" class="md-nav__link">
How does it work?
</a>
</li>
<li class="md-nav__item">
<a href="#how-does-queueing-work" title="How does queueing work?" class="md-nav__link">
How does queueing work?
</a>
</li>
<li class="md-nav__item">
<a href="#how-do-i-run-non-net-commands" title="How do I run non-.NET commands?" class="md-nav__link">
How do I run non-.NET commands?
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content">
<article class="md-content__inner md-typeset">
<h1>Quickstart</h1>
<p>InEngine.NET is a plugin-based software application that allows <a href="./commands">commands</a> to be <a href="./queuing">queued</a>, <a href="./scheduling">scheduled</a>, and run directly.</p>
<h2 id="how-does-it-work">How does it work?<a class="headerlink" href="#how-does-it-work" title="Permanent link">¶</a></h2>
<p>InEngine.NET uses a plugin system to dynamically load .NET assemblies and execute code.
It also has a built-in command for launching external non-.NET programs.</p>
<p>Get started by pulling the binaries from the <a href="https://github.com/InEngine-NET/InEngine.NET/releases">latest release</a> on GitHub.</p>
<p>Then run the <strong>echo</strong> command from the core plugin:</p>
<div class="codehilite"><pre><span></span>inengine.exe <span class="nb">echo</span> --text<span class="s2">"Hello, world"</span>
</pre></div>
<p>Or if you're a Linux or Mac OS X fan (like me!), use the <strong>inengine</strong> shell script (<a href="http://www.mono-project.com/download/">Mono</a> is required):</p>
<div class="codehilite"><pre><span></span>inengine <span class="nb">echo</span> --text<span class="s2">"Hello, world"</span>
</pre></div>
<p>Instead of downloading binaries and runtimes, you can pull the latest Docker image:</p>
<div class="codehilite"><pre><span></span>docker pull ethanhann/inengine:latest
</pre></div>
<p>Now run a command in a container:</p>
<div class="codehilite"><pre><span></span>docker run --rm inengine <span class="nb">echo</span> --text<span class="s2">"Hello, world"</span>
</pre></div>
<h2 id="how-does-queueing-work">How does queueing work?<a class="headerlink" href="#how-does-queueing-work" title="Permanent link">¶</a></h2>
<p>Want to queue our example echo command to run in the background or possibly on another server?</p>
<p>Use the core plugin's <strong>queue:publish</strong> command:</p>
<div class="codehilite"><pre><span></span>inengine.exe queue:publish --plugin<span class="o">=</span>InEngine.Core --command<span class="o">=</span><span class="nb">echo</span> --args <span class="s2">"text=Hello, world"</span>
</pre></div>
<p>How do we consume that queued echo command?</p>
<p>Use the core plugin's <strong>queue:consume</strong> command:</p>
<div class="codehilite"><pre><span></span>inengine.exe queue:consume
</pre></div>
<h2 id="how-do-i-run-non-net-commands">How do I run non-.NET commands?<a class="headerlink" href="#how-do-i-run-non-net-commands" title="Permanent link">¶</a></h2>
<p>There is a special <strong>exec</strong> command in the core plugin that allows for the execution of any program you can run at the command line. </p>
<p>For example, create a python script called <strong>helloworld.py</strong>, make it executable, and add this to it:</p>
<div class="codehilite"><pre><span></span><span class="ch">#!/usr/bin/env python</span>
<span class="k">print</span> <span class="s1">'Hello, world!'</span>
</pre></div>
<p>Whitelist the "helloworld" executable in the <a href="./configuration">appsettings.json</a> file:</p>
<div class="codehilite"><pre><span></span><span class="p">{</span>
<span class="nt">"InEngine"</span><span class="p">:</span> <span class="p">{</span>
<span class="err">//</span> <span class="err">...</span>
<span class="nt">"ExecWhitelist"</span><span class="p">:</span> <span class="p">{</span>
<span class="nt">"helloworld"</span><span class="p">:</span> <span class="s2">"/path/to/helloworld.py"</span>
<span class="p">}</span>
<span class="err">//</span> <span class="err">...</span>
<span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>Now execute it with the <strong>exec</strong> command:</p>
<div class="codehilite"><pre><span></span>inengine <span class="nb">exec</span> --executable<span class="o">=</span><span class="s2">"helloworld"</span>
</pre></div>
<p>Why would you want to do this?
It opens up the possibility of running shell scripts, ETLs, Java programs, etc. in the background or on a schedule. </p>
<p>The example python script can be queued:</p>
<div class="codehilite"><pre><span></span>inengine queue:publish --plugin<span class="o">=</span>InEngine.Core --command<span class="o">=</span><span class="nb">exec</span> --args<span class="o">=</span><span class="s2">"executable=helloworld"</span>
</pre></div>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid">
<a href="license/" title="License" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis">
<span class="md-footer-nav__direction">
Next
</span>
License
</span>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
</div>
</a>
</nav>
</div>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
© 2017 - Ethan Hann
</div>
powered by
<a href="http://www.mkdocs.org">MkDocs</a>
and
<a href="https://squidfunk.github.io/mkdocs-material/">
Material for MkDocs</a>
</div>
</div>
</div>
</footer>
</div>
<script src="./assets/javascripts/application.6cdc17f0.js"></script>
<script>app.initialize({version:"0.17.2",url:{base:"."}})</script>
</body>
</html>