Hello, I’m sorry for the delay. I needed to confirm some details with my team.
It is not running directly in a VM, it is an ECS container. The image was created using a Dockerfile.
# escape=`
# see https://discourse.mcneel.com/t/docker-support/89322 for troubleshooting
# NOTE: use 'process' isolation to build image (otherwise rhino fails to install)
### builder image
FROM mcr.microsoft.com/dotnet/sdk:7.0 as builder
# copy everything, restore nuget packages and build app
COPY src/ ./src/
RUN dotnet build -c Debug src/compute.sln
#RUN dotnet build -c Release src/compute.sln
### main image
# tag must match windows host for build (and run, if running with process isolation)
# e.g. 1903 for Windows 10 version 1903 host
FROM mcr.microsoft.com/windows:1809
# install .net 4.8 if you're using the 1809 base image (see https://git.io/JUYio)
# comment this out for 1903 and newer
RUN curl -fSLo dotnet-framework-installer.exe https://download.visualstudio.microsoft.com/download/pr/7afca223-55d2-470a-8edc-6a1739ae3252/abd170b4b0ec15ad0222a809b761a036/ndp48-x86-x64-allos-enu.exe `
&& .\dotnet-framework-installer.exe /q `
&& del .\dotnet-framework-installer.exe `
&& powershell Remove-Item -Force -Recurse ${Env:TEMP}\*
# install rhino (with “-package -quiet” args)
# NOTE: edit this if you use a different version of rhino!
# the url below will always redirect to the latest rhino 7 (email required)
# https://www.rhino3d.com/download/rhino-for-windows/7/latest/direct?email=EMAIL
RUN curl -fSLo rhino_installer.exe https://www.rhino3d.com/www-api/download/direct/?slug=rhino-for-windows/8/latest/?email=$EmailAddress `
&& .\rhino_installer.exe -package -quiet `
&& del .\rhino_installer.exe
# (optional) use the package manager to install plug-ins
RUN ""C:\Program Files\Rhino 8\System\Yak.exe"" install Weaverbird
RUN ""C:\Program Files\Rhino 8\System\Yak.exe"" install Ngon 2.3.0
RUN curl -fSLo dotnet-install.ps1 https://dot.net/v1/dotnet-install.ps1 `
&& powershell Set-ExecutionPolicy Unrestricted `
&& powershell .\dotnet-install.ps1 -InstallDir 'C:\Program Files\dotnet\' -Channel 7.0 -Runtime aspnetcore
# copy compute app to image
#COPY --from=builder ["/src/bin/Release/compute.geometry", "/app"]
COPY --from=builder ["/src/bin/Debug/compute.geometry", "/app"]
WORKDIR /app
# bind compute.geometry to port 5000
#ENV RHINO_COMPUTE_URLS="http://+:5000"
ENV RHINO_COMPUTE_LOG_PATH="C:\Users\ContainerAdministrator\AppData\Local\Temp\Compute\Logs"
ENV ASPNETCORE_URLS="http://+:80"
EXPOSE 80
# uncomment to build core-hour billing credentials into image (not recommended)
# see https://developer.rhino3d.com/guides/compute/core-hour-billing/
# Es recomendable pasar el token de rhino como una varible en tiempo de ejecucion
#ENV RHINO_TOKEN=""
CMD ["compute.geometry.exe"]
The inetpub folder does not exist.
But we have some logs in C:\Users\ContainerAdministrator\AppData\Local\Temp\Compute\Logs
This are some of the latest logs. I have made requests to /grasshopper, but it seems they were not logged.
{"Timestamp":"2024-07-23T00:54:41.5646066+00:00","Level":"Debug","MessageTemplate":"Using cached definition","RenderedMessage":"Using cached definition","Properties":{"RequestId":"0HN3DQDP83N14:00000001","RequestPath":"/io","ConnectionId":"0HN3DQDP83N14"}}
{"Timestamp":"2024-07-23T00:54:41.5745846+00:00","Level":"Debug","MessageTemplate":"Using cached definition","RenderedMessage":"Using cached definition","Properties":{"RequestId":"0HN3DQDP83N15:00000001","RequestPath":"/io","ConnectionId":"0HN3DQDP83N15"}}
{"Timestamp":"2024-07-23T01:54:41.6026189+00:00","Level":"Debug","MessageTemplate":"Using cached definition","RenderedMessage":"Using cached definition","Properties":{"RequestId":"0HN3DQDP83NCM:00000001","RequestPath":"/io","ConnectionId":"0HN3DQDP83NCM"}}
{"Timestamp":"2024-07-23T01:54:41.6084349+00:00","Level":"Debug","MessageTemplate":"Using cached definition","RenderedMessage":"Using cached definition","Properties":{"RequestId":"0HN3DQDP83NCN:00000001","RequestPath":"/io","ConnectionId":"0HN3DQDP83NCN"}}
{"Timestamp":"2024-07-23T01:54:41.6127849+00:00","Level":"Debug","MessageTemplate":"Using cached definition","RenderedMessage":"Using cached definition","Properties":{"RequestId":"0HN3DQDP83NCO:00000001","RequestPath":"/io","ConnectionId":"0HN3DQDP83NCO"}}
CloudWatch shows the logs corresponding to that route, but not all actions are recorded.
Are we doing something wrong?