Go to file
2017-10-13 18:06:12 +02:00
assets fix docker testing 2017-10-13 16:44:25 +02:00
dist now cleaning up correctly 2017-10-13 18:06:12 +02:00
docs update ci 2017-04-02 14:51:38 +02:00
ts now cleaning up correctly 2017-10-13 18:06:12 +02:00
.gitignore update dependencies and README 2017-02-11 20:23:10 +01:00
.gitlab-ci.yml update ci 2017-10-07 16:48:44 +02:00
Dockerfile update 2017-10-13 17:50:31 +02:00
npmextra.json fix docker testing 2017-10-13 16:44:25 +02:00
package.json 1.2.17 2017-10-13 17:50:34 +02:00
README.md update readme 2017-04-02 14:54:15 +02:00
tslint.json update dependencies and README 2017-02-11 20:23:10 +01:00
yarn.lock update dependencies 2017-10-07 14:02:24 +02:00

npmdocker

develop npm modules cross platform with docker

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

Why does this package exist?

Sometimes you want a clean and fresh linux environment everytime you test your package. Usually this is the default i CI, but locally behaviour tends to defer.

Where does it work

The npmdocker package works in everywhere where the docker cli is available. e.g.:

  • docker toolbox
  • native docker application
  • docker in docker
  • mounted docker.sock

How do I use it?

create a npmextra.json in the project's root directory

{
  "npmdocker": {
    "baseImage": "hosttoday/ht-docker-node:npmts",
    "command": "npmci test stable",
    "dockerSock": false
  }
}
option description
baseImage the base image that is the context for your project
command the cli command to run within the the project's directory inside the docker container
dockersSock wether or not the testcontainer will have access to the docker.sock of the host

For further information read the linked docs at the top of this README.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer