{"id":15127520,"url":"https://github.com/jianchengwang/coderunner","last_synced_at":"2026-02-24T07:08:38.981Z","repository":{"id":132712953,"uuid":"370098781","full_name":"jianchengwang/coderunner","owner":"jianchengwang","description":"docker code runner","archived":false,"fork":false,"pushed_at":"2021-05-25T16:27:54.000Z","size":387,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T16:41:23.721Z","etag":null,"topics":["coderunner","docker"],"latest_commit_sha":null,"homepage":"https://coderunner.jianchengwang.info","language":"Go","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/jianchengwang.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":"2021-05-23T16:12:26.000Z","updated_at":"2021-05-25T16:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c2befbb-1dcf-4b7c-873e-02562d034ecf","html_url":"https://github.com/jianchengwang/coderunner","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/jianchengwang%2Fcoderunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianchengwang%2Fcoderunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianchengwang%2Fcoderunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianchengwang%2Fcoderunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jianchengwang","download_url":"https://codeload.github.com/jianchengwang/coderunner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386276,"owners_count":20930618,"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":["coderunner","docker"],"created_at":"2024-09-26T02:04:52.333Z","updated_at":"2025-10-29T00:33:45.268Z","avatar_url":"https://github.com/jianchengwang.png","language":"Go","readme":"\u003eDocker-based remote code runner.\n\n## 效果图\n![效果图1](https://github.com/jianchengwang/coderunner/raw/main//doc/assets/show1.png)\n\n## 特性\n- [x] terminal\n- [x] fetch gitrep\n- [x] upload files\n- [x] support go,python,java,javascript,c...\n- [ ] support markdown\n- [ ] support jsbin\n\n## 部署\n参照`deploy`目录\n\n**go build \u0026 docker build**\n\n```shell\nset GOARCH=amd64\nset GOOS=linux\ngo build -o coderunner main.go\n\ndocker build -t coderunner:v0.0.1 .\ndocker tag coderunner:v0.0.1 jianchengwang/coderunner\ndocker login\ndocker push jianchengwang/coderunner\n```\n\n这里根据自己的需求，打包成基于哪种架构的二进制文件，然后生成docker镜像即可，\n\n**docker-compose**\n\n```yaml\nversion: '3'\nservices:\n  coderunner:\n    image: jianchengwang/coderunner:latest\n    ports:\n      - \"8080:8080\"\n    volumes:\n      - /var/run/docker.sock:/var/run/docker.sock\n      - /root/coderunner:/root/coderunner\n    environment:\n      APP_URL: http://localhost:8080\n      APP_PASSWORD: 12345678\n      APP_CONTAINER_PATH: /root/coderunner\n```\n\n这里要注意将`APP_CONTAINER_PATH`要跟docker目录进行映射，`APP_URL`就是配置允许跨域的域名地址了，\n\n**nginx proxy**\n\n你如果使用nginx进行代理转发的话，要配置下跨域相关，否则可能导致跨域问题，\n\n```nginx\n proxy_set_header    Host            $host;\n proxy_set_header    X-Real-IP       $remote_addr;\n proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;\n location / {\n    proxy_pass http://172.17.0.6:8902;\n    add_header Access-Control-Allow-Origin *;\n }\n```\n\n## 参考\n[Elaina](https://github.com/wuhan005/Elaina) Docker-based remote code runner.\n\n## License\nMIT，\n\nJut do everything you want. You happy is ok.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianchengwang%2Fcoderunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjianchengwang%2Fcoderunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianchengwang%2Fcoderunner/lists"}