pelican-eggs/generic

[Bug]: Python egg install and startup fails when tmp folder is too small

parkervcp opened this issue · 3 comments

Panel Version

1.11.5

Wings Version

1.11.11

Service

python

Modified

Yes, I modified the egg (will provide details below)

Expected Behavior

This can be resolved by changing the start and install commands to be similar to the following.

TMPDIR=PATH_TO_A_BIGGER_ONE pip install [package name] --target ANOTHER_PATH_TO_A_BIGGER_ONE

Install and startup process requirements correctly.

Actual Behavior

Fails to pull all requirements due to /tmp being too small.

Steps To Reproduce

Install any python code with a requirements file that has more than 100mb of dependencies.

Install logs

No logs but is a known issue

I can confirm this does happen. I think it also happens with Node.js but I'm not 100% sure on that. Normally I just get around this problem using mkdir /home/container/tmp && export TMPDIR=/home/container/tmp.

I see what I can do, maybe even on the image side.

We can set the tmpdir in the egg