$ cnpm install @gfi-centre-ouest/generator-docker-devbox
Yeoman Generator for dockerized development environment.
First, install Yeoman and generator-docker-devbox using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g @gfi-centre-ouest/generator-docker-devbox
Then generate your new project:
mkdir my-project
cd my-project
yo @gfi-centre-ouest/docker-devbox
Use npm link to use local installation of generator
git clone https://github.com/gfi-centre-ouest/generator-docker-devbox
cd generator-docker-devbox
npm install
npm link
Then you need run the project in watch mod for TypeScript sources to be compiled on change.
npm run start
You may run unit tests with npm run test
, and docker build tests with npm run test:docker
.
Unit tests are executed after each push on TravisCI. It runs for each supported Node version.
Integration tests are runned after each push on a single node version. They checks that generated docker-compose configuration are valids and docker images can build properly using latest versions of Docker and docker-compose.
MIT © GFI Informatique
Copyright 2014 - 2016 © taobao.org |