jobkit

阅读时长 3 分钟读完

JavaScript job runner

JobKit

JavaScript Job Runner

JobKit allows you to write job scripts in javascript and run it via jobkit cli or using jobkit-server triggered by git poll.

JobKit runs your job scripts in a docker container and remove it after it ends.

Installation

Globally:

Locally:

Job file

Create a job file such as test.js:

-- -------------------- ---- -------
-------------- - ----- -- ------ ------ ---- ---- ------ -- -- -
  ----- ----- - ----- ----------------------
  ----- -------------
  ----- ----------
  ----- ---------------------------------------------------- ----
  ----- -------------
  ----- --------- -----
  ----- ----------------
  ----- --------- -----
  ----- ----------
  ----- ------------
  ----- --------------
-

Running

Add parameters

You can read these parameters in your job file via params attribute:

Set environment variables

That will set these environment variables to the job process:

HomePage

https://github.com/jaystack/jobkit#readme

Repository

git+https://github.com/jaystack/jobkit.git

来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/6005668081e8991b448e2997

纠错
反馈