{"id":13892966,"url":"https://github.com/alpinelinux/alpine-chroot-install","last_synced_at":"2025-05-16T06:06:56.095Z","repository":{"id":39636387,"uuid":"77255125","full_name":"alpinelinux/alpine-chroot-install","owner":"alpinelinux","description":"Install Alpine Linux in chroot with a breeze. Build ARM on Travis CI or any other x86_64 CI.","archived":false,"fork":false,"pushed_at":"2025-01-06T00:18:13.000Z","size":98,"stargazers_count":309,"open_issues_count":16,"forks_count":62,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-12T04:44:48.303Z","etag":null,"topics":["alpine-linux","chroot","ci","travis-ci"],"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/alpinelinux.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"jirutka"}},"created_at":"2016-12-23T23:06:18.000Z","updated_at":"2025-04-05T15:10:57.000Z","dependencies_parsed_at":"2025-01-29T12:01:49.191Z","dependency_job_id":"68b1141c-9d21-4e42-a014-d6b09a17a7e6","html_url":"https://github.com/alpinelinux/alpine-chroot-install","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpinelinux%2Falpine-chroot-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpinelinux%2Falpine-chroot-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpinelinux%2Falpine-chroot-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpinelinux%2Falpine-chroot-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alpinelinux","download_url":"https://codeload.github.com/alpinelinux/alpine-chroot-install/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478190,"owners_count":22077676,"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":["alpine-linux","chroot","ci","travis-ci"],"created_at":"2024-08-06T17:01:21.352Z","updated_at":"2025-05-16T06:06:51.077Z","avatar_url":"https://github.com/alpinelinux.png","language":"Shell","funding_links":["https://github.com/sponsors/jirutka"],"categories":["Shell"],"sub_categories":[],"readme":"= Install Alpine Linux in chroot\n:script-name: alpine-chroot-install\n:script-sha1: ccbf65f85cdc351851f8ad025bb3e65bae4d5b06\n:gh-name: alpinelinux/{script-name}\n:version: 0.14.0\n\nifdef::env-github[]\nimage:https://github.com/{gh-name}/workflows/CI/badge.svg[\"Build Status\", link=\"https://github.com/{gh-name}/actions\"]\nendif::env-github[]\n\nThis `alpine-chroot-install` script simplifies installation of https://alpinelinux.org/[Alpine Linux] for testing purposes on any x86_64 Linux system using https://man7.org/linux/man-pages/man1/chroot.1.html[chroot(1)].\nOptionally it also utilizes _qemu-user_ and _binfmt_ to emulate different architecture.\n\nThe main purpose of this script is to easily create Alpine environment on Ubuntu-based CI services (e.g. https://travis-ci.org/[Travis CI] and similar) and possibly emulate other architectures (e.g. ARM) on x86_64-only CI service.\n\nInstallation of Alpine Linux is a matter of a few seconds… *5 seconds* to be more specific.\nIt takes just ~5 seconds to prepare a chroot, install fresh Alpine including gcc build environment and execute first command!\nAnd it doesn’t use any prebuilt rootfs archive or image, and no Docker, of course.\nAll you need to install Alpine Linux is just https://github.com/alpinelinux/apk-tools[apk-tools] -- Alpine’s package manager -- which is automatically downloaded by this script.\n\n*Note*: If you use *GitHub Actions*, you’re better off using https://github.com/jirutka/setup-alpine[jirutka/setup-alpine] instead of this script.\n\n\n== Requirements\n\n* Linux system with common userland (Busybox or GNU coreutils)\n* POSIX-sh compatible shell (e.g. Busybox ash, dash, Bash, ZSH)\n* qemu-user ≥ 2.6 and binfmt, or apt-get (needed only for emulation of different architecture)\n\nNote that Alpine binaries needs up-to-date version of QEMU.\nIf you encounter error `qemu: Unsupported syscall`, it means that your QEMU version is too old.\nIf you can’t upgrade QEMU (package `qemu-user-static` on Debian/Ubuntu), try an older Alpine Linux branch (option `-b`, e.g. `-b v3.11`).\n\n\n== Usage\n\nRead documentation in link:{script-name}[{script-name}].\nSee link:.github/workflows/ci.yml[] for GitHub Actions example.\n\nYou can copy link:{script-name}[{script-name}] into your repository or download it on demand, e.g.:\n\n[source, sh, subs=\"verbatim, attributes\"]\nwget https://raw.githubusercontent.com/{gh-name}/v{version}/{script-name} \\\n    \u0026\u0026 echo '{script-sha1}  {script-name}' | sha1sum -c \\\n    || exit 1\n\n\n== License\n\nThis project is licensed under http://opensource.org/licenses/MIT/[MIT License].\nFor the full text of the license, see the link:LICENSE[LICENSE] file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpinelinux%2Falpine-chroot-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falpinelinux%2Falpine-chroot-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpinelinux%2Falpine-chroot-install/lists"}