{"id":17498416,"url":"https://github.com/pothos/rust-userland","last_synced_at":"2025-04-14T14:29:00.602Z","repository":{"id":41819014,"uuid":"482859689","full_name":"pothos/rust-userland","owner":"pothos","description":"Rust userland container image","archived":false,"fork":false,"pushed_at":"2024-05-20T05:03:06.000Z","size":27,"stargazers_count":8,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T21:36:24.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/pothos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-18T13:36:52.000Z","updated_at":"2024-11-16T02:18:59.000Z","dependencies_parsed_at":"2024-05-20T06:23:29.063Z","dependency_job_id":null,"html_url":"https://github.com/pothos/rust-userland","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/pothos%2Frust-userland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos%2Frust-userland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos%2Frust-userland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos%2Frust-userland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pothos","download_url":"https://codeload.github.com/pothos/rust-userland/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248896572,"owners_count":21179457,"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-10-19T16:58:42.587Z","updated_at":"2025-04-14T14:29:00.579Z","avatar_url":"https://github.com/pothos.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust userland container image\n\nA puristic exercise to build a useable Linux container image consisting of\n[nsh](https://github.com/nuta/nsh) as shell (instead of GNU Bash), Rust [coreutils](https://github.com/uutils/coreutils)\n(instead of GNU coreutils), [ripgrep](https://github.com/BurntSushi/ripgrep) (instead of GNU grep), and [frawk](https://github.com/ezrosent/frawk) (instead of GNU awk).\n\n\nFor convenience a text editor is part of the image, currently this is [kiro-editor](https://github.com/rhysd/kiro-editor) (but more are possible, please suggest others).\n\nIt uses [eyra](https://github.com/sunfishcode/eyra/) instead of glibc and only uses static binaries. The container does not ship a libc and you are expected to copy static binaries into it if you want to extend it.\n\n## Usage\n\nFrom the prebuilt image:\n\n```\ndocker run --rm -it ghcr.io/pothos/rust-userland:main\n```\n\nFrom a locally built image:\n\n```\nmake\ndocker run --rm -it rust-userland\n```\n\n## TODO\n\n- Add more common tools, specially those that are not in coreutils but are expected to usually exist, e.g., `ps`, `sed`, `gzip`, `diff`, `less`, `ip` (and others from iproute2), `mount` (and others from util-linux), `sudo`, `curl`, `wget`, …\n- Add more new tools written in Rust that provide similar/valuable functionality but aren't a drop-in (some already included) - Edit: Dropped for now and needs to be added back: As incompatible alternative to `ps` there is [procs](https://github.com/dalance/procs), for `top` there is [bottom](https://github.com/ClementTsang/bottom) (`btm`), for `sed` there is [sd](https://github.com/chmln/sd), for `find` there is [fd](https://github.com/sharkdp/fd). It also ships [bat](https://github.com/sharkdp/bat) as improvement over `cat` and [choose](https://github.com/theryangeary/choose) as improvement over `cut`.\n- Add `getent` as user and DNS resolver (`passwd`, `group`, `initgroups`, `services`, `ahosts`, `ahostsv4`, `ahostsv6`) for c-ward\n\nPRs welcome ;)\n\nNote: `nsh` development is stalled and one could also try to get `fish` working instead\n\nNote: `frawk` has a different regex format than `awk`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpothos%2Frust-userland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpothos%2Frust-userland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpothos%2Frust-userland/lists"}