Use SSH key source secret w/ git+ssh in requirements.txt?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, git, python
- Domain
- build-system, devops
Research direction
Start with the 3.6 S2I container build behavior described in the issue, the requirements.txt entry, and the SSH key source secret used to clone the application. Reproduce the pip git+ssh installation failure and trace how the build exposes the secret and resolves the repository hostname. Done means a private dependency in requirements.txt can be cloned with the same source secret.
Written by the indexing model from the issue text.
Description
Using the 3.6 S2I container, pip needs to pull a dependency from a private git repo as specified in my requirements.txt, e.g:
git+ssh://git@github.organization.org:github-user/githib-repo.git@some_tag
The same SSH key source secret that the OpenShift build is presently using to pull the application source code also permits access to this dependency, however the git+ssh clone is failing:
Collecting git+ssh://git@github.organization.org:github-user/githib-repo.git@some_tag (from -r requirements.txt (line 9))
Cloning ssh://git@github.organization.org:github-user/githib-repo.git@some_tag (to some_tag) to /tmp/pip-7tf7baqk-build
ssh: Could not resolve hostname github.organization.org: Name or service not known
fatal: Could not read from remote repository.
Is there anything I can do that would allow pip to make use of the same SSH key source secret used to clone my app code when installing requirements.txt dependencies?
Thanks.
- Dominant language
- Shell
- Stars
- 271
- Forks
- 329
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sclorg/s2i-python-container
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
sclorg/s2i-python-container#813 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
sclorg/s2i-python-container#747 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sclorg/s2i-python-container#540 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
sclorg/s2i-python-container#368 · 7 comments ·
-
enhancement P3
Difficulty 5/5 Over a week Newbie friendliness 15/100
sclorg/s2i-python-container#304 · 8 comments · 2 reactions ·
All issues in sclorg/s2i-python-container
Similar issues
-
out-of-date
Difficulty 1/5 Under an hour Newbie friendliness 82/100
CachyOS/CachyOS-PKGBUILDS#1894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
community-scripts/ProxmoxVE#17396 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mattpocock/skills#1099 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100