iron-io / functions

IronFunctions - the serverless microservices platform by
https://iron.io
Apache License 2.0
3.16k stars 228 forks source link

fn build python example not working #685

Open hurnhu opened 5 years ago

hurnhu commented 5 years ago

when following the example i get this error, i have the requirements.txt in the same folder as func.yaml

building /home/user/spec/func.yaml
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
error running command docker run --rm -v /home/user/spec/worker -w /worker iron/python:3-dev pip install  -t packages -r requirements.txt (exit status 1)
hurnhu commented 5 years ago

my current work around was editing the docker file to the following

FROM python:latest
WORKDIR /function
ADD . /function/
 ENTRYPOINT ["python3", "hello.py"]
RUN pip3 install -t packages -r requirements.txt