Back

Dotnet open-runtimes build issue

  • 0
  • General
  • Functions
  • Cloud
Rishank
2 Oct, 2023, 15:20

https://github.com/open-runtimes/open-runtimes/tree/main/runtimes/dotnet-6.0 Running '2. Build the code' command gives this error

TL;DR
User is experiencing a build issue with Dotnet open-runtimes. A suggested solution is to tar.gz the code and run it using Docker. Additionally, the user is advised to install appwrite locally and add dot.net runtime via `.env` file. The user is working on an issue on GitHub related to this. No specific solution is mentioned for the build error.
safwan
2 Oct, 2023, 17:37

What exactly are you doing? I'm a little lost 😅

darShan
2 Oct, 2023, 18:01

OP is probably trying to run a function with the dot.net runtime (local/remote github setup).

I don't think anyone is supposed to run a function like that unless testing.

Rishank
3 Oct, 2023, 06:36

I am working on this issue https://github.com/appwrite/templates/issues/190 So I am trying to run the example in Open Runtime dotnet 6 But it's giving me some build.sh and some mnt/code/* error

darShan
3 Oct, 2023, 06:41

you don't need open runtime for that, install appwrite locally, add dot.net runtime via .env and restart appwrite.

IAmWhatIAm
3 Oct, 2023, 11:26

Seems its trying to copy the code from your local to the mount location.

Yes install appwrite locally , the only pain is you need to deploy everytime to test it 😀

IAmWhatIAm
3 Oct, 2023, 11:28

I think you can directly tar.gz your code and run this passing the code may be

docker run -p 3000:3000 -e OPEN_RUNTIMES_SECRET=secret-key --rm --interactive --tty --volume $PWD/code.tar.gz:/mnt/code/code.tar.gz:ro openruntimes/dotnet:v3-6.0 sh helpers/start.sh "dotnet /usr/local/server/src/function/DotNetRuntime.dll"

IAmWhatIAm
3 Oct, 2023, 11:50

I am able to build!!

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