You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have a detection bot that utilizes python data science related packages pandas and numpy, and it took ~2 hours to build the docker image.
$ time npm run push
>[email protected] push
> forta-agent push
building agent image...
pushing agent image to repository...
successfully pushed image with reference XXXXX
npm run push 12.92s user 8.96s system 0% cpu 2:05:33.56 total
It took the most time installing pandas and numpy because alpine was rebuilding from source code for these packages instead of copying the wheel packages over which is a much faster and reliable python package installation method. However, Alpine platform doesn't support wheel packages, so we may need to switch to a different base builder image, e.g. debian based for python bots.
The text was updated successfully, but these errors were encountered:
yes, there are plans to fix this by decoupling the nodeJS CLI from bot execution inside the container (which is currently why we use a node-alpine base image). the dependent issue is tracked here: #145
an alternative solution in the meantime could be to just use a python base image, and then install node to it so the CLI can be invoked.
Hi! I have a detection bot that utilizes python data science related packages
pandas
andnumpy
, and it took ~2 hours to build the docker image.It took the most time installing
pandas
andnumpy
because alpine was rebuilding from source code for these packages instead of copying the wheel packages over which is a much faster and reliable python package installation method. However, Alpine platform doesn't support wheel packages, so we may need to switch to a different base builder image, e.g. debian based for python bots.The text was updated successfully, but these errors were encountered: