基于 Alpine Linux 的轻量级工具容器,提供丰富的开发和测试工具。
A lightweight tool container based on Alpine Linux, providing a rich set of development and testing tools.
-
轻量级: 基于 Alpine Linux,镜像体积小
-
多功能: 包含常用开发工具、网络工具、编译器等
-
Python 支持: 预装常用 Python 包
-
便捷使用: 提供一键安装脚本和 Makefile
-
Lightweight: Based on Alpine Linux, small image size
-
Versatile: Includes common development tools, network tools, compilers, etc.
-
Python Support: Pre-installed with common Python packages
-
Easy to Use: Provides one-click installation script and Makefile
# 克隆仓库
git clone https://github.com/ZeroKwok/testbox.git
cd testbox
# 构建镜像
make build
# 安装命令 (可选)
make install# 构建 Docker 镜像
docker build -f dockerfile -t testbox:latest .
# 安装脚本 (可选)
sudo cp testbox.sh /usr/local/bin/testbox
sudo chmod +x /usr/local/bin/testbox# 运行容器,挂载当前目录
testbox
# 运行容器,挂载指定目录
testbox /path/to/your/project
# 或者直接使用 Docker
docker run --rm -it --network host -v $(pwd):/testbox testbox:latest bash容器内预装了以下工具:
- 系统工具: bash, nano, tree, htop, git, wget, file, tar, unzip
- 网络工具: curl, dig, nmap, nc, ip, tcpdump, mtr, ssh, iperf3
- 开发工具: g++, make, cmake
- Python 包: requests, numpy, pandas, fastapi 等
make testmake uninstall欢迎提交 Issue 和 Pull Request!
- Fork 本仓库
- 创建特性分支 (
git checkout -b feature/AmazingFeature) - 提交更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 创建 Pull Request
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。
This project is licensed under the MIT License - see the LICENSE file for details.