| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
There are two recommended ways to deploy Sourcegraph:
But what if your organization wants a multi-machine deployment without using Kubernetes? What if you use a different container management platform, for example? This project aims to solve that, by providing a pure-Docker deployment option.
The goal is that anyone using a container management platform other than Kubernetes (Netflix's Titus, Apache's Mesos, etc.) would be able to use this repository as a reference for how to deploy Sourcegraph.
This project is using an alpha release of Sourcegraph v3.0.0. It is not yet heavily tested, and there may be major bugs or regressions.
When Sourcegraph v3.0.0 preview is released, this repository will be updated and code intelligence will work.
First clone the repository, then:
./deploy.shVisit http://localhost:3080 to visit the running Sourcegraph instance!
./teardown.shTo understand the system topology:
Every service (deploy-*.sh) documents inline what the system requirements are (CPU/Memory/Disk allocation). For example, the frontend service.
To scale the cluster deployment, you will need to:
See https://docs.sourcegraph.com/admin/nginx#nginx-for-other-sourcegraph-clusters-e-g-pure-docker
Alternatively, you may use the OTHER codehost type under External services, which allows you to directly specify Git repository URLs for cloning.
-v ~/my-sourcegraph-ssh-config/.ssh:/home/sourcegraph/.ssh
All future Git cloning operations will use the credentials configured there.
If you wish, you can test that cloning with your configuration is working by performing the clone in a gitserver container shell, e.g. first acquire shell access:
$ docker exec -it gitserver-0 sh
Then try cloning the repository:
$ git clone ssh://git@myhost.com/my/repo /tmp/my-repo
Open an issue or contact us (support@sourcegraph.com), we are happy to answer any questions!
| Back | FazBrowse Home | New Git URL |