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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

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" {