Skukit.com is a global database of industrial products
git clone https://github.com/skukit/web.git
cd web
vagrant up
You can see launched application on http://192.168.33.10
git clone https://github.com/skukit/web.git
cd web
docker build -t web .
docker run -d -p 3000:3000 --name webApp web
You can see launched application on http://localhost:3000
For deployment we use shipit.
If you deploy first time or you want to rebuild image on server after deploy:
docker run -t --rm -v "$PWD"/shipitfile.js:/usr/src/app/shipitfile.js -v ~/.ssh:/root/.ssh mickyto/shipit shipit staging deploy build
If you need only deploy and restart container:
docker run -t --rm -v "$PWD"/shipitfile.js:/usr/src/app/shipitfile.js -v ~/.ssh:/root/.ssh mickyto/shipit shipit staging deploy restart
- Create
shipitfile.dev.js
- Run
docker run -t --rm -v "$PWD"/shipitfile.dev.js:/usr/src/app/shipitfile.js -v ~/.ssh:/root/.ssh mickyto/shipit shipit staging deploy restart
Link your app(webApp
in our case) to selenium.
docker run -d --name selenium --link webApp:app selenium/standalone-firefox
Link selenium
container and run tests with nightwatch container.
docker run --rm --link selenium -v "$PWD":/usr/src/app -w /usr/src/app mickyto/nightwatch npm test