Skip to content

Add new Dogfood template #2959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add sysbox
  • Loading branch information
ammario committed Jul 13, 2022
commit b11ec1752245d1a293999a8caec2b018d7c21ded
13 changes: 11 additions & 2 deletions dogfood/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# dogfood template

Ammar is this template's admin.

This template runs the `gcr.io/coder-dogfood/master/coder-dev-ubuntu` Docker
image in a `sysbox-runc` container.

## Personalization

The startup script runs your `~/personalize` file if it exists.

## How is this hosted?

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

# How is the provisioner configured?

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

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

The tunnel and corresponding SSH key is under the root user.
4 changes: 3 additions & 1 deletion dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ terraform {
}
docker = {
source = "kreuzwerker/docker"
version = "~> 2.16.0"
version = "~> 2.18.0"
}
}
}
Expand All @@ -31,6 +31,8 @@ resource "coder_agent" "dev" {
# install and start code-server
curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337
sudo service docker start
if [ -f ~/personalize ]; then ~/personalize 2>&1 | tee ~/.personalize.log; fi
EOF
}

Expand Down