File size: 1,176 Bytes
07423df
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
    "variables": {
      "project_id":"h2o-gce",
      "account_file":"<NAME OF GCP CREDENTIALS JSON FILE>",
      "llm_studio_version": "<LLM STUDIO VERSION>"
   },
    "builders": [
      {
        "type": "googlecompute",
        "project_id": "{{user `project_id`}}",
        "account_file": "{{user `account_file`}}",
        "machine_type": "e2-standard-4",
        "source_image_family": "ubuntu-2004-lts",
        "zone": "us-west1-b",
        "image_description": "h2o-llm-studio using packer",
        "image_name": "h2oai-llm-studio-{{user `llm_studio_version`}}",
        "disk_size": 512,
        "disk_type": "pd-ssd",
        "ssh_username": "ubuntu"
      }
    ],
    "post-processors": [
      {
        "type": "manifest",
        "output": "gcp-image-info.json",
        "strip_path": true,
        "custom_data": {
          "base_image": "GCP Ubuntu 20.04",
          "llm_studio_version": "{{user `llm_studio_version`}}"
        }
      }
    ],
    "provisioners": [
    
        {
         "type": "shell",
         "environment_vars": ["VERSION={{user `BRANCH_VERSION`}}"],
         "script": "./install_llm_studio_ubuntu2004.sh"
       }
    ]
  }