-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use build_in_docker feature with Rancher Desktop or Colima #545
Comments
same here |
I solve it! @mdesoeuv Based on code that module, create temp directory under /var/... and mount it. Here is several options to solve this problem.
# Configure volume mounts for the virtual machine.
# Colima mounts user's home directory by default to provide a familiar
# user experience.
#
# EXAMPLE
# mounts:
# - location: ~/secrets
# writable: false
# - location: ~/projects
# writable: true
#
# Colima default behaviour: $HOME and /tmp/colima are mounted as writable.
# Default: []
mounts: []
source_path = [
"${path.module}/src",
{
path = "${path.module}/requirements.txt"
pip_requirements = true
pip_tmp_dir = "${path.module}/.temp"
}
]
|
Thank you for responding to this post with your fix, your help is appreciated |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
The build of a Poetry Project in docker with the lambda module fails. It seems related to a permissions problem with the temporary folder created and bound to the container during the build process.
Versions
Reproduction Code [Required]
Steps to reproduce the behavior:
terraform init
terraform apply
Project Structure
Terraform
Lambda Source Code
pyproject.toml
Dockerfile
Expected behavior
The build should succeed as it does with Docker Desktop
Actual behavior
The build fails with the error:
Poetry could not find a pyproject.toml file in /var/task or its parents
Additional context
ls command inside the container with an other folder mounted in the container : OK
ls command inside the container with temp folder : fail
#524
because the build works fine with Docker Desktop but fails with Rancher Desktop or docker cliThe text was updated successfully, but these errors were encountered: