mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
Update latest release to 3.11.4 (#7638)
This commit is contained in:
parent
f0bfb77dde
commit
4c5524e5fd
@ -27,12 +27,12 @@ var (
|
||||
// non-cluster installations what the latest version is. The version here _must_ be
|
||||
// available at https://hub.docker.com/r/sourcegraph/server/tags/ before
|
||||
// landing in master.
|
||||
latestReleaseDockerServerImageBuild = newBuild("3.11.2")
|
||||
latestReleaseDockerServerImageBuild = newBuild("3.11.4")
|
||||
|
||||
// latestReleaseKubernetesBuild is only used by sourcegraph.com to tell existing Sourcegraph
|
||||
// cluster deployments what the latest version is. The version here _must_ be available in
|
||||
// a tag at https://github.com/sourcegraph/deploy-sourcegraph before landing in master.
|
||||
latestReleaseKubernetesBuild = newBuild("3.11.2")
|
||||
latestReleaseKubernetesBuild = newBuild("3.11.4")
|
||||
)
|
||||
|
||||
func getLatestRelease(deployType string) build {
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</button>
|
||||
<details-menu aria-label="Sourcegraph version" class="dropdown-menu m-0 p-0" aria-labelledby="Version Dropdown">
|
||||
|
||||
{{/* Update these after each release. */}} {{$previousReleaseRevspec := "v3.10.4"}} {{$previousReleaseVersion := "3.10"}} {{$currentReleaseRevspec := "v3.11.2"}} {{$currentReleaseVersion := "3.11"}} {{$nextReleaseVersion := "master"}}
|
||||
{{/* Update these after each release. */}} {{$previousReleaseRevspec := "v3.10.4"}} {{$previousReleaseVersion := "3.10"}} {{$currentReleaseRevspec := "v3.11.4"}} {{$currentReleaseVersion := "3.11"}} {{$nextReleaseVersion := "master"}}
|
||||
<a rel="nofollow" class="dropdown-item {{if eq .ContentVersion " "}}active{{end}}" href="/{{.ContentPagePath}}">master</a>
|
||||
<a rel="nofollow" class=" dropdown-item {{if eq $currentReleaseVersion .ContentVersion " "}}active{{end}}" href="/@{{$currentReleaseVersion}}/{{.ContentPagePath}}">{{$currentReleaseVersion}}<span class="current-branch ml-1">current</span></a>
|
||||
<a rel="nofollow" class=" dropdown-item {{if eq $previousReleaseVersion .ContentVersion " "}}active{{end}}" href="/@{{$previousReleaseVersion}}/{{.ContentPagePath}}">{{$previousReleaseVersion}}</a>
|
||||
|
||||
@ -20,7 +20,7 @@ Please refer to our [Postgres](https://docs.sourcegraph.com/admin/postgres) docu
|
||||
We want line breaks for readability, but backslashes to escape them do not work cross-platform.
|
||||
This uses line breaks that are rendered but not copy-pasted to the clipboard.
|
||||
-->
|
||||
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGHOST=psql.mycompany.org<span class="virtual-br"></span> -e PGUSER=sourcegraph<span class="virtual-br"></span> -e PGPASSWORD=secret<span class="virtual-br"></span> -e PGDATABASE=sourcegraph<span class="virtual-br"></span> -e PGSSLMODE=require<span class="virtual-br"></span> sourcegraph/server:3.11.2</code></pre>
|
||||
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGHOST=psql.mycompany.org<span class="virtual-br"></span> -e PGUSER=sourcegraph<span class="virtual-br"></span> -e PGPASSWORD=secret<span class="virtual-br"></span> -e PGDATABASE=sourcegraph<span class="virtual-br"></span> -e PGSSLMODE=require<span class="virtual-br"></span> sourcegraph/server:3.11.4</code></pre>
|
||||
|
||||
> NOTE: If your PostgreSQL server does not support SSL, set `PGSSLMODE=disable` instead of `PGSSLMODE=require`. Note that this is potentially insecure.
|
||||
|
||||
@ -40,7 +40,7 @@ or follow the [IANA specification for Redis URLs](https://www.iana.org/assignmen
|
||||
We want line breaks for readability, but backslashes to escape them do not work cross-platform.
|
||||
This uses line breaks that are rendered but not copy-pasted to the clipboard.
|
||||
-->
|
||||
<pre class="pre-wrap"><code>docker run [...]<span class="virtual-br"></span> -e REDIS_ENDPOINT=redis.mycompany.org:6379<span class="virtual-br"></span> sourcegraph/server:3.11.2</code></pre>
|
||||
<pre class="pre-wrap"><code>docker run [...]<span class="virtual-br"></span> -e REDIS_ENDPOINT=redis.mycompany.org:6379<span class="virtual-br"></span> sourcegraph/server:3.11.4</code></pre>
|
||||
|
||||
> NOTE: On Mac/Windows, if trying to connect to a Redis server on the same host machine, remember that Sourcegraph is running inside a Docker container inside of the Docker virtual machine. You may need to specify your actual machine IP address and not `localhost` or `127.0.0.1` as that refers to the Docker VM itself.
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ This tutorial shows you how to deploy Sourcegraph to a single EC2 instance on AW
|
||||
- usermod -a -G docker ec2-user
|
||||
|
||||
# Install and run Sourcegraph. Restart the container upon subsequent reboots
|
||||
- [ sh, -c, 'docker run -d --publish 80:7080 --publish 443:7080 --publish 127.0.0.1:3370:3370 --restart unless-stopped --volume /home/ec2-user/.sourcegraph/config:/etc/sourcegraph --volume /home/ec2-user/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.11.2' ]
|
||||
- [ sh, -c, 'docker run -d --publish 80:7080 --publish 443:7080 --publish 127.0.0.1:3370:3370 --restart unless-stopped --volume /home/ec2-user/.sourcegraph/config:/etc/sourcegraph --volume /home/ec2-user/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.11.4' ]
|
||||
```
|
||||
|
||||
- Select **Next: ...** until you get to the **Configure Security Group** page. Then add the following rules:
|
||||
|
||||
@ -16,7 +16,7 @@ If you're just starting out, we recommend [installing Sourcegraph locally](index
|
||||
1. Run the Sourcegraph Docker image as a daemon:
|
||||
|
||||
```
|
||||
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.11.2
|
||||
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.11.4
|
||||
```
|
||||
1. Navigate to the droplet's IP address to finish initializing Sourcegraph. If you have configured a
|
||||
DNS entry for the IP, configure `externalURL` to reflect that.
|
||||
|
||||
@ -23,7 +23,7 @@ If you're just starting out, we recommend [installing Sourcegraph locally](index
|
||||
sudo apt-get install -y docker-ce
|
||||
mkdir -p /root/.sourcegraph/config
|
||||
mkdir -p /root/.sourcegraph/data
|
||||
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.11.2
|
||||
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.11.4
|
||||
```
|
||||
|
||||
- Create your VM, then navigate to its public IP address.
|
||||
|
||||
@ -8,7 +8,7 @@ It takes less than 5 minutes to run and install Sourcegraph using Docker:
|
||||
This uses line breaks that are rendered but not copy-pasted to the clipboard.
|
||||
-->
|
||||
|
||||
<pre class="pre-wrap start-sourcegraph-command"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> --volume ~/.sourcegraph/config:/etc/sourcegraph<span class="virtual-br"></span> --volume ~/.sourcegraph/data:/var/opt/sourcegraph<span class="virtual-br"></span> sourcegraph/server:3.11.2</code></pre>
|
||||
<pre class="pre-wrap start-sourcegraph-command"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> --volume ~/.sourcegraph/config:/etc/sourcegraph<span class="virtual-br"></span> --volume ~/.sourcegraph/data:/var/opt/sourcegraph<span class="virtual-br"></span> sourcegraph/server:3.11.4</code></pre>
|
||||
|
||||
Once the server is ready (logo is displayed in the terminal), navigate to the hostname or IP address on port `7080`. Create the admin account, then you'll be guided through setting up Sourcegraph for code searching and navigation.
|
||||
|
||||
@ -52,7 +52,7 @@ Sourcegraph can be **tested** on Windows 10 using roughly the same steps provide
|
||||
1. [Install Docker for Windows](https://docs.docker.com/docker-for-windows/install/)
|
||||
2. Using a command prompt, follow the same [installation steps provided above](#install-sourcegraph-with-docker) but remove the `--volume` arguments. For example by pasting this:
|
||||
|
||||
<pre class="pre-wrap"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> sourcegraph/server:3.11.2</code></pre>
|
||||
<pre class="pre-wrap"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> sourcegraph/server:3.11.4</code></pre>
|
||||
|
||||
## Insiders build
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ The management console is built-in to the same Docker image and published on por
|
||||
```
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE PORTS
|
||||
394ff36a8c3c sourcegraph/server:3.11.2 0.0.0.0:2633->2633/tcp, 0.0.0.0:7080->7080/tcp
|
||||
394ff36a8c3c sourcegraph/server:3.11.4 0.0.0.0:2633->2633/tcp, 0.0.0.0:7080->7080/tcp
|
||||
```
|
||||
|
||||
Usually, you can access it through the public internet via https://my.server.ip:2633, or https://localhost:2633 when testing locally.
|
||||
|
||||
@ -39,7 +39,7 @@ docker run -p 7080:7080 -p 2633:2633 --rm \
|
||||
-v ~/.sourcegraph/config:/etc/sourcegraph \
|
||||
-v ~/.sourcegraph/data:/var/opt/sourcegraph \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||
sourcegraph/server:3.11.2
|
||||
sourcegraph/server:3.11.4
|
||||
```
|
||||
|
||||
**3.** When the upgrade has been completed, stop the Sourcegraph container, then run again using the original `docker run` command (without mounting the Docker socket).
|
||||
|
||||
@ -89,7 +89,7 @@ docker container run \
|
||||
\
|
||||
--volume ~/.sourcegraph/config:/etc/sourcegraph \
|
||||
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
|
||||
sourcegraph/server:3.11.2
|
||||
sourcegraph/server:3.11.4
|
||||
```
|
||||
|
||||
> NOTE: We recommend removing `--publish 7080:7080` as it's not needed and traffic sent to that port is un-encrypted.
|
||||
|
||||
@ -209,5 +209,5 @@ To manually test against a Kubernetes cluster, use https://k8s.sgdev.org.
|
||||
|
||||
For testing with a single Docker image, run something like
|
||||
```
|
||||
IMAGE=sourcegraph/server:3.11.2 ./dev/run-server-image.sh
|
||||
IMAGE=sourcegraph/server:3.11.4 ./dev/run-server-image.sh
|
||||
```
|
||||
|
||||
@ -12,7 +12,7 @@ It takes less than 5 minutes to run and install Sourcegraph using Docker:
|
||||
This uses line breaks that are rendered but not copy-pasted to the clipboard.
|
||||
-->
|
||||
|
||||
<pre class="pre-wrap start-sourcegraph-command"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> --volume ~/.sourcegraph/config:/etc/sourcegraph<span class="virtual-br"></span> --volume ~/.sourcegraph/data:/var/opt/sourcegraph<span class="virtual-br"></span> sourcegraph/server:3.11.2</code></pre>
|
||||
<pre class="pre-wrap start-sourcegraph-command"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> --volume ~/.sourcegraph/config:/etc/sourcegraph<span class="virtual-br"></span> --volume ~/.sourcegraph/data:/var/opt/sourcegraph<span class="virtual-br"></span> sourcegraph/server:3.11.4</code></pre>
|
||||
|
||||
Once the server is ready (logo is displayed in the terminal), navigate to the hostname or IP address on port `7080`. Create the admin account, then you'll be guided through setting up Sourcegraph for code searching and navigation.
|
||||
|
||||
@ -48,7 +48,7 @@ We actively maintain the two most recent monthly releases of Sourcegraph, and we
|
||||
|
||||
For example, if you are running Sourcegraph 3.1, then you can upgrade directly to 3.2 and 3.3. If you want to upgrade to 3.4, then you first need to upgrade to 3.3 before you can upgrade to 3.4.
|
||||
|
||||
> The Docker server image tags follow SemVer semantics, so version 3.8 can be found at `sourcegraph/server:3.11.2`. You can see the full list of tags on our [Docker Hub page](https://hub.docker.com/r/sourcegraph/server/tags).
|
||||
> The Docker server image tags follow SemVer semantics, so version 3.8 can be found at `sourcegraph/server:3.11.4`. You can see the full list of tags on our [Docker Hub page](https://hub.docker.com/r/sourcegraph/server/tags).
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user