Running the SPA web app in docker on macOS
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:23 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this issue. This scenario should be working in Mac.