gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.51k stars 584 forks source link

Just pulled recent update from Github - Python container fails #122

Closed ronnyandre closed 4 years ago

ronnyandre commented 4 years ago

When running docker-compose up -d after adding Python3 to my stack, the process fails:

pi@raspberrypi:~/IOTstack $ docker-compose up -d
Building python
Step 1/5 : FROM python:3
3: Pulling from library/python
760e5af4a2ec: Pull complete
93dc761fecef: Pull complete
73181b0fe903: Pull complete
870abc97e939: Pull complete
0232eea7b189: Pull complete
39063fc5ad17: Pull complete
f9f9895c879d: Pull complete
2799908ab5dd: Pull complete
ac533444b85c: Pull complete
Digest: sha256:58666f6a49048d737eb24478e8dabce32774730e2f2d0803911a2c1f61c1b805
Status: Downloaded newer image for python:3
 ---> d73d859bc8fb
Step 2/5 : WORKDIR /usr/src/app
 ---> Running in c1a814fe9fc2
Removing intermediate container c1a814fe9fc2
 ---> b3e158953efb
Step 3/5 : COPY requirements.txt ./
ERROR: Service 'python' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder091423502/requirements.txt: no such file or directory
d-pinto commented 4 years ago

If you create a blank requirements.txt file in the /IOTstack/services/python directory it’ll get the image to build. However out of the box this image won’t give you any running app... just the example hello world in the default app.py

ronnyandre commented 4 years ago

Thanks, this solved the issue.