{"id":15698807,"url":"https://github.com/ggiamarchi/rpi-debian-builder","last_synced_at":"2025-05-09T02:13:54.067Z","repository":{"id":145136634,"uuid":"49538356","full_name":"ggiamarchi/rpi-debian-builder","owner":"ggiamarchi","description":"Build your own Debian image for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2019-09-24T12:32:44.000Z","size":25,"stargazers_count":10,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-09T02:13:48.488Z","etag":null,"topics":["debian","distribution","linux","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggiamarchi.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":"2016-01-13T00:33:28.000Z","updated_at":"2025-01-05T15:11:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a51a814-e36e-422f-a08d-80ecc6a57bd2","html_url":"https://github.com/ggiamarchi/rpi-debian-builder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Frpi-debian-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Frpi-debian-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Frpi-debian-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Frpi-debian-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggiamarchi","download_url":"https://codeload.github.com/ggiamarchi/rpi-debian-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176445,"owners_count":21866143,"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":["debian","distribution","linux","raspberry-pi","raspberrypi"],"created_at":"2024-10-03T19:34:12.772Z","updated_at":"2025-05-09T02:13:54.041Z","avatar_url":"https://github.com/ggiamarchi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RPi Debian Builder\n\n[![Build Status](https://travis-ci.org/ggiamarchi/rpi-debian-builder.svg?branch=master)](https://travis-ci.org/ggiamarchi/rpi-debian-builder)\n\nBuild your custom Debian image for RaspberryPi easily.\n\n## Requirements\n\nThis tool runs under linux and needs some system requirements. Because it needs to be run\nas root (for the chroot purspose) it is highly recommended to run it inside a virtual machine.\n\n## Quickstart\n\nThe easiest way to run it is to use [Vagrant](https://www.vagrantup.com/) to create a fresh VM,\ninstall requirements and then run the image build.\n\nfrom the project directory\n\n```\nvagrant up\nvagrant ssh\nsudo su\ncd /vagrant\n```\n\nNow you are inside the VM as root in the project directory, ready to run the image build. To do\nso, you can do it without any customization running the command\n\n```\n./rpi-debian-builder --config config.json --modules basic\n```\n\nIt uses the `basic` module which perform some elementary configuration. It is recommended to\nalways use it unless you really know what you are doing.\n\n## Modules\n\nA module is a directory containing\n * static files to deploy to the target filesystem\n * templates to generate files to the target filesystem\n * provisioning scripts\n\n\n### Module directory structure\n\n```\nmodules\n   |-- module1\n   |     |-- initialize\n   |     |     |-- files\n   |     |     |-- templates\n   |     |     |-- scripts\n   |     |\n   |     |-- provision\n   |     |     |-- files\n   |     |     |-- templates\n   |     |     |-- scripts\n   |     |\n   |     |-- finish\n   |           |-- files\n   |           |-- templates\n   |           |-- scripts\n   |\n   |-- module2\n   |     |-- ...\n```\n\nModule phases:\n\n * `initialize` - This phase runs before any other provisioning. It runs outside the chroot context\n * `provision` -  This phase runs after built-in provisioning. It runs in a chroot context\n * `finish` - This phase runs after the `provision` one. It runs in a chroot context\n\nIn any phase, files and templates are always relative to the root of the filesystem of the target\noperating system.\n\n\n### Use your own modules\n\nTo use your own module, just copy it in the `modules` directory and make reference to it on the command\nline when you run the `rpi-debian-builder` command. You can reference as many module as you want (comma\nseparated).\n\n\n## License\n\nEverything in this repository is published under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggiamarchi%2Frpi-debian-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggiamarchi%2Frpi-debian-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggiamarchi%2Frpi-debian-builder/lists"}