Skip to content

Commit b11ec17

Browse files
committed
Add sysbox
1 parent fe47dcd commit b11ec17

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

dogfood/README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
# dogfood template
22

3+
Ammar is this template's admin.
4+
5+
This template runs the `gcr.io/coder-dogfood/master/coder-dev-ubuntu` Docker
6+
image in a `sysbox-runc` container.
7+
8+
## Personalization
9+
10+
The startup script runs your `~/personalize` file if it exists.
11+
312
## How is this hosted?
413

514
Coder dogfoods on a beefy, single Teraswitch machine. We decided to use
615
a bare metal provider for best-in-class cost-to-performance. We decided to
7-
use a single machine for crazy fast parallelized builds.
16+
use a single machine for crazy fast parallelized builds and tests.
817

918
# How is the provisioner configured?
1019

1120
Our dogfood VM runs an SSH tunnel to our dogfood Docker host's docker socket.
1221
The socket is mounted on `/var/run/dogfood-docker.sock`.
1322

1423
The SSH command can be found hanging out in the screen session named
15-
`docker-dogfood-tunnel`.
24+
`forward`.
1625

1726
The tunnel and corresponding SSH key is under the root user.

dogfood/main.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
}
77
docker = {
88
source = "kreuzwerker/docker"
9-
version = "~> 2.16.0"
9+
version = "~> 2.18.0"
1010
}
1111
}
1212
}
@@ -31,6 +31,8 @@ resource "coder_agent" "dev" {
3131
# install and start code-server
3232
curl -fsSL https://code-server.dev/install.sh | sh
3333
code-server --auth none --port 13337
34+
sudo service docker start
35+
if [ -f ~/personalize ]; then ~/personalize 2>&1 | tee ~/.personalize.log; fi
3436
EOF
3537
}
3638

0 commit comments

Comments
 (0)