{"id":21698640,"url":"https://github.com/theohbrothers/docker-packer","last_synced_at":"2025-05-12T20:57:37.521Z","repository":{"id":46028614,"uuid":"422422176","full_name":"theohbrothers/docker-packer","owner":"theohbrothers","description":"Dockerized packer with useful tools 🐳","archived":false,"fork":false,"pushed_at":"2024-10-05T08:47:00.000Z","size":121,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T03:35:23.701Z","etag":null,"topics":["buildx","docker","generate-dockerimagevariants","guestfs-tools","iso","kvm","packer","qemu","virtualbox"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/theohbrothers.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}},"created_at":"2021-10-29T02:49:07.000Z","updated_at":"2024-10-05T07:04:37.000Z","dependencies_parsed_at":"2024-03-02T18:42:43.213Z","dependency_job_id":"9541d861-7c12-4b6a-9131-04022e70aed3","html_url":"https://github.com/theohbrothers/docker-packer","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2Fdocker-packer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2Fdocker-packer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2Fdocker-packer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theohbrothers%2Fdocker-packer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theohbrothers","download_url":"https://codeload.github.com/theohbrothers/docker-packer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823352,"owners_count":21969844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["buildx","docker","generate-dockerimagevariants","guestfs-tools","iso","kvm","packer","qemu","virtualbox"],"created_at":"2024-11-25T19:35:43.848Z","updated_at":"2025-05-12T20:57:37.505Z","avatar_url":"https://github.com/theohbrothers.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-packer\n\n[![github-actions](https://github.com/theohbrothers/docker-packer/actions/workflows/ci-master-pr.yml/badge.svg?branch=master)](https://github.com/theohbrothers/docker-packer/actions/workflows/ci-master-pr.yml)\n[![github-release](https://img.shields.io/github/v/release/theohbrothers/docker-packer?style=flat-square)](https://github.com/theohbrothers/docker-packer/releases/)\n[![docker-image-size](https://img.shields.io/docker/image-size/theohbrothers/docker-packer/latest)](https://hub.docker.com/r/theohbrothers/docker-packer)\n\nDockerized [`packer`](https://github.com/hashicorp/packer) with useful tools.\n\n## Tags\n\n| Tag | Dockerfile Build Context |\n|:-------:|:---------:|\n| `:1.11.2-sops-ubuntu-22.04`, `:latest` | [View](variants/1.11.2-sops-ubuntu-22.04) |\n| `:1.11.2-sops-qemu-ubuntu-22.04` | [View](variants/1.11.2-sops-qemu-ubuntu-22.04) |\n| `:1.11.2-sops-virtualbox-7.0.20-ubuntu-22.04` | [View](variants/1.11.2-sops-virtualbox-7.0.20-ubuntu-22.04) |\n| `:1.11.2-sops-virtualbox-7.1.2-ubuntu-22.04` | [View](variants/1.11.2-sops-virtualbox-7.1.2-ubuntu-22.04) |\n| `:1.7.7-sops-ubuntu-20.04` | [View](variants/1.7.7-sops-ubuntu-20.04) |\n| `:1.7.7-sops-qemu-ubuntu-20.04` | [View](variants/1.7.7-sops-qemu-ubuntu-20.04) |\n| `:1.7.7-sops-virtualbox-7.0.20-ubuntu-20.04` | [View](variants/1.7.7-sops-virtualbox-7.0.20-ubuntu-20.04) |\n| `:1.7.7-sops-virtualbox-7.0.8-ubuntu-20.04` | [View](variants/1.7.7-sops-virtualbox-7.0.8-ubuntu-20.04) |\n| `:1.7.7-sops-virtualbox-6.1.44-ubuntu-20.04` | [View](variants/1.7.7-sops-virtualbox-6.1.44-ubuntu-20.04) |\n| `:1.7.7-sops-virtualbox-6.1.40-ubuntu-20.04` | [View](variants/1.7.7-sops-virtualbox-6.1.40-ubuntu-20.04) |\n| `:1.7.7-sops-virtualbox-6.1.26-ubuntu-20.04` | [View](variants/1.7.7-sops-virtualbox-6.1.26-ubuntu-20.04) |\n| `:1.7.7-sops-qemu-ubuntu-18.04` | [View](variants/1.7.7-sops-qemu-ubuntu-18.04) |\n| `:1.7.7-sops-virtualbox-6.0.24-ubuntu-18.04` | [View](variants/1.7.7-sops-virtualbox-6.0.24-ubuntu-18.04) |\n| `:1.7.7-sops-virtualbox-5.2.44-ubuntu-16.04` | [View](variants/1.7.7-sops-virtualbox-5.2.44-ubuntu-16.04) |\n\n## Usage\n\nPacker [configuration](https://developer.hashicorp.com/packer/docs/configure#configuring-packer) can be done via `.packerconfig` config file or environment variables (e.g. `PACKER_LOG=1` for verbose logging). Environment variables are preferred when using docker.\n\n### QEMU builder\n\n```sh\n# Note: The GID of the group 'kvm' in the container must match the host's. If not, use --privileged instead of --device. See: https://stackoverflow.com/questions/48422001/how-to-launch-qemu-kvm-from-inside-a-docker-container\ndocker run --rm -it \\\n    --device /dev/kvm \\\n    -v $(pwd):/src \\\n    -w /src \\\n    theohbrothers/docker-packer:1.11.2-sops-qemu-ubuntu-22.04 packer build template.json\n```\n\nSee examples:\n\n- [Ubuntu 20.04 VM `.qcow2` image](docs/examples/ubuntu2004-qemu)\n\n### Virtualbox builder\n\nThe host may need to have an exact matching virtualbox version, or at least the same virtualbox minor version, if not virtualbox may not be able to start VMs. To verify virtualbox can start VMs, run the following, ensuring there is no error message:\n\n```sh\ndocker run --rm -it \\\n    --device /dev/vboxdrv \\\n    theohbrothers/docker-packer:1.11.2-sops-virtualbox-7.0.20-ubuntu-22.04 vboxmanage --version\n```\n\nIf all is well, to build a VM image:\n\n```sh\ndocker run --rm -it \\\n    --device /dev/vboxdrv \\\n    -v $(pwd):/src \\\n    -w /src \\\n    theohbrothers/docker-packer:1.11.2-sops-virtualbox-7.0.20-ubuntu-22.04 packer build template.json\n```\n\nSee examples:\n\n- [Ubuntu 20.04 VM `.ova`](docs/examples/ubuntu2004-virtualbox)\n\n### Other builder(s)\n\n```sh\ndocker run --rm -it \\\n    -v $(pwd):/src \\\n    -w /src \\\n    theohbrothers/docker-packer:1.11.2-sops-ubuntu-22.04 packer build template.json\n```\n\n## Development\n\nRequires Windows `powershell` or [`pwsh`](https://github.com/PowerShell/PowerShell).\n\n```powershell\n# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants\nInstall-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose\n\n# Edit ./generate templates\n\n# Generate the variants\nGenerate-DockerImageVariants .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheohbrothers%2Fdocker-packer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheohbrothers%2Fdocker-packer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheohbrothers%2Fdocker-packer/lists"}