{"id":21353506,"url":"https://github.com/yunnysunny/alinode","last_synced_at":"2025-10-11T04:11:54.283Z","repository":{"id":146127334,"uuid":"527514743","full_name":"yunnysunny/alinode","owner":"yunnysunny","description":"自制 alinode 镜像","archived":false,"fork":false,"pushed_at":"2024-02-29T20:36:33.000Z","size":163,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T17:29:18.994Z","etag":null,"topics":["alinode","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yunnysunny.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-08-22T10:26:20.000Z","updated_at":"2022-08-24T11:31:58.000Z","dependencies_parsed_at":"2024-02-05T17:01:14.145Z","dependency_job_id":"5551422e-078a-47aa-9065-77497f767542","html_url":"https://github.com/yunnysunny/alinode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunnysunny%2Falinode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunnysunny%2Falinode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunnysunny%2Falinode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunnysunny%2Falinode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yunnysunny","download_url":"https://codeload.github.com/yunnysunny/alinode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826792,"owners_count":20354221,"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":["alinode","dockerfile"],"created_at":"2024-11-22T03:18:10.593Z","updated_at":"2025-10-11T04:11:49.252Z","avatar_url":"https://github.com/yunnysunny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alinode 镜像\n\n## 镜像说明\n\n### yunnysunny/alinode-core\n\n集成了 alinode 和 yarn，是 alinode-compiler 和 alinode-runtinme 的基础镜像。\n\n### yunnysunny/alinode-compiler\n\n集成了 gcc g++ python3 等开发包，可以用其来编译原生代码。\n\n### yunnysunny/alinode-runtime\n\n集成 alinode 日志收集功能，需要注入 `APP_ID` `APP_SECRET` 两个环境变量。\n\n## 使用方法\n\n使用 alinode-compiler 来生成 node_modules 、构建项目生成产物，然后将 node_modules 和 生产产物拷贝到基于 alinode-runtinme 的镜像中。\n\n## 构建示例\n\n可以参见 [test/hello/test.sh](https://github.com/yunnysunny/alinode/blob/master/test/hello/test.sh)。\n\n## 版本说明\n\n本项目的构建的镜像版本支持语义化版本号原则。在 github 上发布一个  `vx.y.z` tag 后，会自动生成  `x.y` `x.y.z` 三个镜像版本。\n\n| 镜像版本     | node 版本 | 备注       |\n| -------- | ------- | -------- |\n| 0.2        | 16      | 基于ubuntu |\n| alpine-0.2 | 16      | 基于alpine |\n\n### 关于 alpine 镜像\n\nalinode 基于 glibc 进行构建，但是 alpine 中的 C 标准库没有选择 glibc，而是使用了更加轻量的 musl，这就导致 alinode 无法在 alpine 中直接运行。\n\nalpine.dockerfile 在构建时安装了 gcompat 这个软件包，它可以将 musl 转化为 glibc 运行，目前看 alinode 在上面运行良好。不过考虑到 gcompat 的兼容性，如果你的应用的依赖包中含有原生依赖，且这个原生依赖提供了预编译库，则这个预编译库在此镜像上的运行情况是未知的。\n\n由于 gcompat 不兼容 aarch64 平台，所以 apline 镜像不提供 linux/arm64 版本的镜像。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunnysunny%2Falinode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunnysunny%2Falinode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunnysunny%2Falinode/lists"}