{"id":36742536,"url":"https://github.com/pycgo/tools","last_synced_at":"2026-01-12T12:29:57.248Z","repository":{"id":41971776,"uuid":"483894574","full_name":"pycgo/tools","owner":"pycgo","description":"在linux中安装常用的运维工具，如python38 which vim net-tools bind-utils mysql redis tcpdump wget  kafka-client zookeeper-client，方便在容器环境使用","archived":false,"fork":false,"pushed_at":"2024-08-22T08:07:04.000Z","size":57642,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-22T09:27:03.696Z","etag":null,"topics":["docker"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pycgo.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}},"created_at":"2022-04-21T03:37:07.000Z","updated_at":"2023-04-13T07:45:59.000Z","dependencies_parsed_at":"2023-11-20T03:39:49.184Z","dependency_job_id":null,"html_url":"https://github.com/pycgo/tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pycgo/tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycgo%2Ftools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycgo%2Ftools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycgo%2Ftools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycgo%2Ftools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pycgo","download_url":"https://codeload.github.com/pycgo/tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycgo%2Ftools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docker"],"created_at":"2026-01-12T12:29:57.174Z","updated_at":"2026-01-12T12:29:57.243Z","avatar_url":"https://github.com/pycgo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于almalinux:9.x   运维工具tools\n\n介绍：\n\n在linux中安装常用的运维工具，如python39 which vim net-tools bind-utils mysql redis tcpdump wget\n可以方便在容器环境使用 dig mysql redis-cli 等命令\n\nps：\n   镜像会随着工具的增多越来越大，请需要的自行裁剪Dockerfile\n\n\n## 支持列表及未来计划\n   绿色是已经支持的，未来的不一定会支持，看工作需要\n\n✅mysql\n\n✅redis-cli\n\n✅kafka-client\n\n✅Python3\n\n✅vim\n\n✅tcpdump\n\n✅wget\n\n✅dig\n\n✅zookeeper\n\n\n- [ ] elasticsearch\n- [ ] rabbitmq\n- [ ]  And etc....\n\n## 开发\n\n```bash\ngit clone git@github.com:pycgo/tools.git\ncd tools\ndocker build -t tools .\n```\n\n\n\n## 启动方式\n\n### docker\n\n```bash\n#本地自己编译的\ndocker run -itd --name tools tools\n#用已经在docker hub编译好的\ndocker run -itd --name tools xlovepython/tools\n```\n\n### k8s\n\n#### 命令方式\n\n国外：\n镜像手动action 不一定最新\n```bash\n kubectl create deployment tools --image=xlovepython/tools --port=80\n```\n\n国内\n镜像由阿里云自动触发构建，一直是最新\n```bash\n kubectl create deployment tools --image=registry.aliyuncs.com/opsflow/ops --port=80\n```\n\nmini版本\n --- 去掉了ignite zk kafka\n```bash\n kubectl create deployment tools --image=registry.aliyuncs.com/opsflow/ops:mini --port=80\n```\n\n#### yaml方式\n\n```bash\nkubectl create -f tools.yaml\n```\n## web验证\n\n```bash\ndocker exec -it tools curl 127.0.0.1\n```\n\n结果类似如下：\n\n```bash\n1、已经安装的工具列表如下：\npython38\nwhich\nvim\nnet-tools\nbind-utils\nmysql\nredis\ntcpdump\nwget\n\n\n2、python3.8的第三方库如下：\nmysql-connector-python==8.0.28\nrequests==2.26.0\nFlask==2.1.1\npyignite==0.5.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycgo%2Ftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycgo%2Ftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycgo%2Ftools/lists"}