{"id":20900380,"url":"https://github.com/lkummer/packer-alpine","last_synced_at":"2026-03-09T17:17:20.840Z","repository":{"id":164932260,"uuid":"518610315","full_name":"LKummer/packer-alpine","owner":"LKummer","description":"Packer template for an Alpine Linux 'cloud image' on Proxmox VE.","archived":false,"fork":false,"pushed_at":"2024-09-04T09:37:59.000Z","size":198,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T01:51:02.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LKummer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-27T21:00:52.000Z","updated_at":"2025-06-23T06:13:07.000Z","dependencies_parsed_at":"2023-10-16T04:05:01.280Z","dependency_job_id":"d79d2696-0c3b-4c2c-896b-093cbb66ae85","html_url":"https://github.com/LKummer/packer-alpine","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/LKummer/packer-alpine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKummer%2Fpacker-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKummer%2Fpacker-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKummer%2Fpacker-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKummer%2Fpacker-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LKummer","download_url":"https://codeload.github.com/LKummer/packer-alpine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKummer%2Fpacker-alpine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30304166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T11:19:15.337Z","updated_at":"2026-03-09T17:17:20.786Z","avatar_url":"https://github.com/LKummer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer Alpine\n\nPacker configuration for building an Alpine Linux 'cloud image' Proxmox template.\n\nFeatures:\n\n- Includes Cloud Init for configuration when cloning.\n- Includes Python for configuration with Ansible.\n- Includes `sudo` and QEMU guest agent.\n- Tested with Terratest.\n\n## Usage\n\nThis template is meant for use [with terraform-proxmox machine module](https://github.com/LKummer/terraform-proxmox/tree/main/modules/machine).\n\n```hcl\nmodule \"example_vm\" {\n  source = \"github.com/LKummer/terraform-proxmox//modules/machine\"\n\n  proxmox_template = \"alpine-3.20.2-1\"\n  # ...\n}\n```\n\nSee [terraform-proxmox machine example for more details](https://github.com/LKummer/terraform-proxmox/tree/main/examples/machine).\n\n## Development\n\nRequired tools:\n\n- Packer `v1.8.7`.\n- Terraform `v1.4.6`.\n- Go `1.18.2`.\n\nTo create a Proxmox API token with correct privileges, [follow this guide](https://homelab.pages.houseofkummer.com/wiki/administrate/proxmox-api-tokens/).\n\nMake sure to install the required Packer plugins:\n\n```\npacker init alpine.pkr.hcl\n```\n\n### Build\n\nBuilding only requires Packer.\n\nCreate a variable file `secrets.pkr.hcl` for Proxmox credentials and other variables.\nSee `secrets.example.pkr.hcl` as an example.\n\nSet `PROXMOX_URL`, `PROXMOX_USERNAME` and `PROXMOX_TOKEN` environment variables.\n[See the Proxmox builder documentation](https://www.packer.io/plugins/builders/proxmox/iso) for more information.\n\nBuild with a template name suffix denoting the current commit, for example `2b1adb0`:\n\n```sh\npacker build --var-file secrets.pkr.hcl --var template_name_suffix=-2b1adb0 alpine.pkr.hcl\n```\n\n### Test\n\nTesting requires `PROXMOX_URL`, `PROXMOX_USERNAME`, `PROXMOX_TOKEN`, `PM_API_TOKEN_ID` and `PM_API_TOKEN_SECRET` environment variables set, as well as `secrets.pkr.hcl` (see `secrets.example.pkr.hcl`).\n\nFor testing and development it is recommended to use a `.env` file to manage credentials.\nFor example:\n\n```sh\nexport PROXMOX_URL='https://192.168.0.100:8006/api2/json'\nexport PROXMOX_USERNAME='user@pve!token'\nexport PROXMOX_TOKEN='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\nexport PM_API_TOKEN_ID=\"$PROXMOX_USERNAME\"\nexport PM_API_TOKEN_SECRET=\"$PROXMOX_TOKEN\"\n```\n\nNavigate to the `test` folder and run the tests:\n\n```sh\ncd test\ngo test ./...\n```\n\n### Format\n\nMake sure to format HCL files before pushing.\n\n```\npacker fmt .\npacker fmt test/example\n```\n\n### Test Linting and Formatting\n\nMake sure to format and lint test files before pushing.\n\n```\ncd test\ngofmt -w .\ngolangci-lint run\n```\n\n## Troubleshooting\n\nSet `PACKER_LOG=1` to enable logging for easier troubleshooting.\n\nAvoid running Packer on Windows.\nThis repository, Packer and Alpine all assume you are running on Linux.\n\n## Useful Resources\n\n- [Packer Proxmox ISO builder documentation](https://www.packer.io/docs/builders/proxmox/iso).\n- [Proxmox wiki on creating a custom cloud image](https://pve.proxmox.com/wiki/Cloud-Init_FAQ#Creating_a_custom_cloud_image).\n- [cloud-init documentation](https://cloudinit.readthedocs.io/en/latest/index.html).\n- [Alpine cloud-init package readme](https://git.alpinelinux.org/aports/tree/community/cloud-init/README.Alpine).\n- [Alpine Linux downloads](https://www.alpinelinux.org/downloads/).\n- [Setting up Proxmox role with permissions for Packer](https://github.com/hashicorp/packer/issues/8463#issuecomment-726844945).\n- [Official Alpine cloud image builder](https://gitlab.alpinelinux.org/alpine/cloud/alpine-cloud-images).\n- [VMware Photon Packer templates](https://github.com/vmware/photon-packer-templates).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkummer%2Fpacker-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkummer%2Fpacker-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkummer%2Fpacker-alpine/lists"}