Sign inSign up

luis/sails

By luis

Updated over 11 years ago

Image
0

1.3K

luis/sails repository overview

Sails.js running on Docker

Build

docker build -t yourname/sails .

Or Pull:

docker pull luis/sails

Run

First create a new project:

docker run -it --rm -p 1337:1337 -v /path_to_project_on_host:/var/www -v /var/log/sails:/var/log/supervisor luis/sails sails new

Then install dependencies:

docker run -it --rm -p 1337:1337 -v /path_to_project_on_host:/var/www -v /var/log/sails:/var/logs/supervisor luis/sails npm install

Note: If you get an error, remove the node_modules directory on the host and try again the last command, aparently there's a bug with the latest version of NPM

Run the server:

docker run -d -p 1337:1337 -v /path_to_project_on_host:/var/www -v /var/log/sails:/var/log/supervisor luis/sails

If you need to run any sails command, just do:

docker run --it --rm -v /path_to_project_on_host:/var/www luis/sails sails command
Includes
  • sails
  • mocha
  • sinon
  • should
  • assert
  • grunt
  • bower

Tag summary

Content type

Image

Digest

sha256:7d830dcce

Size

253 MB

Last updated

over 11 years ago

docker pull luis/sails