`Shub deploy` eggbased-entrypoint and run-pipcheck: no such file or directory

Posted over 4 years ago by testapp

Post a topic
Un Answered
t
testapp

I am trying to deploy my scrapy project to shub, containing a dockerfile

Here is my dockerfile

FROM scrapinghub/scrapinghub-stack-scrapy:1.6
ENV PYTHONUSERBASE=/app/python
ADD eggbased-entrypoint /usr/local/sbin/
ADD run-pipcheck /usr/local/bin/
RUN chmod +x /usr/local/bin/run-pipcheck
RUN chmod +x /usr/local/sbin/eggbased-entrypoint &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/start-crawl &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/scrapy-list &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/shub-image-info &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/run-pipcheck
ADD requirements.txt /app/requirements.txt
RUN mkdir /app/python && chown nobody:nogroup /app/python
RUN sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSERBASE -E PIP_NO_CACHE_DIR=0     pip install --user --no-cache-dir -r /app/requirements.txt
COPY *.egg /app/
RUN if [ -d "/app/addons_eggs" ]; then rm -f /app/*.dash-addon.egg; fi
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Error below:

shub deploy
Building images.scrapinghub.com/project/XXXXXXX:1.0
Steps:   0%|                                                                                                                                     | 0/1Error ADD failed: stat /var/lib/docker/tmp/docker-builder/eggbased-entrypoint: no such file or directory: {u'message': u'ADD failed: stat /var/lib/docker/tmp/docker-builder/eggbased-entrypoint: no such file or directory'}
Error: Docker operation failed
Steps:  25%|█████████████████████████████████ 

I actually realised I dont have "eggbased-entrypoint" file as well as "run-pipcheck" file.

How do I find/generate these files?

0 Votes


0 Comments

Login to post a comment