Skip to content

Commit 4604db0

Browse files
authored
fix(dogfood): fix startup script on workspace creation (#11958)
1 parent d2b4d58 commit 4604db0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dogfood/main.tf

+5-1
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,12 @@ resource "coder_agent" "dev" {
266266
sudo service docker start
267267
# Install playwright dependencies
268268
# We want to use the playwright version from site/package.json
269+
# Check if the directory exists At workspace creation as the coder_script runs in parallel so clone might not exist yet.
270+
while ! [[ -f "${local.repo_dir}/site/package.json" ]]; do
271+
sleep 1
272+
done
269273
cd "${local.repo_dir}/site" && pnpm install && pnpm playwright:install
270-
EOT
274+
EOT
271275
}
272276

273277
resource "docker_volume" "home_volume" {

0 commit comments

Comments
 (0)