Back

[Solved]Private node or dart packages in Functions

  • 0
  • Functions
obiwanzenobi
3 Jul, 2023, 07:06

How to provide private git packages (dart package or node module) to appwrite function? Is there a way to configure git settings in functions build environment?

TL;DR
The user is asking how to provide private git packages (dart package or node module) to Appwrite functions. They have tried rewriting dependencies with a deployment script and adding a command to docker-compose.yaml, but neither approach has worked. The user is wondering if there is a way to configure git settings in the functions build environment. Solution: Currently, there is no direct solution for providing private git packages to Appwrite functions. However, the user has mentioned creating a feature request and rewriting dependencies with a deployment script. These are potential workarounds for the issue. Additionally, the user suggests upvoting and following a related issue on GitHub for
safwan
3 Jul, 2023, 07:21

What do you mean by private packages? I've only used the nodejs runtime, and was able to use not-so-complex packages with a simple npm install.

obiwanzenobi
3 Jul, 2023, 07:23

i mean private git packages

obiwanzenobi
3 Jul, 2023, 07:31
obiwanzenobi
3 Jul, 2023, 07:45

I'm thinking about adding command to docker-compose.yaml after worker-builds started Then i will be able to set some global git config with token

obiwanzenobi
3 Jul, 2023, 09:42

Ok, giving up with this approach cant find a way to run git command after container run - git is unavailable on all containers

obiwanzenobi
3 Jul, 2023, 09:54

build runs on the runtime container, but how can i pass data to it

Drake
3 Jul, 2023, 15:26

Any chance you can download the package and include it in your uploaded code?

Drake
3 Jul, 2023, 15:27

Also, you might want to 👍 this issue: https://github.com/appwrite/appwrite/issues/4054

obiwanzenobi
3 Jul, 2023, 16:48

Got it, so there is feature request. Upvoted. For now I will rewrite dependecies with deployment script (to include repository access token)

obiwanzenobi
6 Jul, 2023, 14:20

[Solved]Private node or dart packages in Functions

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