release: sourcegraph@3.40.2 (#36871)

* release: sourcegraph@3.40.2

* Update pure docker steps

* Update update docs
This commit is contained in:
Crystal Augustus 2022-06-08 18:03:53 -04:00 committed by GitHub
parent 95c6946b9d
commit a839e73095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 38 additions and 33 deletions

View File

@ -17,7 +17,7 @@ export const SelfHostInstructions: React.FunctionComponent<React.PropsWithChildr
telemetryService,
}) => {
const dockerCommand =
'docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.40.1'
'docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.40.2'
const copyTooltip = 'Copy command'
const copyCompletedTooltip = 'Copied!'

View File

@ -33,17 +33,17 @@ var (
// non-cluster, non-docker-compose, and non-pure-docker 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.40.1")
latestReleaseDockerServerImageBuild = newBuild("3.40.2")
// 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.40.1")
latestReleaseKubernetesBuild = newBuild("3.40.2")
// latestReleaseDockerComposeOrPureDocker is only used by sourcegraph.com to tell existing Sourcegraph
// Docker Compose or Pure Docker deployments what the latest version is. The version here _must_ be
// available in a tag at https://github.com/sourcegraph/deploy-sourcegraph-docker before landing in master.
latestReleaseDockerComposeOrPureDocker = newBuild("3.40.1")
latestReleaseDockerComposeOrPureDocker = newBuild("3.40.2")
)
func getLatestRelease(deployType string) build {

View File

@ -35,7 +35,7 @@ DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/home/ec2-user/deploy-sourcegraph-docker'
# 🚨 Update these variables with the correct values from your fork!
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v3.40.1'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v3.40.2'
# Install git
yum update -y

View File

@ -36,7 +36,7 @@ DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/root/deploy-sourcegraph-docker'
# 🚨 Update these variables with the correct values from your fork!
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v3.40.1'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v3.40.2'
# Install git
sudo apt-get update -y

View File

@ -44,7 +44,7 @@ DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/root/deploy-sourcegraph-docker'
# 🚨 Update these variables with the correct values from your fork!
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v3.40.1'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v3.40.2'
# Install git
sudo apt-get update -y

View File

@ -101,7 +101,7 @@ Create a `release` branch to track all of your customizations to Sourcegraph. Th
```bash
# Specify the version you want to install
export SOURCEGRAPH_VERSION="v3.40.1"
export SOURCEGRAPH_VERSION="v3.40.2"
# Check out the selected version for use, in a new branch called "release"
git checkout $SOURCEGRAPH_VERSION -b release
```

View File

@ -33,7 +33,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
- 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.40.1' ]
- [ 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.40.2' ]
```
- Select **Next: ...** until you get to the **Configure Security Group** page. Then add the following rules:

View File

@ -17,7 +17,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
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.40.1
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.40.2
```
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.

View File

@ -23,7 +23,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
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.40.1
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.40.2
```
- Create your VM, then navigate to its public IP address.

View File

@ -14,7 +14,7 @@ It takes less than a minute 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.40.1</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.40.2</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.
@ -46,7 +46,7 @@ For example, to mount a `.gitconfig`, create a file `/mnt/sourcegraph/config/git
Alternatively you can create a new Docker image which inherits from Sourcegraph and then mutates the environment:
```dockerfile
FROM sourcegraph/server:3.40.1
FROM sourcegraph/server:3.40.2
COPY gitconfig /etc/gitconfig
COPY ssh /root/.ssh
@ -87,7 +87,7 @@ This is required to [collect debug data](../../pprof.md).
The docker run command for single-container Sourcegraph needs an additional publish flag to expose the debug port:
```bash script
docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --publish 127.0.0.1:6060:6060 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.40.1
docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --publish 127.0.0.1:6060:6060 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.40.2
```
If Sourcegraph is deployed to a remote server, then access via an SSH tunnel using a tool
@ -105,7 +105,7 @@ Add the following to your docker run command:
```
docker run [...]
-e (YOUR CODE)
sourcegraph/server:3.40.1
sourcegraph/server:3.40.2
```
## Operation
@ -173,7 +173,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.40.1</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.40.2</code></pre>
### Low resource environments

View File

@ -82,7 +82,7 @@ We **strongly** recommend you fork the [Sourcegraph with Kubernetes reference re
- Create a `release` branch to track all of your customizations to Sourcegraph. This branch will be used to [upgrade Sourcegraph](update.md) and [install your Sourcegraph instance](./index.md#installation).
```bash
export SOURCEGRAPH_VERSION="v3.40.1"
export SOURCEGRAPH_VERSION="v3.40.2"
git checkout $SOURCEGRAPH_VERSION -b release
```

View File

@ -49,7 +49,7 @@ helm repo add sourcegraph https://helm.sourcegraph.com/release
Install the Sourcegraph chart using default values:
```sh
helm install --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm install --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
Sourcegraph should now be available via the address set. Browsing to the url should now provide access to the Sourcegraph UI to create the initial administrator account.
@ -76,7 +76,7 @@ Example overrides can be found in the [examples](https://github.com/sourcegraph/
Providing the override file to Helm is done with the inclusion of the values flag and the name of the file:
```sh
helm upgrade --install --values ./override.yaml --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm upgrade --install --values ./override.yaml --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
When making configuration changes, it's recommended to review the changes that will be applied - see [Reviewing Changes](#reviewing-changes).
@ -411,7 +411,7 @@ The override file includes a [BackendConfig] CRD. This is necessary to instruct
**2** Install the chart
```sh
helm upgrade --install --values ./override.yaml --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm upgrade --install --values ./override.yaml --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
It will take around 10 minutes for the load balancer to be fully ready, you may check on the status and obtain the load balancer IP using the following command:
@ -524,7 +524,7 @@ storageClass:
**2** Install the chart
```sh
helm upgrade --install --values ./override.yaml --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm upgrade --install --values ./override.yaml --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
It will take some time for the load balancer to be fully ready, use the following to check on the status and obtain the load balancer address (once available):
@ -609,7 +609,7 @@ storageClass:
**2** Install the chart
```sh
helm upgrade --install --values ./override.yaml --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm upgrade --install --values ./override.yaml --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
It will take some time for the load balancer to be fully ready, you can check on the status and obtain the load balancer address (when ready) using:
@ -695,7 +695,7 @@ storageClass:
**2** Install the chart
```sh
helm upgrade --install --values ./override.yaml --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm upgrade --install --values ./override.yaml --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
It may take some time before your ingress is up and ready to proceed. Depending on how your Ingress Controller works, you may be able to check on its status and obtain the public address of your Ingress using:
@ -793,7 +793,7 @@ A new version of Sourcegraph is released every month (with patch releases in bet
1. Install the new version:
```bash
helm upgrade --install -f override.yaml --version 3.40.1 sourcegraph sourcegraph/sourcegraph
helm upgrade --install -f override.yaml --version 3.40.2 sourcegraph sourcegraph/sourcegraph
```
1. Verify the installation has started:

View File

@ -48,7 +48,7 @@ Add the following to your `docker run` command:
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=psql1.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"> -e CODEINTEL_PGHOST=psql2.mycompany.org<span class="virtual-br"></span> -e CODEINTEL_PGUSER=sourcegraph<span class="virtual-br"></span> -e CODEINTEL_PGPASSWORD=secret<span class="virtual-br"></span> -e CODEINTEL_PGDATABASE=sourcegraph-codeintel<span class="virtual-br"></span> -e CODEINTEL_PGSSLMODE=require<span class="virtual-br"></span> sourcegraph/server:3.40.1</code></pre>
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGHOST=psql1.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"> -e CODEINTEL_PGHOST=psql2.mycompany.org<span class="virtual-br"></span> -e CODEINTEL_PGUSER=sourcegraph<span class="virtual-br"></span> -e CODEINTEL_PGPASSWORD=secret<span class="virtual-br"></span> -e CODEINTEL_PGDATABASE=sourcegraph-codeintel<span class="virtual-br"></span> -e CODEINTEL_PGSSLMODE=require<span class="virtual-br"></span> sourcegraph/server:3.40.2</code></pre>
### Docker Compose
@ -154,7 +154,7 @@ When [PgBouncer] is used, we need to include `statement_cache_mode=describe` in
Add the following to your `docker run` command:
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:password@sourcegraph-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:password@sourcegraph-codeintel-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:3.40.1</code></pre>
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:password@sourcegraph-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:password@sourcegraph-codeintel-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:3.40.2</code></pre>
### Docker Compose

View File

@ -13,7 +13,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.40.1</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.40.2</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.

View File

@ -37,7 +37,7 @@ docker container run \
\
--volume ~/.sourcegraph/config:/etc/sourcegraph \
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
sourcegraph/server:3.40.1
sourcegraph/server:3.40.2
```
### Sourcegraph Cluster (Kubernetes)

View File

@ -91,7 +91,7 @@ docker container run \
\
--volume ~/.sourcegraph/config:/etc/sourcegraph \
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
sourcegraph/server:3.40.1
sourcegraph/server:3.40.2
```
> NOTE: We recommend removing `--publish 7080:7080` as it's not needed and traffic sent to that port is un-encrypted.

View File

@ -14,7 +14,7 @@ Each section comprehensively describes the steps needed to upgrade, and any manu
- The Postgres DBs `frontend` and `codeintel-db` are now given 1 hour to begin accepting connections before Kubernetes restarts the containers. [#4136](https://github.com/sourcegraph/deploy-sourcegraph/pull/4136)
## 3.39 -> 3.40.1
## 3.39 -> 3.40.2
- `cadvisor` now defaults to run in `privileged` mode. This allows `cadvisor` to collect out of memory events happening to containers which can be used to discover underprovisoned resources. [#804](https://github.com/sourcegraph/deploy-sourcegraph-docker/pull/804)

View File

@ -14,7 +14,7 @@
- The Postgres DBs `frontend` and `codeintel-db` are now given 1 hour to begin accepting connections before Kubernetes restarts the containers. [#4136](https://github.com/sourcegraph/deploy-sourcegraph/pull/4136)
## 3.39 -> 3.40.1
## 3.39 -> 3.40.2
- `cadvisor` now defaults to run in `privileged` mode. This allows `cadvisor` to collect out of memory events happening to containers which can be used to discover underprovisoned resources. This is disabled by default in `non-privileged` overlay. [#4126](https://github.com/sourcegraph/deploy-sourcegraph/pull/4126)
- Updated the Nginx ingress controller to v1.2.0. Previously this image originated from quay.io, now it is pulled from the official k8s repository. A redeployment of the ingress

View File

@ -10,6 +10,11 @@ Each section comprehensively describes the changes needed in Docker images, envi
## Unreleased
## 3.40.1 -> 3.40.2
To upgrade, please perform the changes in the following diff:
[https://github.com/sourcegraph/deploy-sourcegraph-docker/commit/312b9f8308148cf9403cc7868eee7b5c9611b121](https://github.com/sourcegraph/deploy-sourcegraph-docker/commit/312b9f8308148cf9403cc7868eee7b5c9611b121)
## 3.39 -> 3.40.1
- A fix that corrects the default behavior of the `migrator` service is included in this release. An attempt to standardize CLI packages in v3.39.0 unintentionally

View File

@ -9,7 +9,7 @@ This document describes the exact changes needed to update a single-node Sourceg
<!-- GENERATE UPGRADE GUIDE ON RELEASE (release tooling uses this to add entries) -->
## 3.39 -> 3.40.1
## 3.39 -> 3.40.2
Follow the [standard upgrade procedure](../deploy/docker-single-container/index.md#upgrade).

View File

@ -67,7 +67,7 @@ You can quickly try out Sourcegraph locally using Docker, which takes only a few
This uses line breaks that are rendered but not copy-pasted to the clipboard.
-->
<pre class="pre-wrap start-sourcegraph-command" id="dockerInstall"><code>docker run -d<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.40.1<span class="iconify copy-text" data-icon="mdi:clipboard-arrow-left-outline" data-inline="false"></span></code>
<pre class="pre-wrap start-sourcegraph-command" id="dockerInstall"><code>docker run -d<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.40.2<span class="iconify copy-text" data-icon="mdi:clipboard-arrow-left-outline" data-inline="false"></span></code>
</pre>
For next steps, visit the [Docker deployment documentation](admin/deploy/docker-single-container/index.md).