Skip to content

Build error with Broccoli Plugin using a Docker Container #900

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

Closed
adam2k opened this issue Jul 22, 2016 · 3 comments
Closed

Build error with Broccoli Plugin using a Docker Container #900

adam2k opened this issue Jul 22, 2016 · 3 comments

Comments

@adam2k
Copy link

adam2k commented Jul 22, 2016

Bug, feature request, or proposal:

I hope this isn't out of scope for this repo, but I am have build errors with Broccoli Plugin using a Docker Container.

What is the expected behavior?

For the BroccoliMergeTrees to be able to build the angular2 files.

What is the current behavior?

The docker container builds, but the during run time the app crashes.

What are the steps to reproduce?

The package builds running

npm install
ng serve

When I build in a docker container using the same commands everything looks to run smoothly and the container builds, but when I run the app and check on my localhost I run into this error:

Error: EACCES: permission denied, mkdir '/app/tmp/broccoli_merge_trees-output_path-qSkgskNy.tmp'
  at Error (native)
  at Object.fs.mkdirSync (fs.js:922:18)
  at Object.createDirSync (/app/node_modules/mktemp/lib/mktemp.js:114:10)
  at makeTmpDir (/app/node_modules/quick-temp/index.js:45:17)
  at Object.makeOrReuse (/app/node_modules/quick-temp/index.js:21:22)
  at new ReadCompat (/app/node_modules/broccoli-plugin/read_compat.js:17:13)
  at BroccoliMergeTrees.Plugin._initializeReadCompat (/app/node_modules/broccoli-plugin/index.js:130:22)
  at BroccoliMergeTrees.Plugin.read (/app/node_modules/broccoli-plugin/index.js:110:12)
  at /app/node_modules/angular-cli/node_modules/ember-cli-broccoli/lib/builder.js:107:23
  at lib$rsvp$$internal$$tryCatch (/app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)
  at lib$rsvp$$internal$$invokeCallback (/app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)
  at /app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:331:11
  at lib$rsvp$asap$$flush (/app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)

The broccoli plugin was instantiated at: 
  at BroccoliMergeTrees.Plugin (/app/node_modules/broccoli-plugin/index.js:7:31)
  at new BroccoliMergeTrees (/app/node_modules/broccoli-merge-trees/index.js:30:10)
  at module.exports (/app/angular-cli-build.js:26:10)
  at Class.module.exports.Task.extend.setupBroccoliBuilder (/app/node_modules/angular-cli/node_modules/ember-cli/lib/models/builder.js:55:19)
  at Class.module.exports.Task.extend.init (/app/node_modules/angular-cli/node_modules/ember-cli/lib/models/builder.js:89:10)
  at new Class (/app/node_modules/angular-cli/node_modules/core-object/core-object.js:18:12)
  at Class.module.exports.Task.extend.run (/app/node_modules/angular-cli/node_modules/ember-cli/lib/tasks/serve.js:15:19)
  at /app/node_modules/angular-cli/node_modules/ember-cli/lib/commands/serve.js:64:24
  at lib$rsvp$$internal$$tryCatch (/app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)
  at lib$rsvp$$internal$$invokeCallback (/app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)
  at /app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:331:11
  at lib$rsvp$asap$$flush (/app/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)

What is the use-case or motivation for changing an existing behavior?

To make the docker build process run smoothly

Which versions of Angular, Material, OS, browsers are affected?

angular-cli": "^1.0.0-beta.9
@angular/common": "2.0.0-rc.1

Mac OSX, Linux (using docker), All browsers

Is there anything else we should know?

@nesheroj
Copy link

This is a Docker problem using shared volumes. Using the new Docker for mac betas could alleviate the issue but basically the problem is that, in mac (and windows) docker uses a linux virtual machine and the user ids used for checking fs permissions won't match. there's plenty of information about this issue on the usual places like StackOverflow or Docker's own bug tracker

@kara
Copy link
Contributor

kara commented Jul 22, 2016

The Broccoli plugin is part of the Angular CLI, so we won't be able to help you here. Try submitting the issue in the CLI repo here: https://github.com/angular/angular-cli.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants