From 040ce40ed83d81efdc9f29d0f609e171cea1ccb0 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 7 Feb 2024 19:16:18 +0200 Subject: [PATCH] fix(dogfood): add ability to synchronize with startup script via done file (#12058) --- dogfood/main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dogfood/main.tf b/dogfood/main.tf index d0592585e6..50d5655f59 100644 --- a/dogfood/main.tf +++ b/dogfood/main.tf @@ -262,6 +262,10 @@ resource "coder_agent" "dev" { startup_script_timeout = 60 startup_script = <<-EOT set -eux -o pipefail + + # Allow synchronization between scripts. + trap 'touch /tmp/.coder-startup-script.done' EXIT + # Start Docker service sudo service docker start # Install playwright dependencies