question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running the SPA web app in docker on macOS

See original GitHub issue

When building the SPA on macOS, building with npm is successful. But when executing docker-compose -f docker-compose.ci.build.yml up I get this error:

eShopOnContainers git:(dev) ✗ Docker-compose -f docker-compose.ci.build.yml up
Creating eshoponcontainers_ci-build_1
Attaching to eshoponcontainers_ci-build_1
ci-build_1  | /src/src/Web/WebSPA /src
ci-build_1  |
ci-build_1  | > node-sass@4.5.0 install /src/src/Web/WebSPA/node_modules/node-sass
ci-build_1  | > node scripts/install.js
ci-build_1  |
ci-build_1  | node-sass build Binary found at /src/src/Web/WebSPA/node_modules/node-sass/vendor/linux-x64-48/binding.node
ci-build_1  |
ci-build_1  | > node-sass@4.5.0 postinstall /src/src/Web/WebSPA/node_modules/node-sass
ci-build_1  | > node scripts/build.js
ci-build_1  |
ci-build_1  | Binary found at /src/src/Web/WebSPA/node_modules/node-sass/vendor/linux-x64-48/binding.node
ci-build_1  | Testing binary
ci-build_1  | Bus error
ci-build_1  |
ci-build_1  | npm ERR! Linux 4.9.13-moby
ci-build_1  | npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "rebuild" "node-sass"
ci-build_1  | npm ERR! node v6.10.0
ci-build_1  | npm ERR! npm  v3.10.10
ci-build_1  | npm ERR! code ELIFECYCLE
ci-build_1  | npm ERR! node-sass@4.5.0 postinstall: `node scripts/build.js`
ci-build_1  | npm ERR! Exit status 135
ci-build_1  | npm ERR!
ci-build_1  | npm ERR! Failed at the node-sass@4.5.0 postinstall script 'node scripts/build.js'.
ci-build_1  | npm ERR! Make sure you have the latest version of node.js and npm installed.
ci-build_1  | npm ERR! If you do, this is most likely a problem with the node-sass package,
ci-build_1  | npm ERR! not with npm itself.
ci-build_1  | npm ERR! Tell the author that this fails on your system:
ci-build_1  | npm ERR!     node scripts/build.js
ci-build_1  | npm ERR! You can get information on how to open an issue for this project with:
ci-build_1  | npm ERR!     npm bugs node-sass
ci-build_1  | npm ERR! Or if that isn't available, you can get their info via:
ci-build_1  | npm ERR!     npm owner ls node-sass
ci-build_1  | npm ERR! There is likely additional logging output above.
ci-build_1  |
ci-build_1  | npm ERR! Please include the following file with any support request:
ci-build_1  | npm ERR!     /src/src/Web/WebSPA/npm-debug.log
eshoponcontainers_ci-build_1 exited with code 1

Already tried to run this first from the CLI: npm rebuild node-sass

before running the docker-compose -f docker-compose.ci.build.yml up

But did not help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danbaruacommented, Aug 24, 2017

to ensure you are using the lastest version of node packages such us angular-cli 1.3.0 I thought the whole point of Docker was to free us from developer workstation dependency hell? :trollface:

0reactions
CESARDELATORREcommented, Aug 31, 2017

Closing this issue. This scenario should be working in Mac.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running GUI's with Docker on Mac OS X | by Nils De Moor
First we need the ip of the network interface of our host OS. Then we pass that on as the `DISPLAY` environment variable...
Read more >
Accessing an HTTP API running on your MacBook in a Docker ...
On my MacBook Pro I want to access a web application (SPA/PWA) and an API both running in Docker containers behind another nginx...
Read more >
Possible to Run MacOS App in a Docker Container?
There is an app that I use that is only available on MacOS/iOS and I'm searching for a way to access it on...
Read more >
Dockerizing modern web apps. Most websites these days ...
Dockerizing modern web apps ... Most websites these days are Single Page Applications (SPA for short) where a single entry file handles all...
Read more >
ASP.NET Core and Blazor on Mac: Dockerizing Applications
A step-by-step demo on how to build and dockerize ASP.NET Core and Blazor apps on MacOS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found