feat: Allow cloning repositories via SSH (#961)

* drop redundant git install

* add ssh-client and ca-certs to Dockerfile to allow repo indexing via ssh

* move ssh-client installation

* update documentation to reflect change

* add space back in

* Update configuration.md

* Update configuration.md

---------

Co-authored-by: christian <christian@thoughtmachine.net>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
support-auth-token
chpeer 2023-12-07 00:18:02 +00:00 committed by GitHub
parent 9aed0dee08
commit 77eda8431c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,8 @@ FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
openssh-client \
ca-certificates \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

View File

@ -17,7 +17,7 @@ To enable repository level context for code completion, you can add the followin
git_url = "https://github.com/TabbyML/tabby.git"
[[repositories]]
git_url = "https://github.com/OpenNMT/CTranslate2.git"
git_url = "git@github.com:OpenNMT/CTranslate2.git"
```
Once this is set, you can run `tabby scheduler` to index the source code repository.