-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Running the SPA web app in docker on macOS #158
Comments
I had a similar issue, but running HTH someone |
I used "npm install [email protected]" from "Build the SPA app with NPM error npm run build:prod #253", the problem solved. Everything works fine but webspa--"http://localhost:5104". I use "docker ps" and webspa looks like fine as following ... |
I get
|
Did you followed de SPA app Setup procedure at the Wiki? |
Yep, neither |
@danbarua I had a few issues yesterday with a fresh cloned copy when running "npm install", "npm install [email protected]", "npm rebuild node-sass" and "npm rebuild node-sass". |
Hi @danbarua I reached the same error using Node 8 on both Windows 10 and Ubuntu, starting from a fresh repo. Try to follow these steps:
That worked for me. (Not sure if global angular cli is needed but I put here because it is recommended to have it by Angular team) I updated the dev branch with:
I've tested with:
Please, keep in mind that you can run into issue #268 Thanks. |
So I managed to run I'm getting this on
|
Some error happened when building the webspa, so Doing
Check if If any error, please post the |
Looks like #268 |
I beg one dollar, that you are using npm 5.3.0 :) If so, try downgrading to npm 5.2.0 ( Let me know! |
Yep, just tried that, |
Now
😆 |
On running gives
|
This is a very strange error, and sounds more like an error of roslyn compiler maybe. Not sure. @CESARDELATORRE where we can ask for help about this issue? |
@eiximenis I'll forward to a few folks in the .NET team. I'll come back if we get workarounds. |
"docker-compose up" works well in my machine, I met another problem as i mentioned before. I run "WebSPA" project as single project( just commented some codes in the middleware in startup.cs), it works as expected. |
Hi folks, I've run succesfully the eShopOnContainers in my MAC and I want to share with you the steps and the problems I've found: First, install the correct software:
If you work with a fork on dev branch (Remember currently this works on dev branch until merge in master), please keeping your fork up to date following this steps https://gist.github.com/CristinaSolana/1885435 to ensure you are using the lastest version of node packages such us angular-cli 1.3.0 or you will receive some errors when you run After that, you can run again
Then, run again
In that case, shut down the process (Ctrl + c) and run again Another problem I've found was related when you click in login in MVC app, I was receiving this error:
I've read a lot of about this error, in windows you can resolve turning off the firewall but in MAC even when you turn off firewall still receiving this error. I've found this in Docker documentation https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos
So, you have change in webmvc:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- CatalogUrl=http://catalog.api
- OrderingUrl=http://ordering.api
- BasketUrl=http://basket.api
- IdentityUrl=http://10.0.75.1:5105
- MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
#Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
- UseCustomizationData=True
ports:
- "5100:80" To this: webmvc:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- CatalogUrl=http://catalog.api
- OrderingUrl=http://ordering.api
- BasketUrl=http://basket.api
- IdentityUrl=http://docker.for.mac.localhost:5105
- MarketingUrl=http://marketing.api #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser.
#Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
- UseCustomizationData=True
ports:
- "5100:80" And following this steps I've could run eShopOnContainers in my MAC. Cheers! |
|
Hi, @danbarua And I had fixed this after install 5.2.0 npm as @eiximenis suggested: But not all services is started, for health check this services is down (all others working fine):
After opening |
Hi @alexlobanov Can you see in the terminal errors like this:
Try to run |
@lurumad When you say that sometimes "docker-compose -f docker-compose.ci.build.yml up" didn't run properly and you need to run it again... I wonder what errors did you get when building the bits? I'm researching those issues with the dotnet CLI and MSBUILD team folks but I'd like to make sure if we have the same or similar issues when running from the Mac or it is a different thing. |
Closing this issue. This scenario should be working in Mac. |
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:
Already tried to run this first from the CLI:
npm rebuild node-sass
before running the
docker-compose -f docker-compose.ci.build.yml
upBut did not help.
The text was updated successfully, but these errors were encountered: