【问题标题】:"Push-to-deploy" GCP Feature“一键部署” GCP 功能
【发布时间】:2015-02-05 15:09:22
【问题描述】:

我正在尝试在我的 Google AppEngine 项目中使用 Google Cloud Platform“Push-to-deploy”功能来实现持续交付。

这是我第一次尝试使用它,我无法创建我的虚拟机。

错误:(gcloud.compute.instances.create)无法获取图像资源: - 找不到资源“projects/bitnami-launchpad/global/images/bitnami-jenkins-1-587-0-linux-debian-7-x86-64-image”

我是否遗漏了配置中的某些内容?也许只是这个版本的詹金斯图像不可用?如何列出项目 bitnami-launchpad 可用的图像?

感谢您的帮助...

【问题讨论】:

    标签: google-app-engine google-compute-engine bitnami


    【解决方案1】:

    我得到了答案。 要获取可用的bitnami图像列表,我们必须将gcloud当前项目设置为bitnami-launchpad,然后我们才能列出图像。

    gcloud config set project bitnami-launchpad gcloud compute images list

    在列表中,我的 Jenkins 版本不错!

    bitnami-jenkins-1-598-0-r01-linux-debian-7-x86-64

    然后:

    gcloud compute \ instances create bitnami-jenkins \ --project ${PROJECT_ID} \ --image-project bitnami-launchpad \ --image bitnami-jenkins-1-598-0-r01-linux-debian-7-x86-64 \ --zone us-central1-a \ --machine-type n1-standard-1 \ --metadata "bitnami-base-password=${PASSWORD}" \ "bitnami-default-user=user" \ "bitnami-key=jenkins" \ "bitnami-name=Jenkins" \ "bitnami-version=1-598-0-r01" \ "bitnami-url=//bitnami.com/stack/jenkins" \ "bitnami-description=Jenkins." \ "startup-script-url=https://dl.google.com/dl/jenkins/p2dsetup/setup-script.sh" \ --scopes "https://www.googleapis.com/auth/userinfo.email" \ "https://www.googleapis.com/auth/devstorage.full_control" \ "https://www.googleapis.com/auth/projecthosting" \ "https://www.googleapis.com/auth/appengine.admin" \ --tags "bitnami-launchpad"

    创建一个 Jenkins 实例。

    【讨论】:

    • 或者在一个命令中:gcloud compute images list --project=bitnami-launchpad — 参见docs
    猜你喜欢
    • 2021-10-05
    • 2022-09-01
    • 1970-01-01
    • 2020-11-09
    • 2020-05-31
    • 2021-03-29
    • 2021-09-22
    • 1970-01-01
    • 2019-01-04
    相关资源
    最近更新 更多