atlantis: Atlantis Doesn't Run on Google Cloud Run

I can’t seem to get Atlantis to run on Google’s Cloud Run. I think this could be a limitation of the runtime sandbox but I’m not sure. The Atlantis documents do say that there is no permanent storage so I’m concerned I might be missing something simple. The command I’m passing (just for testing right now) is:

          "server",
          "--bitbucket-user=FOO",
          "--bitbucket-token=BAR",
          "--repo-whitelist=bitbucket.org/organization/*"

Unfortunately, I receive the following error:

"Application failed to start: Failed to create init process: Failed to load server --bitbucket-user=FOO --bitbucket-token=BAR --repo-whitelist=bitbucket.org/organization/*: no such file or directory"

I thought the usage of dumb-init from the base image would have alleviated this?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (2 by maintainers)

Most upvoted comments

I’ve just tested it, and Cloud Run still uses the old version of GCS Fuse…

Those docs are a bit misleading. You need to store your Terraform state somewhere because after the PR is merged Atlantis deletes the data for that PR. However in between the PR opening and you running atlantis apply, Atlantis needs to store the plan and other data. Thus you can’t run on Cloud Run unless there’s a way to mount in a persistent disk.

There is an open issue which seems to be actively developed by Google: https://github.com/GoogleCloudPlatform/gcsfuse/issues/1016 Once that’s fixed I’m hopeful Atlantis on Cloud Run would be as simple as building a docker image, pushing to Artifact Registry and deploying Cloud Run.

I set up a quick repository to collect examples to help people start using Atlantis on Cloud Run: https://github.com/simpleclub-extended/atlantis-cloud-run

As this is quite a different way to run Atlantis, and there might be unique challenges, I hope that we can collect some knowledge and experience on what works best running Atlantis on Cloud Run.

Feel free to play around with different configurations, improve existing or add other examples and share your experiences on what works best.

I’m currently quite busy, but I wanted to give it some time so that Cloud Run hopefully uses Gcsfuse 2.3.0. It’s not really visible which version they are using.

I might get to it in the next week(s).

Is this the case even now that you can mount one of these filesystems? https://cloud.google.com/run/docs/using-network-file-systems

I’m going to close this since in order for it to work we’d need #894 and other work done so this ticket is a duplicate. If you’re interested in this, subscribe to those tickets.