Skip to content

Commit 5f42304

Browse files
authored
Updates the upgrade steps (#97)
* Update upgrade steps, refactor default run command
1 parent e47d1f9 commit 5f42304

File tree

7 files changed

+28
-15
lines changed

7 files changed

+28
-15
lines changed

docs/about/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Major features and changes are noted here. To review all updates, see the
1111

1212
:::
1313

14-
Related: [Upgrade CodeGate](../how-to/install.md#upgrade-codegate)
14+
Related: [Upgrade CodeGate](../how-to/install.mdx#upgrade-codegate)
1515

1616
- **Request type muxing** - 26 Feb, 2025\
1717
Workspace model muxing now supports filtering based on chat and FIM request

docs/how-to/install.md docs/how-to/install.mdx

+19-9
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ description: Install and upgrade CodeGate using Docker
44
sidebar_position: 10
55
---
66

7+
import DefaultRunCommand from '../partials/_default-run-command.md';
8+
79
## Prerequisites
810

911
CodeGate is distributed as a Docker container. You need a container runtime like
1012
Docker Desktop or Docker Engine. Podman and Podman Desktop are also supported.
1113
Windows, macOS, and Linux operating systems are all supported with x86_64 and
1214
arm64 (ARM and Apple Silicon) CPU architectures.
1315

14-
These instructions assume the `docker` CLI is available. If you use Podman,
15-
replace `docker` with `podman` in all commands.
16+
These instructions assume you have the `docker` CLI available. If you use
17+
Podman, replace `docker` with `podman` in all commands.
1618

1719
## Run CodeGate
1820

@@ -31,9 +33,7 @@ secured/local network, see
3133
To download and run CodeGate with the recommended configuration for full
3234
functionality:
3335

34-
```bash
35-
docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
36-
```
36+
<DefaultRunCommand />
3737

3838
Parameter reference:
3939

@@ -61,7 +61,7 @@ lost when you stop or restart CodeGate.
6161

6262
:::
6363

64-
### Alternative run commands {#examples}
64+
### Alternative run commands \{#examples}
6565

6666
Run with minimal functionality for use with **Continue**, **aider**, or
6767
**Cline** (omits the HTTP proxy port needed by Copilot):
@@ -78,7 +78,7 @@ docker run --name codegate -d -p 127.0.0.1:8989:8989 -p 127.0.0.1:9090:9090 -p 1
7878
```
7979

8080
**Install a specific version:** starting with v0.1.4 you can optionally run a
81-
specific version of CodeGate using sematic version tags:
81+
specific version of CodeGate using semantic version tags:
8282

8383
- Patch version: `ghcr.io/stacklok/codegate:v0.1.15` (exact)
8484
- Minor version: `ghcr.io/stacklok/codegate:v0.1` (latest v0.1.x release)
@@ -143,6 +143,8 @@ flag:
143143
docker logs --follow codegate
144144
```
145145

146+
To update the logging verbosity, see [Advanced configuration](./configure.md).
147+
146148
## Upgrade CodeGate
147149

148150
To upgrade CodeGate to the latest version, start by reviewing the
@@ -160,8 +162,16 @@ Stop and remove the current container:
160162
docker rm --force codegate
161163
```
162164

163-
Finally, launch the new version using the
164-
[same `docker run` command](#recommended-settings) you used originally.
165+
Re-launch with the new image:
166+
167+
<DefaultRunCommand />
168+
169+
:::note
170+
171+
If you customized your `docker run` command, use the same command you used
172+
originally.
173+
174+
:::
165175

166176
## Manage the CodeGate container
167177

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Follow one of the the quickstart guides to get up and running quickly:
100100
- [Quickstart guide - Continue](./quickstart-continue.mdx) to integrate CodeGate
101101
with the open source Continue extension, VS Code, and a local Ollama server
102102

103-
Review the [installation instructions](./how-to/install.md).
103+
Review the [installation instructions](./how-to/install.mdx).
104104

105105
Learn more about CodeGate's features:
106106

docs/integrations/continue.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ To use this provider, download your desired model file in GGUF format from the
385385
Then copy it into the `/app/codegate_volume/models` directory in the CodeGate
386386
container. To persist models between restarts, run CodeGate with a Docker volume
387387
as shown in the
388-
[recommended configuration](../how-to/install.md#recommended-settings).
388+
[recommended configuration](../how-to/install.mdx#recommended-settings).
389389

390390
Example using huggingface-cli to download our recommended models for chat (at
391391
least a 7B model is recommended for best results) and autocomplete (a 1.5B or 3B

docs/partials/.markdownlint.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"extends": "../../.markdownlint.json",
23
"first-line-h1": false
34
}

docs/partials/_default-run-command.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```bash
2+
docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
3+
```

docs/quickstart-copilot.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ slug: /quickstart
99

1010
import useBaseUrl from '@docusaurus/useBaseUrl';
1111
import ThemedImage from '@theme/ThemedImage';
12+
import DefaultRunCommand from './partials/_default-run-command.md';
1213

1314
## Objective
1415

@@ -34,9 +35,7 @@ Required software:
3435

3536
Run CodeGate using Docker:
3637

37-
```bash
38-
docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
39-
```
38+
<DefaultRunCommand />
4039

4140
This pulls the latest CodeGate image from the GitHub Container Registry and
4241
starts the container the background, with the required port bindings and a

0 commit comments

Comments
 (0)