{"id":37862263,"url":"https://github.com/msqtt/sb-judger","last_synced_at":"2026-01-16T16:32:54.302Z","repository":{"id":210698347,"uuid":"725906605","full_name":"msqtt/sb-judger","owner":"msqtt","description":"使用 Go 语言开发的轻量 OnlineJudge Server.","archived":false,"fork":false,"pushed_at":"2024-05-21T07:09:11.000Z","size":150,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-06-21T21:05:59.110Z","etag":null,"topics":["go","golang","oj","online-judge"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msqtt.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":"2023-12-01T05:46:26.000Z","updated_at":"2024-05-24T00:44:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"c90f0299-a182-4ec2-a652-c5b6711cbe06","html_url":"https://github.com/msqtt/sb-judger","commit_stats":null,"previous_names":["msqtt/sb-judger"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/msqtt/sb-judger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msqtt%2Fsb-judger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msqtt%2Fsb-judger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msqtt%2Fsb-judger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msqtt%2Fsb-judger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msqtt","download_url":"https://codeload.github.com/msqtt/sb-judger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msqtt%2Fsb-judger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["go","golang","oj","online-judge"],"created_at":"2026-01-16T16:32:54.202Z","updated_at":"2026-01-16T16:32:54.275Z","avatar_url":"https://github.com/msqtt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003e\n\u003cbr\u003eSB-JUDGER 🤪\u003c/h1\u003e\n\u003ch3\u003e◦ ► 使用 Go 语言开发的轻量 OnlineJudge Server.\u003c/h3\u003e\n\u003cimg src=\"https://img.shields.io/github/license/msqtt/sb-judger?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub license\" /\u003e\n\u003cimg src=\"https://img.shields.io/github/last-commit/msqtt/sb-judger?style=flat-square\u0026color=5D6D7E\" alt=\"git-last-commit\" /\u003e\n\u003cimg src=\"https://img.shields.io/github/commit-activity/m/msqtt/sb-judger?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub commit activity\" /\u003e\n\u003cimg src=\"https://img.shields.io/github/languages/top/msqtt/sb-judger?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub top language\" /\u003e\n\u003c/div\u003e\n\n---\n\n## 🖼️ 截图\n\n![image](https://github.com/msqtt/sb-judger/assets/94043894/685b8195-985e-4a01-9b44-436e66b3cdbe)\n\n## 📝 简介\n\nsandbox-judger 使用 LXC 技术，为用户提交每一个的代码进程创建一个沙箱，并在指定的系统资源下运行程序，达到安全判题的效果。\n\n它使用 namespace、cgroup 来隔离资源，使用 overlayfs 作为 Unionfs。\n\n\u003e **目前 sb-judger 还不支持 cgroupv1，在使用前请确保运行环境使用的是 cgroupv2。**\n\n## 🚀 开始\n\n### 🔧 安装\n\n1. 克隆仓库:\n```sh\ngit clone https://github.com/msqtt/sb-judger\n```\n\n2. 切换目录:\n```sh\ncd sb-judger\n```\n\n3. 制作 rootfs:\n\n```sh\nmake rootfs\n```\n\u003e 如果你有自己的 rootfs 请忽略这步\n\u003e `mkdir rootfs` 后，直接把根目录解压到 `rootfs` 即可。\n\n4. 开始构建:\n```sh\nmake build\n```\n\n### 🤖 启动\n\n```sh\n./sb-judger\n```\n\n打开运行代码测试页面 :\n\n```sh\nopen http://localhost:8080\n```\n\n### 🐬 Docker \n\n#### 使用我的\n\n```sh\ndocker pull msqt/sb-judger:latest\ndocker run --privileged -d -p8080:8080 -p9090:9090 msqt/sb-judger\n```\n\n#### 自己构建\n\n```sh\nAPP_IMAGE_NAME=xxx APP_IMAGE_TAG=0.1.0 make docker\n```\n\n---\n\n## 🌐 API\n\nsb-judger 使用 `grpc` 和 `http` 作为通讯协议，且使用 `grpc-http-gateway` 提供 `http` 服务。\n\n- [Http OpenAPI](https://github.com/msqtt/sb-judger/blob/master/api/openapi/v1/judger/judger_service.swagger.json)\n  - [Apifox doc](https://4725lf5hpc.apifox.cn)\n- [Grpc Protos](https://github.com/msqtt/sb-judger/tree/master/api/protos/v1)\n\n## ⚙️ 配置\n\n- [语言配置](https://github.com/msqtt/sb-judger/blob/master/configs/lang.json)\n- [软件配置](https://github.com/msqtt/sb-judger/blob/master/configs/app.env)\n  - 可以直接通过环境变量传入，比如: `HTTP_ADDR=0.0.0.0:8080 ./sb-judger`，docker 也是同理。\n\n\n\n## 🛣 路线\n\n\u003e - [X] `ℹ️ Support cgroupv2`\n\u003e - [X] `ℹ️ Test`\n\u003e - [ ] `ℹ️ Metric API`\n\u003e - [ ] `ℹ️ ...`\n\n## 🧮 支持语言\n\n\u003e - [X] `ℹ️ c/cpp`\n\u003e - [X] `ℹ️ golang`\n\u003e - [X] `ℹ️ python`\n\u003e - [X] `ℹ️ java`\n\u003e - [X] `ℹ️ rust`\n\u003e - [ ] `ℹ️ ...`\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Here are several ways you can contribute:\n\n- **[Submit Pull Requests](https://github.com/msqtt/sb-judger/blob/main/CONTRIBUTING.md)**: Review open PRs, and submit your own PRs.\n- **[Join the Discussions](https://github.com/msqtt/sb-judger/discussions)**: Share your insights, provide feedback, or ask questions.\n- **[Report Issues](https://github.com/msqtt/sb-judger/issues)**: Submit bugs found or log feature requests for MSQTT.\n\n#### *Contributing Guidelines*\n\n\u003cdetails closed\u003e\n\u003csummary\u003eClick to expand\u003c/summary\u003e\n\n1. **Fork the Repository**: Start by forking the project repository to your GitHub account.\n2. **Clone Locally**: Clone the forked repository to your local machine using a Git client.\n   ```sh\n   git clone \u003cyour-forked-repo-url\u003e\n   ```\n3. **Create a New Branch**: Always work on a new branch, giving it a descriptive name.\n   ```sh\n   git checkout -b new-feature-x\n   ```\n4. **Make Your Changes**: Develop and test your changes locally.\n5. **Commit Your Changes**: Commit with a clear and concise message describing your updates.\n   ```sh\n   git commit -m 'Implemented new feature x.'\n   ```\n6. **Push to GitHub**: Push the changes to your forked repository.\n   ```sh\n   git push origin new-feature-x\n   ```\n7. **Submit a Pull Request**: Create a PR against the original project repository. Clearly describe the changes and their motivations.\n\nOnce your PR is reviewed and approved, it will be merged into the main branch.\n\n\u003c/details\u003e\n\n---\n\n## 📄 License\n\n\nThis project is protected under the [MPL2](https://choosealicense.com/licenses/mpl-2.0/) License. For more details, refer to the [LICENSE](./LICENSE) file.\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsqtt%2Fsb-judger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsqtt%2Fsb-judger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsqtt%2Fsb-judger/lists"}