David Garcia
03/21/2022, 5:35 PMinstallCommands
through the FunctionBundlePythonProps."
This doesn't seem to be correct, passing in installCommands doesn't stop the step that installs poetry, pipenv, or pip. It's not an override, because the script with the passed in commands is passed in afterwards, as seen here in this dockerfile
https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/assets/python/Dockerfile.dependencies
This bundling behavior leads to certificate errors, with no clear way for resolution. If it was possible to have custom commands run before external deps are pulled in order to add required certs, then I believe this issue would be alleviatedDavid Garcia
03/21/2022, 5:39 PMFrank
Frank
installCommands
are specified, this Dockerfile is used instead https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/assets/python/Dockerfile.custom#L19Frank
installCommands
are written to sst-deps-install-command.sh
, and only that is executed.Frank
David Garcia
03/22/2022, 1:37 AMDavid Garcia
03/22/2022, 1:39 AMinstallCommands
field happens after trying to pip install poetry, pipenv, and pip, which fails because of certificate errorsDavid Garcia
03/22/2022, 1:45 AMDavid Garcia
03/22/2022, 2:32 AMCOPY ./cert.file /.../path
but it's saying that the cert file isn't foundFrank
Dockerfile.custom
file to something like?https://gist.github.com/fwang/f7309f1b0281fa38ce957a76d8241587Frank
cert.file
to the list of files to be copied into the conatinerFrank
pip install
after the COPY commandDavid Garcia
03/22/2022, 12:38 PMDavid Garcia
03/22/2022, 12:44 PMFrank
COPY
command?Frank
Frank
David Garcia
03/25/2022, 3:57 PMDavid Garcia
03/25/2022, 3:57 PM