{"id":27603755,"url":"https://github.com/tarscloud/tarsdemo","last_synced_at":"2025-08-03T04:35:32.307Z","repository":{"id":96016345,"uuid":"246960397","full_name":"TarsCloud/TarsDemo","owner":"TarsCloud","description":"For test TARS framework automatically","archived":false,"fork":false,"pushed_at":"2023-02-14T21:08:19.000Z","size":153946,"stargazers_count":10,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-29T05:06:10.009Z","etag":null,"topics":["auto-test","tars-foundation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TarsCloud.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":"Contributing.md","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,"zenodo":null}},"created_at":"2020-03-13T01:01:45.000Z","updated_at":"2023-02-28T11:44:00.000Z","dependencies_parsed_at":"2023-07-09T12:32:10.722Z","dependency_job_id":null,"html_url":"https://github.com/TarsCloud/TarsDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TarsCloud/TarsDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarsCloud%2FTarsDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarsCloud%2FTarsDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarsCloud%2FTarsDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarsCloud%2FTarsDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TarsCloud","download_url":"https://codeload.github.com/TarsCloud/TarsDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TarsCloud%2FTarsDemo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259340515,"owners_count":22843007,"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":["auto-test","tars-foundation"],"created_at":"2025-04-22T19:19:16.735Z","updated_at":"2025-06-11T21:05:39.421Z","avatar_url":"https://github.com/TarsCloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[点我看中文版](README.md)\n\n# TarsDemo\n\n## Goal\n\nComplete automatic testing of the framework(\u003e=2.4.0)\n\n## Basic Steps\n- TARS Framework deployment\n- Build docker: tarsnode operating environment of tars and operating environment of all languages\n- Start docker\n- docker run the script run-test.sh\n- `run-test.sh` automatically completes the compilation of each language service, releases and runs, and calls tests\n\n## docker run\n\n- Run MySQL image\n\n\u003e- `docker pull mysql: 5.6`\n\n\u003e- Start mysql image\n\n- Build and run the TARS image\n\u003e- `git clone https://github.com/TarsCloud/TarsDocker`\n\u003e- `./build-docker.sh framework development`\n\u003e- Build framework: `tarscloud/framework:dev`\n\u003e- Run image (note the setting UPLOAD = true)\n\n- Build TarsDemo image\n\u003e- `git clone https://github.com/TarsCloud/TarsDemo`\n\u003e- `./build-docker.sh build developers`\n\u003e- Build demo image: `tarscloud / tarsdemo: dev`\n\u003e- Run automatic testing: `./build-docker.sh run dev WEB_HOST MYSQL_HOST`\n\nThe above logic is implemented in `autorun.sh`, and can be run directly:\n\n\n## Current Progress\n\nIt is inconvenient to debug by building into docker, so you can instead debug in the following way:\n- Run `autorun.sh` once. This will build a set of mysql, tarsframework\n- In the docker where tarsdemo was built: `./build-docker.sh build dev`\n- Run docker\n```\ndocker run --rm \\\n                --name node \\\n                -e WEB_HOST=http://172.35.0.2:3000 \\\n                -e MYSQL_HOST=172.35.0.200 \\\n                --net=tarsdemo \\\n                --ip 172.35.0.10 \\\n                -p \"22000-22020\":\"22000-22020\" \\\n                tarscloud/tarsdemo:dev \\\n                /root/autotest/debug-entrypoint.sh\n```\n\n- At this point, the docker becomes a node of the tars environment\n- Enter docker: `docker exec -it xxx bash`\n- Enter the directory: `cd /root/autotest`\n- Run run-test to debug:\n`./run-test.sh 172.35.0.200 3306 root 12345 http://172.35.0.2:3000 172.35.0.10`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarscloud%2Ftarsdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarscloud%2Ftarsdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarscloud%2Ftarsdemo/lists"}