piston icon indicating copy to clipboard operation
piston copied to clipboard

Making an image with a custom python package preinstalled

Open jackrankin opened this issue 1 year ago • 2 comments

I'm attempting to deploy a piston container on flyio, but I need to have an image with python preinstalled and with some custom python packages (just the defaults with torch).

I have attempted to do so by using the build.sh script in the builder directory, but this will not download any custom packages that I specify in the packages directory as it downloads the packages from the web i think.

Any ideas?

jackrankin avatar Aug 18 '24 22:08 jackrankin

Update: I am attempting to build using the docker-compose.dev.yml file and everything seems to get installed properly with the custom packages. But when I run the code i get this:

/piston/packages/python/3.12.0/run: line 3: /piston/packages/python/3.12.0/bin/python3.12: No such file or directory

I don't really get why because ppman says that python is installed and I can see the binaries are in the docker container

jackrankin avatar Aug 19 '24 21:08 jackrankin

I have the same issue, but with Csharp. mono runtime is already installed, but every time when i send a POST request to the endpoint i am getting stderr "/runtime/bin/csc: 2: exec: /piston/packages/mono/6.12.0/bin/mono: not found\n"

Have you found any workaround?

karastoyanov avatar Sep 14 '24 20:09 karastoyanov