Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

docker in production mode fails #1453

Closed
soupman99 opened this issue Aug 27, 2016 · 12 comments · Fixed by #1486 or #1491
Closed

docker in production mode fails #1453

soupman99 opened this issue Aug 27, 2016 · 12 comments · Fixed by #1486 or #1491
Assignees
Milestone

Comments

@soupman99
Copy link

soupman99 commented Aug 27, 2016

Getting this error. Running on a clean machine. Any ideas on what could be causing it?

docker-compose -f docker-compose-production.yml up
Starting mean_db-data_1
Starting mean_web-data_1
mean_db_1 is up-to-date
meanjs is up-to-date
Attaching to mean_web-data_1, mean_db-data_1, mean_db_1, meanjs
db_1        | 2016-08-27T21:39:38.746+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=0c14fb9dbcfc
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] db version v3.2.9
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] git version: 22ec9e93b40c85fc7cae7d56e7d6a02fd811088c
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] allocator: tcmalloc
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] modules: none
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] build environment:
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten]     distmod: debian71
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:39:55] Local gulp not found in /opt/mean.js
meanjs      | [21:39:55] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten]     distarch: x86_64
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten]     target_arch: x86_64
db_1        | 2016-08-27T21:39:38.747+0000 I CONTROL  [initandlisten] options: {}
db_1        | 2016-08-27T21:39:38.784+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
db_1        | 2016-08-27T21:39:38.918+0000 I CONTROL  [initandlisten] 
db_1        | 2016-08-27T21:39:38.918+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
db_1        | 2016-08-27T21:39:38.919+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
db_1        | 2016-08-27T21:39:38.919+0000 I CONTROL  [initandlisten] 
db_1        | 2016-08-27T21:39:38.919+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
db_1        | 2016-08-27T21:39:38.919+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
db_1        | 2016-08-27T21:39:38.919+0000 I CONTROL  [initandlisten] 
db_1        | 2016-08-27T21:39:38.920+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
db_1        | 2016-08-27T21:39:38.921+0000 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker
db_1        | 2016-08-27T21:39:38.943+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:39:57] Local gulp not found in /opt/mean.js
meanjs      | [21:39:58] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:39:59] Local gulp not found in /opt/mean.js
meanjs      | [21:39:59] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:40:02] Local gulp not found in /opt/mean.js
meanjs      | [21:40:02] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:40:04] Local gulp not found in /opt/mean.js
meanjs      | [21:40:04] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:40:07] Local gulp not found in /opt/mean.js
meanjs      | [21:40:08] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:40:13] Local gulp not found in /opt/mean.js
meanjs      | [21:40:13] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:40:21] Local gulp not found in /opt/mean.js
meanjs      | [21:40:21] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:40:36] Local gulp not found in /opt/mean.js
meanjs      | [21:40:36] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:41:03] Local gulp not found in /opt/mean.js
meanjs      | [21:41:03] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:41:56] Local gulp not found in /opt/mean.js
meanjs      | [21:41:56] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:43:40] Local gulp not found in /opt/mean.js
meanjs      | [21:43:40] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log
meanjs      | 
meanjs      | > [email protected] start:prod /opt/mean.js
meanjs      | > gulp prod
meanjs      | 
meanjs      | [21:47:07] Local gulp not found in /opt/mean.js
meanjs      | [21:47:07] Try running: npm install gulp
meanjs      | 
meanjs      | npm ERR! Linux 3.13.0-85-generic
meanjs      | npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run-script" "start:prod"
meanjs      | npm ERR! node v4.5.0
meanjs      | npm ERR! npm  v2.15.9
meanjs      | npm ERR! code ELIFECYCLE
meanjs      | npm ERR! [email protected] start:prod: `gulp prod`
meanjs      | npm ERR! Exit status 1
meanjs      | npm ERR! 
meanjs      | npm ERR! Failed at the [email protected] start:prod script 'gulp prod'.
meanjs      | npm ERR! This is most likely a problem with the meanjs package,
meanjs      | npm ERR! not with npm itself.
meanjs      | npm ERR! Tell the author that this fails on your system:
meanjs      | npm ERR!     gulp prod
meanjs      | npm ERR! You can get information on how to open an issue for this project with:
meanjs      | npm ERR!     npm bugs meanjs
meanjs      | npm ERR! Or if that isn't available, you can get their info via:
meanjs      | npm ERR! 
meanjs      | npm ERR!     npm owner ls meanjs
meanjs      | npm ERR! There is likely additional logging output above.
meanjs      | 
meanjs      | npm ERR! Please include the following file with any support request:
meanjs      | npm ERR!     /opt/mean.js/npm-debug.log

