{"id":18841941,"url":"https://github.com/ahmetozer/chroot-bin","last_synced_at":"2026-05-01T00:31:46.808Z","repository":{"id":136065513,"uuid":"477473545","full_name":"ahmetozer/chroot-bin","owner":"ahmetozer","description":"execute chroot environment with symlinks","archived":false,"fork":false,"pushed_at":"2022-04-03T22:03:09.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T12:23:42.065Z","etag":null,"topics":["chroot","golang","linux"],"latest_commit_sha":null,"homepage":"","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/ahmetozer.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":"2022-04-03T21:45:49.000Z","updated_at":"2022-04-11T20:21:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d24827e-03fb-4ccd-9306-834068cba8cd","html_url":"https://github.com/ahmetozer/chroot-bin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmetozer/chroot-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fchroot-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fchroot-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fchroot-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fchroot-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmetozer","download_url":"https://codeload.github.com/ahmetozer/chroot-bin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetozer%2Fchroot-bin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32481553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["chroot","golang","linux"],"created_at":"2024-11-08T02:53:07.752Z","updated_at":"2026-05-01T00:31:46.783Z","avatar_url":"https://github.com/ahmetozer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chroot-bin\n\nEasily execute chrooted binnary from current environment without chroot command\n\nFor example your distroless application chroot dir is `/apps/bash/`\n\nTo execute your application, normally you can use bellow command\n\n```bash\nchroot /apps/bash/ /usr/bin/bash\n```\n\nWith Chroot-bin, instead of long command, you can create link to chroot-bin\nand execute directly.\n\n```bash\nln -s /usr/bin/chroot-bin /usr/bin/bash # One time\n\nbash\n```\n\n## Config\n\nBy default, application looks **`\"/apps/\"+$(basename $0)`** path for chdir.\nYou can change default dir by setting `CHROOTBIN_DIR_DEFAULT` variable  \nEX. `CHROOTBIN_DIR_DEFAULT=\"/myapps/\"`\n\nCurrently two option is avaible for per binnary.\nOne of them is indicates chrootdir of the application and second one is\nbinnary path **inside** the chroot dir.\n\nThis helpfull if the multiple apps is under same dir.\n\n```bash\nCHROOTBIN_DIR=\"bash=/apps/debian;apt=/apps/debian\" ./bash\n```\n\nIf your link name and bin name is different, you can set custom bin path\n\n```bash\n export CHROOTBIN_DIR=\"ash=/apps/alpine;apk=/apps/alpine;sh=/apps/alpine\" CHROOTBIN_PATH=\"sh=/bin/ash\"\n ln -s chroot-bin sh\n ./sh\n sudo -E ./apk update\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetozer%2Fchroot-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetozer%2Fchroot-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetozer%2Fchroot-bin/lists"}