Closed gumuz closed 5 years ago
Hey @gumuz, That's definitely puzzling, from the information you're providing at a first glance it looks like everything should be working as expected. I'll try to reproduce it locally and if I need anything else I'll let you know! Thanks for the feedback.
@gumuz, you're absolutely right! The issue is the trailing slash in the definition of the includes block. With this manifest.yml
functions:
initialise_tasks:
requirements: ./requirements.txt
include:
- ./src
The resulting docker-compose file is the following:
version: '3.6'
services:
initialise_tasks-lambda:
image: lambci/lambda:build-python3.6
environment:
- AWS_DEFAULT_REGION=us-east-1
volumes:
- ./dist:/var/task/dist
- ./.juni/bin:/var/task/bin
- ./src:/var/task/common/src
- ./requirements.txt:/var/task/common/requirements.txt
command: sh /var/task/bin/package.sh initialise_tasks
Note that in this case, the src will be mapped to its own folder inside of the common
directory. In this case, you don't get the bleeding of the requirements in your filesystem. I'll create a PR to address that issue.
Cheers!
Hi,
After I run
juni build
, an emptyrequirements.txt
file appears insrc
folder. I think it's related to the way thesrc
&requirements.txt
volume are attached to the docker container, but I'm not sure. It's especially puzzling how it can be empty (since my reqs file is not empty).My project structure looks like this:
My manifest looks like this:
The resulting Docker compose file looks like this:
Let me know if you need more details and/or if you can point me in the right direction of solving this. Thanks!