Back

How to add .NET 8.0 Runtime in cloud functions?

  • 0
  • Self Hosted
DesVampire
13 Oct, 2024, 19:12

Hi am wondered of how add .net 8.0 runtime.

.NET 7.0 worked perfectly, but the package i want to use needs 8...((

Tried to with ai help, and the solution was: 1.sudo docker build -t custom-dotnet-8.0 . (from Dockerfile .NET 8.0 from openruntimes executor github) 2.sudo docker tag custom-dotnet-8.0:latest appwrite/runtime-for-dotnet-8.0:latest

3.Specify the custom Docker image for the .NET 8.0 runtime: _APP_FUNCTIONS_RUNTIMES=php-8.3,dotnet-8.0 _APP_FUNCTIONS_RUNTIMES_DOCKER_IMAGE_DOTNET_8_0=appwrite/runtime-for-dotnet-8.0:latest

but i think latest step is a kind of mystery...

Much appreciated for your help!

TL;DR
To add .NET 8.0 Runtime in cloud functions for Appwrite: - Check Appwrite version (1.6.0) - Ensure dotnet is in supported runtimes in `docker compose exec appwrite vars` - Update .env file with `_APP_FUNCTIONS_RUNTIMES=dotnet-8.0` - Run `docker compose up -d` - If .NET 8.0 doesn't appear in console, try building a custom Docker image: 1. `sudo docker build -t custom-dotnet-8.0 .` 2. `sudo docker tag custom-dotnet-8
Steven
13 Oct, 2024, 19:16
DesVampire
13 Oct, 2024, 19:37

Hi! Thanks for reply, yes read it carefully. I did: 0. ensured that .net 8.0 is in supported runtimes 1.changed .env _APP_FUNCTIONS_RUNTIMES=dotnet-8.0 2. run docker compose up -d 3. In console web app: Create function manually-> Choose runtime and there wasnt .NET 8.0

Steven
13 Oct, 2024, 19:39

If you run docker compose exec appwrite vars do you see dotnet for the runtimes env var?

Steven
13 Oct, 2024, 19:41

What version of Appwrite do you have?

DesVampire
13 Oct, 2024, 19:42

Double checked: docker compose exec appwrite vars output;

  • _APP_FUNCTIONS_RUNTIMES=php-8.3,dotnet-8.0

Version 1.6.0

DesVampire
13 Oct, 2024, 19:45

Attach a screenshot

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more