node.js - Problems with Sailsjs application in Docker container -


I have two problems in running a cell application (node.js) in a container. I have a problem with nodes in my container. DockerFile, such as

  from Ubuntu: 14.04 RU-Update Update & amp; Amp; Apt-get install -y \ autoconf \ creation required \ ImageMagick \ libbz2-dev \ libcurl4-openssl- dev \ libevent-dev \ libffi- dev \ libglib2.0- dev \ libjpeg- dev \ libmagickcore- dev \ libmagickwand- dev \ Libmysqlclient- dev \ libncurses- dev \ libpq- dev \ libreadline-dev \ libsqlite3- dev \ libssl- dev \ libxml2- dev \ libxslt-dev \ libyaml-dev \ zlib1g-dev \ rbenv \ ca-certificate \ curl & Amp; & Amp; Verify rm-rf / var / lib / appropriate / lists / * run gem Saas # GPG and SHA256: http://nodejs.org/dist/v0.10.31/SHASUMS256.txt.asc # GPG: alias " Timothy J Fonten (Task) & lt; tj.fontaine@joyent.com> "Run GPG - Kirser PGPMET.EU - RCV-Cheeses 7937DFD2 ABF699B2293C3187D33FF9D2424406DNV NOD_Verson 0.10.32 ENV NPM_Version 2.1.4 RUEN Kernel-SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION -linux-x64.tar.gz" \ & amp; Amp; Curl-SLO "http://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ & amp; Amp; GPG - Verify SHASUMS256.txt.asc \ & amp; Amp; Grep "node-v $ NODE_VERSION-linux-x64.tar.gz \ $" SHASUMS256.txt.asc | Sha256sum -c - & amp; Amp; Tar -xzf "node-v $ NODE_VERSION-linux-x64.tar.gz" -C / usr / local -strip-components = 1 \ & amp; Amp; RM "node-v $ NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \ & amp; Amp; Npm Install-G NPM @ "$ NPM_VERSION" & amp; Amp; NPM Cash Explained 1337 Chairman and Managing Director ["/ bin / bash"]  

I run my container with figs, there is my fig.yml:

< Pre> web: creation: mypath / to / dockerfile / versions: - ports ../src:/src: - "1337: 1337" busted: - "1337" Environment: NODE_ENV: Evolution < / Pre>

and with the command:

  The fig running web  

My container is well-launched, with node and In my code / src but when I sail in my container I try to lift, so it is very slow, is it related to the quantity mounted on my computer?

Note :

  • I'm on Mac OSX with Boot2Docker (and if I Can be used for my container in the browser to get the IP from Boot2Docker for testing).

  • I can not do one copy instead of VOLUME because I'm on development and whenever I edit my code, I still do not want to make my container. Is there a bad idea of ​​quantifying the output?

  • If I try to install a NPM in my container then it is very slow, is it related?

Thank you for your help!

Comparing file system performance in the linguistic world. This will not solve your problem with VirtualBox, but you can try to avoid it:


Comments