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
I am trying to build serverless.yml using custom dockerfile. However, when I do sls deploy it does not recognize that docker file and shows warning (dockerizePip is set to false)
Warning: You provided a docker related option but dockerizePip is set to false.
My sls version is 1.4.1
serverless-python-requirements version is 4.3.0
1.) Not using dockerizePip: True in serverless.yml
custom:
pythonRequirements:
dockerFile: myDockerfile.Dockerfile
Note: requirements.txt is not present
sls deploy -s dev results in . " Warning: You provided a docker related option but dockerizePip is set to false"
Note: requirements.txt is not present
Results in no warning but also dont get any message "Building custom docker image from myDockerfile.Dockerfile"
3.) serverless.yml same as above and created an empty requirements.txt
Output: During sls deploy, although I see the message "Building custom docker image from myDockerfile.Dockerfile". My Lambda function does not have that OS depencies installed inside it .
The text was updated successfully, but these errors were encountered:
My Lambda function does not have that OS depencies installed inside it .
Installing OS dependencies in the Docker image does not also install them in the Lambda function. You may be interested in PR #366, which I think is one step towards what you may need.
It sounds like this bug author doesn't quite understand what role this plugin plays and what role docker plays in regards to this plugin. Docker is just a virtualized OS used to collect the requirements to prepare for packaging. If you have no requirements file it won't have anything to do, and so we catch that issue to help the user understand they are not doing something right (1 and 2 above). In regards to 3, @jdufresne clarified that you can achieve what you're trying to do by using the native-code-dependencies-during-runtime feature with an empty requirements.txt file.
Effectively, @Rahulnigam28 what you're describing that you are trying to do is to use this plugin as a gateway to run Docker and gather files which you inject into your package. Which, through the above link I specified is possible, but it's not the primary reason for this package's purpose. Recommending to close this bug.
I am trying to build serverless.yml using custom dockerfile. However, when I do sls deploy it does not recognize that docker file and shows warning (dockerizePip is set to false)
Warning: You provided a docker related option but dockerizePip is set to false.
My sls version is 1.4.1
serverless-python-requirements version is 4.3.0
1.) Not using dockerizePip: True in serverless.yml
custom:
pythonRequirements:
dockerFile: myDockerfile.Dockerfile
Note: requirements.txt is not present
sls deploy -s dev results in . " Warning: You provided a docker related option but dockerizePip is set to false"
2.) Adding dockerizePip: True in serverless.yml
custom:
pythonRequirements:
dockerizePip: True
dockerFile: myDockerfile.Dockerfile
Note: requirements.txt is not present
Results in no warning but also dont get any message "Building custom docker image from myDockerfile.Dockerfile"
3.) serverless.yml same as above and created an empty requirements.txt
Output: During sls deploy, although I see the message "Building custom docker image from myDockerfile.Dockerfile". My Lambda function does not have that OS depencies installed inside it .
The text was updated successfully, but these errors were encountered: