I have a python package in a private GitHub Repo. While using it locally I use
pip install git https://[email protected]/org-name/package-name.git
in the bash to install the package.
I want to use that package in my azure functions and container apps. Is there a way to add that package to the requirements file and install it? And what do I need to configure in Github so that my azure resources can access it?
I add git https://[email protected]/org-name/package-name.git to requirements.txt of the azure function app and I am unable to run it even locally.
I get the following error:
ERROR: Error [WinError 2] The system cannot find the file specified while executing command git clone -q 'https://****@github.com/org-name/packagename.git'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
CodePudding user response:
You can setup a CI/CD pipeline in Azure Devops or github action that :
- Triggers whenever there is a pull request in github master.
- Copy the python submodules in azure function and container apps code.
You have to package your code install allow it to be installed using
pip install git ssh://github.com/yourprofile/project.git