{"id":21595232,"url":"https://github.com/euank/sinit-muscl-docker-builder","last_synced_at":"2025-03-18T11:09:32.912Z","repository":{"id":66058223,"uuid":"42034656","full_name":"euank/sinit-muscl-docker-builder","owner":"euank","description":"A Dockerfile for building sinit statically linked with musl","archived":false,"fork":false,"pushed_at":"2015-09-07T06:55:15.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T17:19:30.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/euank/sinit-installer/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/euank.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}},"created_at":"2015-09-07T06:13:06.000Z","updated_at":"2016-06-10T21:32:38.000Z","dependencies_parsed_at":"2023-02-19T21:55:29.816Z","dependency_job_id":null,"html_url":"https://github.com/euank/sinit-muscl-docker-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fsinit-muscl-docker-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fsinit-muscl-docker-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fsinit-muscl-docker-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fsinit-muscl-docker-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/euank","download_url":"https://codeload.github.com/euank/sinit-muscl-docker-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207736,"owners_count":20416107,"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":[],"created_at":"2024-11-24T17:34:49.342Z","updated_at":"2025-03-18T11:09:32.896Z","avatar_url":"https://github.com/euank.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiny sinit Installer\n\nThis Dockerfile builds an image that can be used to acquire a small sinit binary.\n\n## Why?\n\nThe reason I made this was to make it easier to get a small sinit binary.\n\nIf you build `sinit` naively on a standard Linux Distro, you'll end up with a statically linked binary built against libc.\n\n```\n$ ls -l sinit\n-rwxr-xr-x 1 user group 750920 Sep  6 04:20 sinit\n```\n\nSee that? Over 700K.. That's unacceptable for a Suckless Tool.\n\nHowever, the majority of that is because of libc. If you create a dynamically\nlinked binary instead you'll find a nice clean 8833 byte binary... that\nunfortunately can't be executed as an init system meaningfully.\n\nThe happy middle ground is to link against musl instead, and that's exactly what this project does.\n\nRunning `docker run -v \"$(pwd)\":/out euank/sinit-installer` will result in a\nnice clean 13744 byte statically linked binary that can be used as the init for\na 64-bit Linux of choice.\n\n\n## Usage\n\nTo get a nice small statically linked v1.0 sinit (as compiled by the Dockerhub\nautomated build machines), simply run `docker run -v \"$(pwd)\":/out\neuank/sinit-installer`.\n\nTo compile the latest version of sinit locally, instead run `docker run -v\n\"$(pwd)\":/out euank/sinit-installer master`. You may also pass any other tag or\nbranch into the first argument for it to be built instead.\n\n## This is dumb\n\nThanks. I'm still not sure why I thought that downloading 100MB to get a ~13KB\nbinary was a good idea, but hey, at least Docker foots the bill for hosting the\nspare bits.\n\nIssues to the right.\n\n## License\n\nUNLICENSE (that is, Public Domain).\n\nI do not own sinit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuank%2Fsinit-muscl-docker-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feuank%2Fsinit-muscl-docker-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuank%2Fsinit-muscl-docker-builder/lists"}