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

mirroring does not work when accessed from host machine. #6

Open
bhanuvrat opened this issue Oct 14, 2015 · 4 comments
Open

mirroring does not work when accessed from host machine. #6

bhanuvrat opened this issue Oct 14, 2015 · 4 comments

Comments

@bhanuvrat
Copy link

when running from the host machine, pip complains as follows:

➜  ~  pip install -i http://192.168.99.100:3141/root/pypi/ --upgrade flask
Collecting flask
  The repository located at 192.168.99.100 is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host 192.168.99.100'.
  Could not find a version that satisfies the requirement flask (from versions: )
No matching distribution found for flask
➜  ~

while the devpi server running inside the container prints out:

devpi_1    | 2015-10-14 11:04:40,368 INFO  [req18] GET /root/pypi/flask/
devpi_1    | 2015-10-14 11:04:40,375 INFO  [req19] GET /root/pypi/+simple/Flask

At the same time, when requested from inside a container tho whole thing works flawlessly.
bug, or am I missing something very obvious?

@dangra
Copy link
Contributor

dangra commented Oct 20, 2015

and have you tried adding --trusted-host 192.168.99.100 ?

@dangra
Copy link
Contributor

dangra commented Oct 20, 2015

I use this image for development on a vagrant machine, my images have the following instruction in its Dockerfile ENV PIP_TRUSTED_HOST 172.17.42.1.

It is interesting that Docker 1.9.0 will finally allow to pass different envvars at docker build time.

@bhanuvrat
Copy link
Author

cool. let me try and get back to you.

@dangra
Copy link
Contributor

dangra commented Oct 20, 2015

if you put devpi behind a https url (with valid certificate) it (pip) won't complain.

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

2 participants