@lirantal
Copy link
Member

@soupman99 are you using the newly added Dockerfile-production you mean?
Can you also show previous error log? it seem to be missing here. How are you running this docker container?

@FedeG can you take a look?

@lirantal lirantal self-assigned this Aug 27, 2016
@lirantal lirantal added this to the 0.5.0 milestone Aug 27, 2016
@soupman99
Copy link
Author

soupman99 commented Aug 27, 2016

@lirantal @FedeG updated my original with full dump.

@lirantal yes using the new Dockerfile-production Did a fresh clone of the repo.

@lirantal
Copy link
Member

lirantal commented Sep 6, 2016

@soupman99 yep it's clear, there's no gulp file there.
Let me investigate the dockerfile for production again.

@lirantal
Copy link
Member

lirantal commented Sep 6, 2016

Even though gulp itself isn't being installed as a library in the project due to the --production npm mode, the dockerfile-production still shows that gulp is installed globally and should be found: https://github.com/meanjs/mean/blob/master/Dockerfile-production#L25

Can you open a shell in the container to test if gulp is indeed available as a global command?
You can do it by running: docker exec -it meanjs /bin/bash

@FedeG
Copy link
Contributor

FedeG commented Sep 7, 2016

@soupman99. If you want use gulp in a npm command, you will be install gulp local (and gulp tasks) or install dev-dependencies.
@lirantal. We ran successfully this compose because we have a node_modules installed in local machine and the repo hasn't a .dockerignore.

@lirantal. Can we switch gulp and gulp tasks to dependencies? (if you want, I do today and i add the .dockerignore. Also i update the dockerfile with we saw at #1468)

@lirantal
Copy link
Member

lirantal commented Sep 7, 2016

@soupman99 can you please test my PR (linked to this open issue) with the modified dockerfile-production and let me know how that goes?

@lirantal
Copy link
Member

lirantal commented Sep 7, 2016

@FedeG I don't want to move gulp and gulp-tasks to dependencies because some installs may not use gulp at all for their production environments.

@simison
Copy link
Member

simison commented Sep 7, 2016

@lirantal wait, isn't gulp always needed for building production JS+CSS assets, too? For running the app it's not needed of course.

@lirantal
Copy link
Member

lirantal commented Sep 7, 2016

right, which is why I'm saying that it isn't needed to add it in the dependencies section

FedeG pushed a commit to FedeG/mean that referenced this issue Sep 7, 2016
FedeG pushed a commit to FedeG/mean that referenced this issue Sep 7, 2016
@FedeG
Copy link
Contributor

FedeG commented Sep 8, 2016

@lirantal, I tests your PR: build successfully and image run successfully.

@FedeG
Copy link
Contributor

FedeG commented Sep 8, 2016

In my fork, i'm testing a new dockerfile for #1468.

@lirantal
Copy link
Member

lirantal commented Sep 8, 2016

Great, I'll go ahead and merge it then.

lirantal pushed a commit that referenced this issue Sep 9, 2016
* Fix(#1468) - Corrected SYNTAX some fixes

* Fix(#1468) - Fix(#1453) - Corrected SYNTAX some fixes for production and fix this bug #1453

* Fix(#1453) - Add .dockerignore

* Update Dockerfile-production

* Update Dockerfile development
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.