fix(dogfood): fix startup script on workspace creation (#11958)

This commit is contained in:
Muhammad Atif Ali
2024-01-31 18:01:22 +03:00
committed by GitHub
parent d2b4d58e96
commit 4604db072a
+5 -1
View File
@@ -266,8 +266,12 @@ resource "coder_agent" "dev" {
sudo service docker start
# Install playwright dependencies
# We want to use the playwright version from site/package.json
# Check if the directory exists At workspace creation as the coder_script runs in parallel so clone might not exist yet.
while ! [[ -f "${local.repo_dir}/site/package.json" ]]; do
sleep 1
done
cd "${local.repo_dir}/site" && pnpm install && pnpm playwright:install
EOT
EOT
}
resource "docker_volume" "home_volume" {