Skip to content
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

fn build python example not working #685

Open
hurnhu opened this issue Jul 25, 2018 · 1 comment
Open

fn build python example not working #685

hurnhu opened this issue Jul 25, 2018 · 1 comment

Comments

@hurnhu
Copy link

hurnhu commented Jul 25, 2018

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
Copy link
Author

hurnhu commented Jul 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant