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

Option to override the path to known_hosts #778

Open
1 task done
k3karthic opened this issue Jun 9, 2023 · 0 comments
Open
1 task done

Option to override the path to known_hosts #778

k3karthic opened this issue Jun 9, 2023 · 0 comments

Comments

@k3karthic
Copy link

k3karthic commented Jun 9, 2023

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

Using minikube on Hyper-V as a Docker platform while running on Windows poses a few unique quirks,

  • Docker volume mounts run on the VM and does not have access to the Windows filesystem
  • The homePath variable points to "C:\Users\<username>" while the VM needs "/home/docker"

Workarounds

  • Run minikube mount to pass the requirements.txt to the VM
minikube mount  C:\Users\<username>\AppData\Local\UnitedIncome\serverless-python-requirements:"/mnt/c/Users/<username>/AppData/Local/UnitedIncome/serverless-python-requirements"
  • Override dockerPrivateKey to point to a location in the VM

Issue: pip.js hardcodes the path to known_hosts using the homePath variable which results in an invalid location 'C:\Users\<username>/.ssh/known_hosts:/root/.ssh/known_hosts:z'.

Proposed solution (optional)

An option like dockerKnownHosts similar to dockerPrivateKey which can be used to set the path.

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

1 participant