jshimko / meteor-launchpad

A base Docker image for Meteor applications.
https://hub.docker.com/r/jshimko/meteor-launchpad/
MIT License
276 stars 152 forks source link

Docker mount issue with latest meteor-launchpad:devbuild #45

Closed krismeister closed 7 years ago

krismeister commented 7 years ago

I don't have a the exact Dockerfile i used to create the error trace below. However, I experienced several unsuccessful attempts at building with the latest jshimko/meteor-launchpad:devbuild in docker hub. At first glance it appears to be a deep Docker issue. I suspect it might be a bad path somewhere in docker or build code.

I do really appreciate this project, I have come to understand how hard it is to create a container for meteor.

node-v4.8.3-linux-x64/lib/node_modules/npm/node_modules/umask/README.md
node-v4.8.3-linux-x64/lib/node_modules/npm/node_modules/umask/.npmignore
Step 1/1 : RUN bash $BUILD_SCRIPTS_DIR/install-meteor.sh
 ---> Running in 466bd047eeee

[-] Installing the latest version of Meteor...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7782    0  7782    0     0  25288      0 --:--:-- --:--:-- --:--:-- 25348
Downloading Meteor distribution

Meteor 1.5 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

Step 1/1 : COPY . $APP_SOURCE_DIR
ERROR: Service 'miso3' failed to build: Error processing tar file(exit status 1): Error setting up pivot dir: mkdir /var/lib/docker/aufs/mnt/6848c3101ac84d6f2270459d5a36da23d8a347918fbd7cdf497df27a765ca474/opt/meteor/src/.pivot_root090992472: not a directory
Kriss-MacBook-Pro:miso3 kris$
jshimko commented 7 years ago

I just ran a build and I'm not seeing that problem, so I'm going to need some reproduction steps before I'll be able to fix anything or give a recommendation. The ideal would be a sample Meteor app repo with the least amount of code possible to reproduce the issue.

For example, this works for me...

meteor create devbuild-sample

cd devbuild-sample

echo "FROM jshimko/meteor-launchpad:devbuild" > Dockerfile

docker build -t devbuild-sample .

Or the same test with the production base image...

meteor create prod-sample

cd prod-sample

echo "FROM jshimko/meteor-launchpad:latest" > Dockerfile

docker build -t prod-sample .

Sorry I don't have a better answer for you.