Created
June 25, 2015 18:33
-
-
Save pencilcheck/5107fe87bb7777ab3d22 to your computer and use it in GitHub Desktop.
Problem when setting up job scraper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
Step 8 : RUN pip install --upgrade pip | |
---> Running in d2ec57b8e9fa | |
Cannot fetch index base URL https://pypi.python.org/simple/ | |
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages | |
Downloading/unpacking pip | |
Cleaning up... | |
No distributions at all found for pip in /usr/lib/python2.7/dist-packages | |
Storing debug log for failure in /root/.pip/pip.log | |
Service 'jobs' failed to build: The command '/bin/sh -c pip install --upgrade pip' returned a non-zero code: 1 | |
``` | |
The problem seems to be that pip that came with the ubuntu is old that couldn't handle SSL correctly. | |
http://stackoverflow.com/questions/21294997/pip-connection-failure-cannot-fetch-index-base-url-http-pypi-python-org-simpl | |
But in the Dockerfile pip actually came from the python-pip package. Now the question is which ubuntu image the docker would pull by default since you didn't specify the tag. If it is pulling a older version then that explains the problem. You might want to specify specific ubuntu tag image instead of just the default. | |
I haven't fix this problem yet, I will leave it to you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apparently restarting boot2docker fixes it with docker-compose 1.2.0