@shelter/shelv-runner
The library that processes Shelv tasks on Shelv workers, as well as a docker container with the correct environment to run the tasks.
Last updated a year ago by shelterci .
UNLICENSED · Repository · Original npm · Tarball · package.json
$ cnpm install @shelter/shelv-runner 
SYNC missed versions from official npm registry.

shelv-runner

The library that processes Shelv tasks on Shelv workers, as well as a docker container with the correct environment to run the tasks.

The docker container has shelv-runner installed globally using yarn.

Usage

CLI

shelv-runner input.json output.json

This will read a task from input.json and output the result to output.json.

Library

import { runTask, ShelvTask } from 'shelv-runner';

(async () => {
    const task: ShelvTask = {
        url: 'http://google.com/'
    };

    const result = await runTask(task);

    console.log(result);
})();

Docker Container

The docker container has the shelv CLI set as the entrypoint, so can be run like so:

docker run $IMAGE_NAME input.json output.json

Current Tags

  • 0.0.6                                ...           latest (a year ago)

1 Versions

  • 0.0.6                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |