📜  ubuntu gcp 打包器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:32.745000             🧑  作者: Mango

代码示例1
{
  "builders": [
    {
      "type": "googlecompute",
      "project_id": "",
      "source_image_project_id": "ubuntu-os-pro-cloud",
      "source_image_family": "ubuntu-pro-1804-lts",
      "zone": "us-central1-a",
      "image_description": "created-with-packer",
      "ssh_username": "root",
      "tags": "packer",
      "account_file": ""
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sudo ua status --wait",
        "sudo ua detach --assume-yes"
      ]
    }
  ]
}