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?
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.
Related: https://github.com/runatlantis/atlantis/issues/894 (external backend for locking)
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.