Skip to content

Commit 82bc961

Browse files
Update versions with no V
1 parent 4b866dd commit 82bc961

File tree

14 files changed

+120
-53
lines changed

14 files changed

+120
-53
lines changed

docs/admin/deploy/docker-compose/upgrade.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
12
# Upgrade Sourcegraph on Docker Compose
23

34
This document describes the process to update a Docker Compose Sourcegraph instance. If you are unfamiliar with sourcegraph versioning or releases see our [general concepts documentation](/admin/updates/).

docs/admin/deploy/docker-single-container/aws.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Install single-container Sourcegraph with Docker on AWS
24

35
This tutorial shows you how to deploy [single-container Sourcegraph with Docker](/admin/deploy/docker-single-container/) to a single EC2 instance on AWS.
@@ -33,7 +35,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
3335
- usermod -a -G docker ec2-user
3436
3537
# Install and run Sourcegraph. Restart the container upon subsequent reboots
36-
- [ 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:5.6.2535' ]
38+
- [ 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:{CURRENT_VERSION_NO_V}' ]
3739
```
3840

3941
- Select **Next: ...** until you get to the **Configure Security Group** page. Then add the following rules:

docs/admin/deploy/docker-single-container/digitalocean.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Install single-container Sourcegraph with Docker on DigitalOcean
24

35
This tutorial shows you how to deploy [single-container Sourcegraph with Docker](/admin/deploy/docker-single-container/) to a single node running on DigitalOcean.
@@ -17,7 +19,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
1719
1. Run the Sourcegraph Docker image as a daemon:
1820

1921
```
20-
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:5.6.2535
22+
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:{CURRENT_VERSION_NO_V}
2123
```
2224
1. Navigate to the droplet's IP address to finish initializing Sourcegraph. If you have configured a
2325
DNS entry for the IP, configure `externalURL` to reflect that.

docs/admin/deploy/docker-single-container/google_cloud.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Install single-container Sourcegraph with Docker on Google Cloud
24

35
This tutorial shows you how to deploy [single-container Sourcegraph with Docker](/admin/deploy/docker-single-container/) to a single node running on Google Cloud.
@@ -23,7 +25,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
2325
sudo apt-get install -y docker-ce
2426
mkdir -p /root/.sourcegraph/config
2527
mkdir -p /root/.sourcegraph/data
26-
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:5.6.2535
28+
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:{CURRENT_VERSION_NO_V}
2729
```
2830

2931
- Create your VM, then navigate to its public IP address.

docs/admin/deploy/docker-single-container/index.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Docker Single Container Deployment
24

35
The Docker Single Container deployment type is a way to very quickly get an instance of Sourcegraph set up locally to experiment with many of its features. However, it is **not recommended** for a production instance, and **has limitations** depending on the OS you are deploying to, as well as the associated resources. See the [troubleshooting section](#troubleshooting) for additional information.
@@ -13,7 +15,7 @@ docker run
1315
--publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm
1416
--volume ~/.sourcegraph/config:/etc/sourcegraph
1517
--volume ~/.sourcegraph/data:/var/opt/sourcegraph
16-
sourcegraph/server:5.6.2535
18+
sourcegraph/server:{CURRENT_VERSION_NO_V}
1719
```
1820

1921
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 +48,7 @@ For example, to mount a `.gitconfig`, create a file `/mnt/sourcegraph/config/git
4648
Alternatively you can create a new Docker image which inherits from Sourcegraph and then mutates the environment:
4749

4850
```dockerfile
49-
FROM sourcegraph/server:5.6.2535
51+
FROM sourcegraph/server:{CURRENT_VERSION_NO_V}
5052

5153
COPY gitconfig /etc/gitconfig
5254
COPY ssh /root/.ssh
@@ -87,7 +89,7 @@ This is required to [collect debug data](/admin/pprof).
8789
The docker run command for single-container Sourcegraph needs an additional publish flag to expose the debug port:
8890

8991
```sh
90-
$ 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:5.6.2535
92+
$ 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:{CURRENT_VERSION_NO_V}
9193
```
9294

9395
If Sourcegraph is deployed to a remote server, then access via an SSH tunnel using a tool
@@ -105,7 +107,7 @@ Add the following to your docker run command:
105107
```sh
106108
$ docker run [...]
107109
-e (YOUR CODE)
108-
sourcegraph/server:5.6.2535
110+
sourcegraph/server:{CURRENT_VERSION_NO_V}
109111
```
110112

111113
## Operation
@@ -254,7 +256,7 @@ Sourcegraph can be **tested** on Windows 10 using roughly the same steps provide
254256
1. [Install Docker for Windows](https://docs.docker.com/docker-for-windows/install/)
255257
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:
256258

257-
<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:5.6.2535</code></pre>
259+
<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:{CURRENT_VERSION_STRING_NO_V()}</code></pre>
258260

259261
### Low resource environments
260262

docs/admin/deploy/kubernetes/index.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Sourcegraph on Kubernetes with Helm
24

35
Best for large enterprises that require a multi-node, self-hosted solution.
@@ -52,7 +54,7 @@ $ helm repo add sourcegraph https://helm.sourcegraph.com/release
5254
Install the Sourcegraph chart using default values:
5355

5456
```sh
55-
$ helm install --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
57+
$ helm install --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
5658
```
5759

5860
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.
@@ -79,7 +81,7 @@ Example overrides can be found in the [examples](https://github.com/sourcegraph/
7981

8082
Providing the override file to Helm is done with the inclusion of the values flag and the name of the file:
8183
```sh
82-
$ helm upgrade --install --values ./override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
84+
$ helm upgrade --install --values ./override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
8385
```
8486
When making configuration changes, it's recommended to review the changes that will be applied—see [Reviewing Changes](#reviewing-changes).
8587

@@ -515,7 +517,7 @@ The override file includes a [BackendConfig] CRD. This is necessary to instruct
515517
**Step 2:** – Install the chart
516518
517519
```sh
518-
$ helm upgrade --install --values ./override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
520+
$ helm upgrade --install --values ./override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
519521
```
520522

521523
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:
@@ -636,7 +638,7 @@ storageClass:
636638
**Step 2:** – Install the chart
637639

638640
```sh
639-
$ helm upgrade --install --values ./override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
641+
$ helm upgrade --install --values ./override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
640642
```
641643

642644
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):
@@ -723,7 +725,7 @@ storageClass:
723725
**Step 2:** – Install the chart
724726

725727
```sh
726-
$ helm upgrade --install --values ./override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
728+
$ helm upgrade --install --values ./override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
727729
```
728730

729731
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:
@@ -809,7 +811,7 @@ storageClass:
809811
**Step 2:** – Install the chart
810812

811813
```sh
812-
$ helm upgrade --install --values ./override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
814+
$ helm upgrade --install --values ./override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
813815
```
814816

815817
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:
@@ -909,7 +911,7 @@ $ helm repo update sourcegraph
909911
**Step 4:** Install the new version:
910912

911913
```sh
912-
$ helm upgrade --install -f override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
914+
$ helm upgrade --install -f override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
913915
```
914916

915917
**Step 5:** Verify the installation has started:
@@ -975,7 +977,7 @@ $ helm upgrade --install -n <your namespace> --set "migrator.args={upgrade,--fro
975977

976978
**Example:**
977979
```sh
978-
$ helm upgrade --install -n sourcegraph --set "migrator.args={upgrade,--from=3.41.0,--to=4.5.1}" sourcegraph-migrator sourcegraph/sourcegraph-migrator --version 5.6.2535
980+
$ helm upgrade --install -n sourcegraph --set "migrator.args={upgrade,--from=3.41.0,--to=4.5.1}" sourcegraph-migrator sourcegraph/sourcegraph-migrator --version {CURRENT_VERSION_NO_V}
979981
Release "sourcegraph-migrator" has been upgraded. Happy Helming!
980982
NAME: sourcegraph-migrator
981983
LAST DEPLOYED: Tue Mar 7 18:23:56 2023

docs/admin/deploy/machine-images/gce.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Sourcegraph Google Compute Instances
24

35
Sourcegraph [Google Compute Engine (GCE) Images](https://cloud.google.com/compute/docs/images) allow you to quickly deploy a production-ready Sourcegraph instance tuned to your organization's scale in just a few clicks.
@@ -143,7 +145,7 @@ SSH into the VM as user `sourcegraph` and run the following command:
143145

144146
```bash
145147
# Please update the version number according to the upgrade notes
146-
helm upgrade -i -f /home/sourcegraph/deploy/install/override.yaml --version 5.6.2535 sourcegraph sourcegraph/sourcegraph
148+
helm upgrade -i -f /home/sourcegraph/deploy/install/override.yaml --version {CURRENT_VERSION_NO_V} sourcegraph sourcegraph/sourcegraph
147149
# Note: /home/sourcegraph/deploy/install/override.yaml is the override file for your instance size
148150
```
149151

docs/admin/external_services/postgres.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Using your own PostgreSQL server
24

35
You can use your own PostgreSQL v12+ server with Sourcegraph if you wish. For example, you may prefer this if you already have existing backup infrastructure around your own PostgreSQL server, wish to use Amazon RDS, etc.
@@ -53,7 +55,7 @@ docker run [...]
5355
-e CODEINTEL_PGPASSWORD=secret
5456
-e CODEINTEL_PGDATABASE=sourcegraph-codeintel
5557
-e CODEINTEL_PGSSLMODE=require
56-
sourcegraph/server:5.6.2535
58+
sourcegraph/server:{CURRENT_VERSION_NO_V}
5759
```
5860

5961
### Docker Compose
@@ -148,7 +150,7 @@ When [PgBouncer] is used, we need to include `statement_cache_mode=describe` in
148150

149151
Add the following to your `docker run` command:
150152

151-
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:[email protected]:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:[email protected]:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:5.6.2535</code></pre>
153+
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:[email protected]:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:[email protected]:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:{CURRENT_VERSION_STRING_NO_V()}</code></pre>
152154

153155
### Docker Compose
154156

docs/admin/http_https_configuration.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Sourcegraph HTTP and HTTPS/SSL configuration
24

35
Overview:
@@ -37,7 +39,7 @@ docker container run \
3739
\
3840
--volume ~/.sourcegraph/config:/etc/sourcegraph \
3941
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
40-
sourcegraph/server:5.6.2535
42+
sourcegraph/server:{CURRENT_VERSION_NO_V}
4143
```
4244

4345
### Sourcegraph Cluster (Kubernetes)

docs/admin/ssl_https_self_signed_cert_nginx.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CURRENT_VERSION_STRING_NO_V, CURRENT_VERSION_STRING } from 'src/components/PreCodeBlock'
2+
13
# Adding SSL (HTTPS) to Sourcegraph with a self-signed certificate
24

35
This is for external Sourcegraph instances that need a self-signed certificate because they don't yet have a certificate from a [globally trusted Certificate Authority (CA)](https://en.wikipedia.org/wiki/Certificate_authority#Providers). It includes how to get the self-signed certificate trusted by your browser.
@@ -92,7 +94,7 @@ docker container run \
9294
\
9395
--volume ~/.sourcegraph/config:/etc/sourcegraph \
9496
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
95-
sourcegraph/server:5.6.2535
97+
sourcegraph/server:{CURRENT_VERSION_NO_V}
9698
```
9799

98100
> NOTE: We recommend removing `--publish 7080:7080` as it's not needed and traffic sent to that port is un-encrypted.

0 commit comments

Comments
 (0)