Skip to content

nip-was-here/cloud-packer-golden-image

Repository files navigation

Cloud Golden Image for VMs by Packer

Repo with VM images for popular clouds created by packer

Usage

GCP (Google)

Create image (in example - Debian Trixie):

cd ./debian/trixie/
packer init .
packer build -var "ssh_pubkey=$(cat "${SSH_PUBKEY_PATH}")" -only=debian13-gcp.qemu.base packer.pkr.hcl

Load image with import:

IMAGE_DATE="$(date "+%Y-%m-%d")"
gsutil cp debian/trixie/dist/debian13-gcp.qcow2 gs://${GCP_BLOB_STORAGE}/debian/13/${IMAGE_DATE}.qcow2
gcloud migration vms image-imports create deb-13-golden-${IMAGE_DATE} --image-name=deb-13-golden-${IMAGE_DATE} --location=${GCP_REGION} --source-file=gs://${GCP_BLOB_STORAGE}/debian/13/${IMAGE_DATE}.qcow2 --skip-os-adaptation

Dir structure

Additional tools

ADR

It's helpful for maintain decisions about this repo

Table of ADR's content

Pre-commit

It's helpful for being stuff here structured and up-to-date

Semantic release

It's helpful for being stuff here versioned and up-to-date

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published