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

Weird permission notification and when running docker up #11

Closed
lucasdavid opened this issue Jan 9, 2019 · 3 comments
Closed

Weird permission notification and when running docker up #11

lucasdavid opened this issue Jan 9, 2019 · 3 comments

Comments

@lucasdavid
Copy link

I'm copied your Dockerfile, docker-compose.yml and .dockerignore to the root of a project of mine. The project runs fine in my computer, but when I run docker-compose up in the server (I ssh into the server before running locally), I get the following message and the process apparently hangs:

Building app
Step 1/14 : FROM geoffreybooth/meteor-base:1.7.0.3
 ---> ac044469284c
Step 2/14 : COPY ./app/package*.json $APP_SOURCE_FOLDER/
 ---> Using cache
 ---> a5d65c4a3e42
Step 3/14 : RUN bash $SCRIPTS_FOLDER/build-app-npm-dependencies.sh
 ---> Using cache
 ---> 24c301e78737
Step 4/14 : COPY ./app $APP_SOURCE_FOLDER/
 ---> Using cache
 ---> 6700ddb24352
Step 5/14 : RUN bash $SCRIPTS_FOLDER/build-meteor-bundle.sh
 ---> Running in a6e2ad239e11

[-] Building Meteor application bundle...


Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
directory will be incorrect if you ever attempt to perform any Meteor tasks as
a normal user. If you need to fix your permissions, run the following command
from the root of your project:

  sudo chown -Rh <username> .meteor/local


Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
directory will be incorrect if you ever attempt to perform any Meteor tasks as
a normal user. If you need to fix your permissions, run the following command
from the root of your project:

  sudo chown -Rh <username> .meteor/local

Would you know how to fix this? I added the following to the environment section in the docker-compose.yml file, but it seems it had no effect:

    ...
    environment:
      ...
      METEOR_NO_RELEASE_CHECK: 'true'
      METEOR_ALLOW_SUPERUSER: 'true'

Docker version 18.06.0-ce, build 0ffa825
docker-compose version 1.23.2, build 1110ad01
@GeoffreyBooth
Copy link
Collaborator

If you look at https://github.com/disney/meteor-base/blob/master/src/docker/build-meteor-bundle.sh, it’s running meteor build on your files that it copies into the image. So presumably there’s a permissions or file ownership issue with your files on the building machine.

@Philip-Nunoo
Copy link

Any solution for this?

@GeoffreyBooth
Copy link
Collaborator

The error means what it says: you have a permissions issue with your application files that get copied into the image. You don't see that issue when you run outside of Docker because you're running as a user with root privileges. Inspect the permissions and owners of your files on the machine where you're building the Docker image.

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

3 participants