From 08ff7fffbc06d7ca9a6b030dc446f916ad2957ed Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 7 Feb 2024 19:11:20 +0200 Subject: [PATCH] fix(dogfood): add ability to synchronize with startup script via done file --- dogfood/main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dogfood/main.tf b/dogfood/main.tf index d0592585e6973..50d5655f5903d 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