mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-26 06:37:21 +10:00
parent
df249afa5a
commit
9ca59681b9
2 changed files with 28 additions and 1 deletions
27
packer/packer.json
Normal file
27
packer/packer.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"builders": [
|
||||
{
|
||||
"type": "googlecompute",
|
||||
"account_file": "/stemn/credentials/development-environment.json",
|
||||
"source_image_family": "ubuntu-minimal-1810",
|
||||
"project_id": "stemnapp",
|
||||
"zone": "australia-southeast1-a",
|
||||
"instance_name": "packer-development-environment-{{timestamp}}",
|
||||
"image_name": "development-environment",
|
||||
"ssh_username": "root"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "file",
|
||||
"source": "../docker/scripts/bootstrap.sh",
|
||||
"destination": "/bootstrap.sh"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"/bootstrap.sh"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ resource "google_compute_instance" "desktop-environment" {
|
|||
|
||||
boot_disk {
|
||||
initialize_params {
|
||||
image = "ubuntu-minimal-1810"
|
||||
image = "stemnapp/desktop-environment"
|
||||
type = "pd-ssd"
|
||||
size = "80"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue