From 77eda8431c87ad0220e2f8f35a01e7fb58ba1e2e Mon Sep 17 00:00:00 2001 From: chpeer <19874293+chpeer@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:18:02 +0000 Subject: [PATCH] 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 Co-authored-by: Meng Zhang --- Dockerfile | 2 ++ website/docs/configuration.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5a9bf1c..f939d14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* diff --git a/website/docs/configuration.md b/website/docs/configuration.md index 2e0b210..5e748f5 100644 --- a/website/docs/configuration.md +++ b/website/docs/configuration.md @@ -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.