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

Support devpi inside docker containers #3553

Open
agjohnson opened this issue Jan 26, 2018 · 3 comments
Open

Support devpi inside docker containers #3553

agjohnson opened this issue Jan 26, 2018 · 3 comments
Labels
Accepted Accepted issue on our roadmap Improvement Minor improvement to code

Comments

@agjohnson
Copy link
Contributor

Devpi[1] is a great tool to help with intermittent connections. While I am traveling (airports/airplanes/spotty cell service), I find myself wanting a local pypi server. Devpi allows for online and offline usage, and so normal day to day usage on solid internet connections should seed a cache that can be used offline.

The problem blocked this from use is that the docker container would need to be created with additional options, forwarding the host (or another docker container hosting devpi). One option around this might be to create a signal that can be caught before running the docker command to create the container, and allow for alteration of the dictionary that we pass to the docker API. This would allow for a custom RTD plugin that would add a link to a devpi container, or an additional forwarded port/etc.

@agjohnson agjohnson added the Improvement Minor improvement to code label Jan 26, 2018
@agjohnson agjohnson added this to the Development improvements milestone Jan 26, 2018
@humitos
Copy link
Member

humitos commented Jan 26, 2018

I think that using devpi is a good idea but maybe overkill for this. I proposed a simpler solution some time ago by adding something similar in #3299 but I left comment at the end why it wasn't working for DockerEnvironments, so I'm adding a new PR at #3556

@humitos
Copy link
Member

humitos commented Feb 15, 2018

This was cloed automatically but @agjohnson said my implementation in the PR is not a replacement of this issue. So, I'm reopening it.

@humitos humitos reopened this Feb 15, 2018
@agjohnson agjohnson added Accepted Accepted issue on our roadmap and removed Accepted Accepted issue on our roadmap labels Jun 8, 2018
@stale
Copy link

stale bot commented Jan 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Jan 10, 2019
@stsewd stsewd added Accepted Accepted issue on our roadmap and removed Status: stale Issue will be considered inactive soon labels Jan 10, 2019
humitos added a commit that referenced this issue Oct 30, 2019
Adds a new service for docker-compose that spin up a devpi-server to
cache all the Python packages used by the builders.

If configured, `--index-url` and `--trusted-host` is added to all
the `pip` commands.

Fixes #3553
humitos added a commit that referenced this issue Oct 30, 2019
Adds a new service for docker-compose that spin up a devpi-server to
cache all the Python packages used by the builders.

If configured, `--index-url` and `--trusted-host` is added to all
the `pip` commands.

Fixes #3553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Improvement Minor improvement to code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants