{"id":26792939,"url":"https://github.com/osbuild/packer-plugin-image-builder","last_synced_at":"2026-02-20T00:01:27.174Z","repository":{"id":275576969,"uuid":"925364558","full_name":"osbuild/packer-plugin-image-builder","owner":"osbuild","description":"Packer plugin for image builder cli","archived":false,"fork":false,"pushed_at":"2025-02-20T15:01:21.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-01-15T16:16:21.253Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osbuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-01-31T18:31:19.000Z","updated_at":"2025-06-26T04:22:38.000Z","dependencies_parsed_at":"2025-07-19T02:45:00.099Z","dependency_job_id":null,"html_url":"https://github.com/osbuild/packer-plugin-image-builder","commit_stats":null,"previous_names":["osbuild/packer-plugin-image-builder"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/osbuild/packer-plugin-image-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osbuild%2Fpacker-plugin-image-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osbuild%2Fpacker-plugin-image-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osbuild%2Fpacker-plugin-image-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osbuild%2Fpacker-plugin-image-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osbuild","download_url":"https://codeload.github.com/osbuild/packer-plugin-image-builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osbuild%2Fpacker-plugin-image-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29637400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2025-03-29T16:18:13.941Z","updated_at":"2026-02-20T00:01:27.126Z","avatar_url":"https://github.com/osbuild.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Builder Packer plugin\n\nHashiCorp [Packer](https://www.packer.io/) plugin for [image-builder-cli](https://github.com/osbuild/image-builder-cli) and [bootc-image-builder](https://github.com/osbuild/bootc-image-builder). Builds are happening on a remote linux machine over SSH.\n\n## Preparing the environment\n\nAll building is done remotely over SSH connection, you need to create an instance or VM with a user dedicated to image building and sudo permission to start podman (or docker) without password or root account.\n\n    adduser -m builder\n\nEither setup a password\n\n    passwd builder\n\nor preferably deploy a public SSH key (execute from machine with packer)\n\n    ssh-copy-id builder@host\n\nMake sure the container runtime can be executed without password.\n\n```\ncat \u003c\u003cEOF \u003e/etc/sudoers.d/builder\nbuilder ALL=(ALL) NOPASSWD: /usr/bin/podman, /usr/bin/docker\nEOF\n```\n\nFinally, install podman or docker and make sure scp is present as well:\n\n    dnf -y install podman openssh-clients\n\nCross-architecture building is currently not supported so make sure the builder host architecture is correct.\n\n## Install packer\n\nInstall packer *on your machine* not on the builder instance/VM, for example on Fedora:\n\n```\nsudo dnf install -y dnf-plugins-core\nsudo dnf config-manager addrepo --from-repofile=https://rpm.releases.hashicorp.com/fedora/hashicorp.repo\nsudo dnf -y install packer\n```\n\nOn MacOS:\n\n```\nbrew tap hashicorp/tap\nbrew install hashicorp/tap/packer\n```\n\n## Usage\n\nSee [the builder documentation](.web-docs/) for more information on how to define and build an image. The same documentation is also available at the [Packer Integrations](https://developer.hashicorp.com/packer/integrations) page.\n\n## Building without Packer\n\nTo test this library directly without packer, do:\n\n    go run github.com/osbuild/packer-plugin-image-builder/cmd/ibpacker/ -help\n\nUse options to initiate a build:\n\n```\nUsage of ibpacker:\n  -arch string\n        architecture (default \"x86_64\")\n  -blueprint string\n        path to blueprint file\n  -distro string\n        distribution name (fedora, centos, rhel, ...) (default \"fedora\")\n  -dry-run\n        dry run\n  -hostname string\n        SSH hostname or IP with optional port (e.g. example.com:22)\n  -type string\n        image type (minimal-raw, qcow2, ...) (default \"minimal-raw\")\n  -username string\n        SSH username\n```\n\nFor example:\n\n```\ngit clone https://github.com/osbuild/packer-plugin-image-builder\ngo run ./cmd/ibpacker/ \\\n    -hostname example.com \\\n    -username builder \\\n    cli\n    -distro centos-9 \\\n    -type minimal-raw \\\n    -blueprint ./cmd/ibpacker/blueprint_example.toml\n```\n\n## Testing\n\nTo run unit and integration test against mock SSH server running on localhost:\n\n    make test\n\nDo not invoke tests directly via `go test` command because some tests require packer plugin binary to be present in the `./build` directory. To prevent these tests to be skipped, do this prior running tests directly:\n\n    make build\n\nKeys in `internal/sshtest/keys.go` are just dummy (test only) keys, you may receive false positives from security scanners about leaked keys when cloning the repo.\n\n## Release process\n\nThe release process is fully automated, just push a new tag to the main branch and observe GitHub Actions to make a new release. To update plugin in an existing Terraform/Packer project:\n\n    packer init --upgrade .\n\n## LICENSE\n\nApache Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosbuild%2Fpacker-plugin-image-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosbuild%2Fpacker-plugin-image-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosbuild%2Fpacker-plugin-image-builder/lists"}