https://github.com/pycgo/tools
在linux中安装常用的运维工具,如python38 which vim net-tools bind-utils mysql redis tcpdump wget kafka-client zookeeper-client,方便在容器环境使用
https://github.com/pycgo/tools
docker
Last synced: 7 months ago
JSON representation
在linux中安装常用的运维工具,如python38 which vim net-tools bind-utils mysql redis tcpdump wget kafka-client zookeeper-client,方便在容器环境使用
- Host: GitHub
- URL: https://github.com/pycgo/tools
- Owner: pycgo
- License: mit
- Created: 2022-04-21T03:37:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-22T08:07:04.000Z (almost 2 years ago)
- Last Synced: 2024-08-22T09:27:03.696Z (almost 2 years ago)
- Topics: docker
- Language: Python
- Homepage:
- Size: 55 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 基于almalinux:9.x 运维工具tools
介绍:
在linux中安装常用的运维工具,如python39 which vim net-tools bind-utils mysql redis tcpdump wget
可以方便在容器环境使用 dig mysql redis-cli 等命令
ps:
镜像会随着工具的增多越来越大,请需要的自行裁剪Dockerfile
## 支持列表及未来计划
绿色是已经支持的,未来的不一定会支持,看工作需要
✅mysql
✅redis-cli
✅kafka-client
✅Python3
✅vim
✅tcpdump
✅wget
✅dig
✅zookeeper
- [ ] elasticsearch
- [ ] rabbitmq
- [ ] And etc....
## 开发
```bash
git clone git@github.com:pycgo/tools.git
cd tools
docker build -t tools .
```
## 启动方式
### docker
```bash
#本地自己编译的
docker run -itd --name tools tools
#用已经在docker hub编译好的
docker run -itd --name tools xlovepython/tools
```
### k8s
#### 命令方式
国外:
镜像手动action 不一定最新
```bash
kubectl create deployment tools --image=xlovepython/tools --port=80
```
国内
镜像由阿里云自动触发构建,一直是最新
```bash
kubectl create deployment tools --image=registry.aliyuncs.com/opsflow/ops --port=80
```
mini版本
--- 去掉了ignite zk kafka
```bash
kubectl create deployment tools --image=registry.aliyuncs.com/opsflow/ops:mini --port=80
```
#### yaml方式
```bash
kubectl create -f tools.yaml
```
## web验证
```bash
docker exec -it tools curl 127.0.0.1
```
结果类似如下:
```bash
1、已经安装的工具列表如下:
python38
which
vim
net-tools
bind-utils
mysql
redis
tcpdump
wget
2、python3.8的第三方库如下:
mysql-connector-python==8.0.28
requests==2.26.0
Flask==2.1.1
pyignite==0.5.2
```