Skip to content

Commit

Permalink
Merge #58420
Browse files Browse the repository at this point in the history
58420: build: add packer config for builds triggered by public pull requests r=rickystewart a=rickystewart

This new config file is copied nearly verbatim from the existing one at
`build/packer/teamcity-agent.json`, except the GCP project is changed.

Release note: None

Co-authored-by: Ricky Stewart <[email protected]>
  • Loading branch information
craig[bot] and rickystewart committed Jan 4, 2021
2 parents 1950fd6 + 93489de commit 3ebe64c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions build/packer/teamcity-agent-public-prs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"variables": {
"image_id": "teamcity-agent-{{timestamp}}"
},

"builders": [{
"type": "googlecompute",
"project_id": "cockroach-teamcity-public-prs",
"source_image_family": "ubuntu-1804-lts",
"zone": "us-east1-b",
"machine_type": "n1-standard-32",
"image_name": "{{user `image_id`}}",
"image_description": "{{user `image_id`}}",
"ssh_username": "packer",
"disk_size": 256,
"disk_type": "pd-ssd",
"state_timeout": "15m"
}],

"provisioners": [{
"type": "shell",
"script": "teamcity-agent.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},{
"type": "file",
"source": "filebeat/filebeat-agent.yml",
"destination": "/tmp/filebeat.yml"
},
{
"type": "shell",
"script": "setup_filebeat_on_teamcity_agent.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
}]
}

0 comments on commit 3ebe64c

Please sign in to comment.