Disable the Cloud Launcher. Too expensive for how underused (3 people?) it is.

This commit is contained in:
Brad Fitzpatrick 2019-07-29 11:15:21 -07:00
parent 6db9cb8a08
commit c9f78d02ad
2 changed files with 4 additions and 0 deletions

2
go.mod
View File

@ -1,5 +1,7 @@
module perkeep.org
go 1.12
require (
bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898
cloud.google.com/go v0.39.0

View File

@ -546,6 +546,7 @@ func gceDeployHandlerConfig() (*gce.Config, error) {
// - neither CAMLI_GCE_CLIENTID is set, nor launcher-config.json is found in the
// camlistore server config dir.
func gceDeployHandler(prefix string) (*gce.DeployHandler, error) {
return nil, errors.New("The Perkeep Cloud Launcher is no longer available.")
var hostPort string
var err error
scheme := "https"
@ -909,6 +910,7 @@ func main() {
gceLauncher, err := gceDeployHandler("/launch/")
if err != nil {
log.Printf("Not installing GCE /launch/ handler: %v", err)
err := err
mux.HandleFunc("/launch/", func(w http.ResponseWriter, r *http.Request) {
http.Error(w, fmt.Sprintf("GCE launcher disabled: %v", err), 500)
})