mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
This reverts commit 61dcf643e8.
This commit is contained in:
@@ -8,7 +8,7 @@ List template examples in our CLI with `coder templates init`.
|
||||
|
||||
Clone this repository to create a project from any example listed here:
|
||||
|
||||
```shell
|
||||
```console
|
||||
git clone https://github.com/coder/coder
|
||||
cd examples/templates/aws-macos
|
||||
coder templates create
|
||||
|
||||
@@ -20,7 +20,7 @@ on-screen instructions to proceed.
|
||||
|
||||
Create a Dockerfile (e.g `images/golang.Dockerfile`):
|
||||
|
||||
```shell
|
||||
```console
|
||||
vim images/golang.Dockerfile
|
||||
```
|
||||
|
||||
@@ -48,7 +48,7 @@ USER coder
|
||||
|
||||
Edit the Terraform template (`main.tf`):
|
||||
|
||||
```shell
|
||||
```console
|
||||
vim main.tf
|
||||
```
|
||||
|
||||
@@ -88,7 +88,7 @@ resource "docker_image" "coder_image" {
|
||||
|
||||
Update the template:
|
||||
|
||||
```shell
|
||||
```console
|
||||
coder template push docker-image-builds
|
||||
```
|
||||
|
||||
@@ -99,7 +99,7 @@ the removed image until you update the workspace to the latest version.
|
||||
|
||||
Edit the Dockerfile (or related assets):
|
||||
|
||||
```shell
|
||||
```console
|
||||
vim images/node.Dockerfile
|
||||
```
|
||||
|
||||
@@ -113,7 +113,7 @@ RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
|
||||
|
||||
1. Edit the Terraform template (`main.tf`)
|
||||
|
||||
```shell
|
||||
```console
|
||||
vim main.tf
|
||||
```
|
||||
|
||||
@@ -136,13 +136,13 @@ resource "docker_image" "coder_image" {
|
||||
|
||||
Update the template:
|
||||
|
||||
```shell
|
||||
```console
|
||||
coder template push docker-image-builds
|
||||
```
|
||||
|
||||
Optional: Update workspaces to the latest template version
|
||||
|
||||
```shell
|
||||
```console
|
||||
coder ls
|
||||
coder update [workspace name]
|
||||
```
|
||||
|
||||
@@ -10,7 +10,7 @@ This is an example configuration of how to use Coder with [caddy](https://caddys
|
||||
|
||||
1. Start with our example configuration
|
||||
|
||||
```shell
|
||||
```console
|
||||
# Create a project folder
|
||||
cd $HOME
|
||||
mkdir coder-with-caddy
|
||||
@@ -30,7 +30,7 @@ This is an example configuration of how to use Coder with [caddy](https://caddys
|
||||
|
||||
1. Start Coder. Set `CODER_ACCESS_URL` and `CODER_WILDCARD_ACCESS_URL` to the domain you're using in your Caddyfile.
|
||||
|
||||
```shell
|
||||
```console
|
||||
export CODER_ACCESS_URL=https://coder.example.com
|
||||
export CODER_WILDCARD_ACCESS_URL=*.coder.example.com
|
||||
docker compose up -d # Run on startup
|
||||
@@ -60,19 +60,19 @@ This is an example configuration of how to use Coder with [caddy](https://caddys
|
||||
|
||||
If you're [keeping Caddy running](https://caddyserver.com/docs/running) via a system service:
|
||||
|
||||
```shell
|
||||
```console
|
||||
sudo systemctl restart caddy
|
||||
```
|
||||
|
||||
Or run a standalone server:
|
||||
|
||||
```shell
|
||||
```console
|
||||
caddy run
|
||||
```
|
||||
|
||||
1. Optionally, use [ufw](https://wiki.ubuntu.com/UncomplicatedFirewall) or another firewall to disable external traffic outside of Caddy.
|
||||
|
||||
```shell
|
||||
```console
|
||||
# Check status of UncomplicatedFirewall
|
||||
sudo ufw status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user