{"id":13813630,"url":"https://github.com/nanmu42/tart","last_synced_at":"2025-04-14T22:35:02.357Z","repository":{"id":62009590,"uuid":"556830091","full_name":"nanmu42/tart","owner":"nanmu42","description":"A toy Gitlab CI Runner backed by Firecracker MicroVM | 基于Firecracker MicroVM的玩具Gitlab CI Runner","archived":false,"fork":false,"pushed_at":"2023-02-14T03:06:56.000Z","size":92,"stargazers_count":107,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T10:47:37.572Z","etag":null,"topics":["firecracker","firecracker-microvms","gitlab","gitlab-ci","gitlab-runner","go","golang"],"latest_commit_sha":null,"homepage":"","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/nanmu42.png","metadata":{"files":{"readme":"README.md","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":"nanmu42"}},"created_at":"2022-10-24T15:38:57.000Z","updated_at":"2025-01-19T17:50:41.000Z","dependencies_parsed_at":"2024-06-19T16:02:20.610Z","dependency_job_id":"6f7886b2-d383-4a93-a934-f33ec9d2b285","html_url":"https://github.com/nanmu42/tart","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.09090909090909094,"last_synced_commit":"0ab4a2b9303a7de81f0bcb36f6aad9f6c77d2e9f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Ftart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Ftart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Ftart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Ftart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanmu42","download_url":"https://codeload.github.com/nanmu42/tart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248973827,"owners_count":21192040,"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":["firecracker","firecracker-microvms","gitlab","gitlab-ci","gitlab-runner","go","golang"],"created_at":"2024-08-04T04:01:23.818Z","updated_at":"2025-04-14T22:34:57.348Z","avatar_url":"https://github.com/nanmu42.png","language":"Go","funding_links":["https://github.com/sponsors/nanmu42"],"categories":["Go","go"],"sub_categories":[],"readme":"**English** | [中文](https://jihulab.com/nanmu42/tart/-/blob/master/README_zh-cn.md)\n\n# Tart\n\n[![GoDoc](https://godoc.org/github.com/nanmu42/tart?status.svg)](https://godoc.org/github.com/nanmu42/tart)\n[![Build status](https://jihulab.com/nanmu42/tart/badges/master/pipeline.svg)](https://jihulab.com/nanmu42/tart/-/pipelines)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"360\" src=\"https://user-images.githubusercontent.com/8143068/197567829-b2d9783d-a660-41c6-bea4-5945dfa1ccb3.png\"\u003e\n\u003c/div\u003e\n\n\nTart is an educational purpose, unofficial Gitlab Runner, implementing a subset of functionality of Gitlab Runner as experiments and demonstration.\n\nFor Example, Tart can run [its own CI job, in which its unit tests are executed and its binary got compiled](https://jihulab.com/nanmu42/tart/-/jobs/4980020).\n\nFeatures:\n\n* Fun!\n* Uses [Firecracker](https://firecracker-microvm.github.io/) and `/dev/kvm`. Every job runs in a \"microVM\" that boots under 2 seconds. Tart might be the first example to combine Gitlab runner and Firecracker\n* The codebase is relatively small at around 2000 lines(empty lines included) and the core functionality of Gitlab Runner is implemented: polling jobs, execution in isolation environment, submition of job state and logs\n\nIt's a toy runner and functionality like artifact uploading and services are not supported. In other words, don't use it in production.\n\n## Usage\n\nTart runs in a Linux environment with access to `/dev/kvm`:\n\n```bash\nsudo setfacl -m u:${USER}:rw /dev/kvm\n```\n\n1. Download binaries of Tart and Firecracker from release page and put them into `$PATH`\n2. Download rootFS and Linux kernel from release page and put them into a working directory, such as `~/tart`\n3. Create network for microVMs, refer to `rootfs/setup-tuntap.sh`\n4. `cd ~/tart`\n5. Register Tart as your project CI runner: `tart register --endpoint https://gitlab.example.com --token your_token_here \u003e tart.toml`\n6. Run Tart: `tart run`\n7. Trigger CI job on Gitlab. You may have to disable shared runner to ensure CI jobs are scheduled to Tart\n8. Watch Tart working(or exploding)\n\n## Compile\n\n```bash\nmake\n```\n\nThe binary can be found under `bin` directory.\n\nTo compile Linux kernel and build rootFS, refer to `rootFS` directory.\n\n## What's with the name?\n\nI like egg tarts.\n\n## License\n\nMIT\n\nLicenses of work of third parties lies at `THIRD_PARTY_LICENSES.md`.\n\nThe tart photo in the logo is from Ashley Byrd on Unsplash. Gopher is generated at [gopherize.me].","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanmu42%2Ftart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanmu42%2Ftart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanmu42%2Ftart/lists"}