-
Notifications
You must be signed in to change notification settings - Fork 323
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
Unable to use Schedule app. #36
Comments
Interesting. I guess somehow the docker container is picking up a datetime format preference from your host OS, so 9/23/2030 is being interpreted as the 9th day of the 23rd month. Could be related: dotnet/runtime#42328 Is anyone else (probably in a locale that uses day/month/year) seeing this? |
Unfortunately I was unable to fix this issue with provided help, although I am a beginner when it comes to docker / containers / etc. #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/sdk:5.0.100-rc.1-buster-slim AS build
WORKDIR /app
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& locale-gen "en_US.UTF-8"
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
COPY FrontDesk/src/FrontDesk.Blazor ./FrontDesk.Blazor
COPY FrontDesk/src/BlazorShared ./BlazorShared
RUN dotnet restore /app/FrontDesk.Blazor/FrontDesk.Blazor.csproj
WORKDIR /app/FrontDesk.Blazor
RUN dotnet build -c Release -o /bin/Release/net5.0
FROM build AS publish
RUN dotnet publish -c Release -o /bin/Release/net5.0/browser-wasm/publish
FROM nginx:alpine AS final
WORKDIR /usr/share/nginx/html
COPY --from=publish /bin/Release/net5.0/browser-wasm/publish/wwwroot /usr/local/webapp/nginx/html
COPY --from=build /bin/Release/net5.0/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 |
Are you able to build locally? Docker is an option, and usually an easier one, but not the only one. |
Yes, with suggested rabbit-mq container spun up I am able to run FrontDesk.Blazor from VS. |
You can do that by just having multiple visual studio instances (or terminals) running, and run each of the apps on their own ports. The table in the README shows the ports that should be in use when you do this yourself vs. in docker. When I'm working with it locally and troubleshooting, debugging, or even developing this is how I run it. |
Issue ardalis#36 - Finished
I think this is now fixed - let me know if it's still an issue. |
After initial docker setup, with all containers running, when firing up the
http://localhost:5100/
I'm welcomed with following exception in browser's console:
In addition:
![obraz](https://user-images.githubusercontent.com/25936793/139423213-d2cb672d-8453-4777-a11f-70ac4db488d3.png)
The text was updated successfully, but these errors were encountered: