Skip to content

Cloud Run deploy failing due to missing 'terraform' dependency #287

@bryphe-coder

Description

@bryphe-coder

@jawnsy noticed that our deploy jobs are failing with:

Run gcloud run services update coder --image us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest --project coder-blacktriangle-dev --tag "git-$(git rev-parse --short HEAD)" --region us-central1
Deploying...
Creating Revision.................interrupted
Deployment failed
ERROR: (gcloud.run.services.update) Revision 'coder-00027-get' is not ready and cannot serve traffic.
Error: Process completed with exit code 1.

https://github.com/coder/coder/runs/5189079984?check_suite_focus=true#step:11:19

Looking at 'Cloud Run' logs, we found a panic on startup:

panic: terraform binary not found: exec: "terraform": executable file not found in $PATH goroutine 32 [running]: github.com/coder/coder/coderd/cmd.newProvisionerDaemon.func1() /home/runner/work/coder/coder/coderd/cmd/root.go:91 +0x107 created by github.com/coder/coder/coderd/cmd.newProvisionerDaemon /home/runner/work/coder/coder/coderd/cmd/root.go:83 +0x105

Seems like we need to add terraform to our docker image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP APIsiteArea: frontend dashboard

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy