Skip to content

Commit d4838a2

Browse files
committed
add coder-preview doc
1 parent 1336925 commit d4838a2

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

docs/install/coder-preview-docker.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Install and test coder-preview
2+
3+
Use Docker to install and test a
4+
[preview release of Coder](https://github.com/coder/coder/pkgs/container/coder-preview).
5+
6+
These steps are not intended for use in production deployments.
7+
If you want to install the latest version of Coder, use the [quickstart guide](../tutorials/quickstart.md).
8+
9+
1. Install Docker:
10+
11+
```bash
12+
curl -sSL https://get.docker.com | sh
13+
```
14+
15+
For more details, visit:
16+
17+
- [Linux instructions](https://docs.docker.com/desktop/install/linux-install/)
18+
- [Mac instructions](https://docs.docker.com/desktop/install/mac-install/)
19+
20+
1. Assign your user to the Docker group:
21+
22+
```shell
23+
sudo usermod -aG docker $USER
24+
```
25+
26+
1. Run `newgrp` to activate the groups changes:
27+
28+
```shell
29+
newgrp docker
30+
```
31+
32+
You might need to log out and back in or restart the machine for changes to take effect.
33+
34+
1. Install Coder via `docker run` with latest preview from [coder-preview](https://github.com/coder/coder/pkgs/container/coder-preview):
35+
36+
1. ```shell
37+
export CODER_DATA=$HOME/.config/coderv2-docker
38+
```
39+
40+
1. ```shell
41+
export DOCKER_GROUP=$(getent group docker | cut -d: -f3)
42+
```
43+
44+
1. ```shell
45+
mkdir -p $CODER_DATA
46+
```
47+
48+
1. ```shell
49+
docker run --rm -it \
50+
-v $CODER_DATA:/home/coder/.config \
51+
-v /var/run/docker.sock:/var/run/docker.sock \
52+
--group-add $DOCKER_GROUP \
53+
ghcr.io/coder/coder-preview:pr16309
54+
```

docs/manifest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696
"path": "./install/uninstall.md",
9797
"icon_path": "./images/icons/trash.svg"
9898
},
99+
{
100+
"title": "Install and test coder-preview",
101+
"description": "Test the latest coder-preview build",
102+
"path": "./install/coder-preview-docker.md",
103+
"icon_path": "./images/icons/contributing.svg"
104+
},
99105
{
100106
"title": "Releases",
101107
"description": "Learn about the Coder release channels and schedule",

0 commit comments

Comments
 (0)