Back

How much flexibility is there in the build commands?

  • 0
  • Functions
ZachHandley
26 Oct, 2023, 17:04

with these AI packages for whatever reason, Poetry has been better at getting them running, so I was hoping I could use my custom docker image but we're still limited to openruntimes

TL;DR
The user wants to know if they can have flexibility in the build commands for Appwrite Cloud Python runtime. They mention being able to deploy certain functions on a self-hosted Appwrite instance and communicate with the Python SDK. They express frustration with not being able to choose their own Docker image and suggest using a Dockerfile. They mention issues with the Alpine image and needing to use the Python torch package. They ask if Poetry is the dependency management tool and suggest being able to publish their own runtimes. The user concludes by asking Appwrite to allow the use of Docker tags for runtimes. No solution is provided in the support thread.
ZachHandley
26 Oct, 2023, 17:04

can you guys allow us to use docker tags for our runtimes?

ZachHandley
26 Oct, 2023, 17:05

then we can publish our own runtimes muahaha that would be fun

ZachHandley
26 Oct, 2023, 17:09

so torch @Steven is a valid dependency in Poetry but in Python it fails

Drake
26 Oct, 2023, 17:24

Poetry is the dependency management tool, right?

ZachHandley
26 Oct, 2023, 17:24

yeah so

ZachHandley
26 Oct, 2023, 17:24

it seems like Torch is broken

ZachHandley
26 Oct, 2023, 17:24

in this

ZachHandley
26 Oct, 2023, 17:25

alpine?

ZachHandley
26 Oct, 2023, 17:25
ZachHandley
26 Oct, 2023, 17:26

see I thought when you guys said any runtime it would be docker image based, so this is a let down, but it is what it is

Drake
26 Oct, 2023, 17:38

i suggest commenting in https://github.com/appwrite/appwrite/issues/1037 to mention you need to use the python torch package but can't

ZachHandley
26 Oct, 2023, 18:04

okay, well my last comment is still there from before

ZachHandley
26 Oct, 2023, 18:04

I appreciate the Openruntime Upgrade, but please just change it so we can use our own docker image

ZachHandley
26 Oct, 2023, 18:05

I'm not a moron, but OpenRuntimes makes me feel like one with the way it's setup, I would rather spin up my own templates using FastAPI over flask and such for complete control

Drake
26 Oct, 2023, 18:05

you mentioned pandas before and im pretty sure it's possible to get pandas working now

ZachHandley
26 Oct, 2023, 18:05

Yeah I can use Llama Index now

ZachHandley
26 Oct, 2023, 18:05

it just still didn't solve the alpine issue

ZachHandley
26 Oct, 2023, 18:12

The reason I love Appwrite is because it lets me do what I want how I want with my own self hosted instance, and you guys are amazing, but this is really limiting for me IMO. The fact that I can't even choose what image is pretty frustrating, because I am a competent developer, being able to at least give it a Dockerfile

ZachHandley
26 Oct, 2023, 18:12

would be ideal

ZachHandley
26 Oct, 2023, 18:12

the key is figuring out how to pass the vars to it

ZachHandley
26 Oct, 2023, 18:12

maybe sending a request to the docker image and then it builds it and passes the request to the build entrypoint

nodash
14 Nov, 2023, 11:02

but how can I get pandas working?

ZachHandley
14 Nov, 2023, 17:29

if you want to get pandas working you could in theory run an extra command to install the missing dependencies, but I didn’t end up doing it

nodash
15 Nov, 2023, 02:16

thanks. I noticed that appwrite cloud python runtime supports pandas/numpy, so I deployed the particular function needs pandas on appwrite cloud , and other functions on a self-host appwrite instance, then let them communicate with python SDK. It worked, although the experience is bumpy.

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