Skip to content

Commit dcc8030

Browse files
committed
remove docker-code-server
1 parent 47a53ce commit dcc8030

File tree

5 files changed

+4
-105
lines changed

5 files changed

+4
-105
lines changed

examples/lima/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ This lets you quickly test out Coder in a self-contained environment.
1717
- You can use the configuration as-is, or edit it to your liking.
1818

1919
This will:
20+
2021
- Start an Ubuntu 22.04 VM
2122
- Install Docker and Terraform from the official repos
2223
- Install Coder using the [installation script](https://coder.com/docs/coder-oss/latest/install#installsh)
2324
- Generates an initial user account `admin@coder.com` with a randomly generated password (stored in the VM under `/home/${USER}.linux/.config/coderv2/password`)
24-
- Initializes a [sample Docker template](https://github.com/coder/coder/tree/main/examples/templates/docker-code-server) for creating workspaces
25+
- Initializes a [sample Docker template](https://github.com/coder/coder/tree/main/examples/templates/docker) for creating workspaces
2526

2627
Once this completes, you can visit `http://localhost:3000` and start creating workspaces!
2728

examples/lima/coder.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,8 @@ provision:
9898
[ ! -e ~/.config/coderv2/session ] && coder login http://localhost:3000 --username admin --email admin@coder.com --password $(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c8 | tee ${HOME}/.config/coderv2/password)
9999
# Create an initial template
100100
temp_template_dir=$(mktemp -d)
101-
echo code-server | coder templates init "${temp_template_dir}"
102-
DOCKER_ARCH="amd64"
103-
if [ "$(arch)" = "aarch64" ]; then
104-
DOCKER_ARCH="arm64"
105-
fi
106-
DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}')
107-
printf 'docker_arch: "%s"\ndocker_host: "%s"\n' "${DOCKER_ARCH}" "${DOCKER_HOST}" | tee "${temp_template_dir}/params.yaml"
108-
coder templates create "docker-code-server-${DOCKER_ARCH}" --directory "${temp_template_dir}" --parameter-file "${temp_template_dir}/params.yaml" --yes
101+
echo docker | coder templates init "${temp_template_dir}"
102+
coder templates create "docker" --yes --directory "${temp_template_dir}"
109103
rm -rfv "${temp_template_dir}"
110104
probes:
111105
- description: "docker to be installed"

examples/templates/docker-code-server/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/templates/docker-code-server/main.tf

Lines changed: 0 additions & 69 deletions
This file was deleted.

examples/templates/docker-code-server/params.sample.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)