meteorhacks / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
439 stars 371 forks source link

error: unknown package in top-level dependencies: npm-container #72

Open MichaelJCole opened 8 years ago

MichaelJCole commented 8 years ago

Tried this out. All seemed well. Then got these errors:

Step 1 : COPY ./ /app
Step 1 : RUN bash $METEORD_DIR/on_build.sh
 ---> Running in b23aa6f46b44
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

=> Errors while initializing project:

While selecting package versions:
error: unknown package in top-level dependencies: npm-container
unknown package in top-level dependencies: bigsmall:push

These two packages are symlinked into the Meteor app.

MichaelJCole commented 8 years ago

Which is basically this problem: https://github.com/docker/docker/issues/1676

If you didn't want to re-structure your app around Docker, try this:

tar -czh . --exclude='.meteor/local' | docker build -t reponame/appname:latest - || exit 1

Just a FYI. Thanks!

(note that the - is really important. Using a docker build -t blah . || exit 1 won't work. It needs the -)

xinlovedong commented 7 years ago

I hava the same problem. => Started proxy. => Errors prevented startup:

While selecting package versions: error: unknown package in top-level dependencies: npm-container Did you solve the problem? Thank you~

dwaynewei commented 6 years ago

I got this problem,too looking for help now..

Scentjuls commented 5 years ago

i got the same problem too, looking for help now