Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencies - meteor build #87

Open
schandrac opened this issue Mar 26, 2016 · 3 comments
Open

Inconsistencies - meteor build #87

schandrac opened this issue Mar 26, 2016 · 3 comments

Comments

@schandrac
Copy link

Hi,
I'm using meteorhacks/meteord:onbuild Dockerfile to build and run meteor based app into AWS. I am seeing occasional hangs where after downloading meteor, nothing happens for long time. The only way to exit is ^C. I see three variations during the build process.

  1. Build hangs (output below)
  2. Builds successfully but skips meteor download and npm install, very quick (output below)
  3. Builds successfully but with meteor download and npm install, takes good 5+ mins (output below)

The hang is really concerning as once it that state, there's no way to recover. I tried rebooting the node, re-provisioning docker, removing old docker images etc. Build starts working randomly (not able to discern any patter).

Is anyone seeing this? Can one of the experts provide me pair of eyes to explain this?

Stuck here for very long time (30+ mins). Only way is to ^C

$ docker build -t myapp/portal .
Sending build context to Docker daemon 27.77 MB
Step 1 : FROM meteorhacks/meteord:onbuild

Executing 2 build triggers...

Step 1 : COPY ./ /app
---> Using cache
Step 1 : RUN bash $METEORD_DIR/on_build.sh
---> Running in 3fa6cadba021
Downloading Meteor distribution

Meteor 1.2.1 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.

To get started fast:

$ meteor create ~/my_cool_app
$ cd ~/my_cool_app
$ meteor

Or see the docs at:

docs.meteor.com

^^^^^^^^^^ Stuck here for very long time (30+ mins). Only way is to ^C

^C

Comes out very quickly without meteor download or npm install

$ docker build -t myapp/portal .
Sending build context to Docker daemon 27.77 MB
Step 1 : FROM meteorhacks/meteord:onbuild

Executing 2 build triggers...

Step 1 : COPY ./ /app
---> Using cache
Step 1 : RUN bash $METEORD_DIR/on_build.sh
---> Using cache
---> 06be3768cc03
Successfully built 06be3768cc03

^^^^^^^^^^ Comes out very quickly without meteor download or npm install

Builds with meteor download and npm install

docker build -t myapp/portal .
Sending build context to Docker daemon 27.7 MB
Step 1 : FROM meteorhacks/meteord:onbuild

Executing 2 build triggers...

Step 1 : COPY ./ /app
Step 1 : RUN bash $METEORD_DIR/on_build.sh
---> Running in 0b52afab6341
Downloading Meteor distribution

Meteor 1.2.1 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.

To get started fast:

$ meteor create ~/my_cool_app
$ cd ~/my_cool_app
$ meteor

Or see the docs at:

docs.meteor.com

npm WARN deprecated This version of npm lacks support for important features,
npm WARN deprecated such as scoped packages, offered by the primary npm
npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the
npm WARN deprecated latest stable version. To upgrade to npm@2, run:
npm WARN deprecated
npm WARN deprecated npm -g install npm@latest-2
npm WARN deprecated
npm WARN deprecated To upgrade to the latest stable version, run:
npm WARN deprecated
npm WARN deprecated npm -g install npm@latest
npm WARN deprecated
npm WARN deprecated (Depending on how Node.js was installed on your system, you
npm WARN deprecated may need to prefix the preceding commands with sudo, or if
npm WARN deprecated on Windows, run them from an Administrator prompt.)
npm WARN deprecated
npm WARN deprecated If you're running the version of npm bundled with
npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
npm WARN deprecated will be bundled with a version of npm@2, which has some small
npm WARN deprecated backwards-incompatible changes made to npm run-script and
npm WARN deprecated semver behavior.
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data

[email protected] install /tmp/bundle-dir/bundle/programs/server/node_modules/fibers
node ./build.js

linux-x64-v8-3.14 exists; testing
Binary is fine; exiting
[email protected] node_modules/ansi-regex

[email protected] node_modules/ansi-styles

[email protected] node_modules/escape-string-regexp

[email protected] node_modules/chalk

[email protected] node_modules/has-ansi

[email protected] node_modules/supports-color

[email protected] node_modules/strip-ansi

[email protected] node_modules/eachline

[email protected] node_modules/type-of

[email protected] node_modules/amdefine

[email protected] node_modules/asap

[email protected] node_modules/underscore

[email protected] node_modules/meteor-promise

[email protected] node_modules/promise

[email protected] node_modules/source-map-support

[email protected] node_modules/semver

[email protected] node_modules/source-map

[email protected] node_modules/fibers
---> d21a004fb29e
Removing intermediate container 6261759bd9b2
Removing intermediate container 0b52afab6341
Successfully built d21a004fb29e

@rsercano
Copy link

I never passed the installation of meteor, it's successfully installed and then nothing happens.

@mitjajez
Copy link

mitjajez commented Jun 2, 2016

My build always hangs with using FROM meteorhacks/meteord:onbuild in Docker file.

@lerayj
Copy link

lerayj commented Jun 16, 2016

Same here, sometime working, sometime not. Most of the time not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants