aboutsummaryrefslogtreecommitdiff
path: root/packer/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'packer/README.md')
-rw-r--r--packer/README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/packer/README.md b/packer/README.md
index 12009de..e34056d 100644
--- a/packer/README.md
+++ b/packer/README.md
@@ -1,3 +1,16 @@
# Packer Templates
This folder contains Packer templates for creating custom VM images.
+
+# Usage
+
+1. Make sure you have a file called `credentials.pkr.hcl` at the root of packer.
+2. Go into a subdirectory corresponding to an image.
+3. Validate the packer template.
+4. Build the image.
+
+```sh
+cd <image subfolder>
+packer validate -var-file=../credentials.pkr.hcl ./debian-server-bookworm.pkr.hcl
+packer build -var-file=../credentials.pkr.hcl ./debian-server-bookworm.pkr.hcl
+```