GithubHelp home page GithubHelp logo

wbio / strider-runner-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from strider-cd/strider-runner-core

0.0 2.0 0.0 70 KB

Just run those jobs. Decoupled from load balancing, job queues, etc.

License: MIT License

JavaScript 100.00%

strider-runner-core's Introduction

strider-runner-core

Changes in this fork

The current version of strider-docker-runner does not run npm install during the "prepare" step, so dependencies are never installed for node projects (see issue #18 on that project). strider-docker-runner uses this module (strider-runner-core) to do the actual command running, so I've forked and modified this to add a (very hacky) fix for that issue.

In this fork, npm install is called if another npm command (most likely npm test) is called and npm install has not yet been run. This means that npm install is called during the "test" phase rather than the "prepare" phase, which obviously isn't ideal from an organizational perspective, but it was the simplest fix that I found for the issue. In the future I may see if I can clean this up.

Rest of the Readme

Just run those jobs. Decoupled from load balancing, job queues, etc.

var core = require('strider-runner-core');

core.process(data, provider, plugins, config, next);
  • data is the mongoose job object. See the main strider repo for a schema.
  • provider is an instantiated provider, such as strider-git.
  • plugins is a map of instantiated plugins (such as strider-node) {id: plugin, ...}

Config parameters:

  • env - a map for augmenting the ENV variables in all commands run
  • io - an eventemitter for communication.
  • dataDir - the directory to hold your code
  • baseDir - base directory for this job
  • cacheDir - cache directory
  • cachier (see this file)
  • logger
  • log - log fn
  • error - log errors

next is called with any errors as the first argument.

strider-runner-core's People

Contributors

jaredly avatar wbio avatar abe545 avatar chriz2600 avatar mattpardee avatar niallo avatar kfatehi avatar oliversalzburg avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.