We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f6fe18 commit 98def2bCopy full SHA for 98def2b
images/configure.md
@@ -46,12 +46,16 @@ file shows how you can clone a repo at build time:
46
#!/bin/bash
47
if [ ! -d "/home/coder/workspace/project" ]
48
then
49
+ssh-keyscan -t rsa <your git provider endpoint> >> ~/.ssh/known_hosts
50
git clone git://company.com/project.git /home/coder/workspace/project
51
else
52
echo "Project has already been cloned."
53
fi
54
```
55
56
+> Change the git provider endpoint in the ```ssh-keyscan``` command. e.g.,
57
+> ```github.com``` ```bitbucket.org``` ```gitlab.com```
58
+
59
Note that the instructions provided include `if-else` logic on whether the
60
instructions should be re-run (and when) or if Coder should run the instructions
61
only once. We strongly recommend including this logic at all times to minimize
0 commit comments