Commit Graph

773 Commits

Author SHA1 Message Date
zeaslity
5c39bd7594 Enhance Docker Installation and Management Commands
- Improved Docker installation process for Ubuntu systems
- Added support for dynamic Docker version detection
- Enhanced Docker local and online installation commands
- Implemented more robust Docker removal functionality
- Updated Docker installation to use system-specific package sources
- Added better error handling and logging for Docker operations
- Refined Docker service startup and configuration checks
2025-02-28 17:45:12 +08:00
zeaslity
bffb643a56 [agent-wdd] 小修改 2025-02-28 11:34:57 +08:00
zeaslity
b28c6462f1 Enhance Network Interface Detection and Configuration Management
- Implemented robust network interface detection with `GetInterfaces()` function
- Added validation for network interface names using regex patterns
- Updated `Network` struct to improve YAML tag formatting
- Modified `Gather()` and `SaveConfig()` methods to streamline network configuration
- Removed redundant `SaveConfig()` calls in various methods
- Added comprehensive network interface name validation logic
2025-02-28 11:19:29 +08:00
zeaslity
c10554c218 [agent-wdd] 小小新增部分内容 2025-02-27 17:19:36 +08:00
zeaslity
b6cc5abc63 Refactor Disk and Memory Size Formatting with Centralized Utility Function
- Extracted common size formatting logic to a new utility function `HumanSize` in utils package
- Removed duplicate size formatting code from Disk and Memory configurations
- Updated Disk and Memory modules to use the centralized size formatting utility
- Uncommented and implemented disk usage calculation in Disk configuration
- Improved code readability and maintainability by centralizing size conversion logic
2025-02-27 15:15:55 +08:00
zeaslity
8fc55e2e28 Enhance Download Functionality with Proxy and Progress Tracking
- Implemented advanced download utility with proxy support for SOCKS5 and HTTP protocols
- Added progress tracking with human-readable file size and download percentage
- Updated go.mod and go.sum to include new dependencies for proxy and networking
- Created flexible proxy client generation for different proxy types
- Improved error handling and logging in download process
2025-02-27 15:06:40 +08:00
zeaslity
6de29630b5 123 2025-02-27 14:52:57 +08:00
zeaslity
3ad2533550 Enhance Help Command with Recursive Command Listing
- Replaced default help function with a custom implementation
- Added `printAllCommands` function to recursively list available commands
- Improved command help display with indentation and description
- Supports nested command hierarchy visualization
2025-02-27 14:42:34 +08:00
zeaslity
7a703dccc4 Add Help Command to Agent WDD CLI
- Implemented a new 'help' command in the root command
- Configured the help command to use the default usage template
- Integrated the help command into the root command's available subcommands
2025-02-27 14:26:07 +08:00
zeaslity
72bc56b5e5 Enhance Zsh and Config Commands, Update Network Configuration
- Implemented comprehensive Zsh installation command with multiple network scenarios
- Added 'config show' subcommand to display agent configuration
- Updated version command to print version information
- Modified Network configuration to clarify internet connectivity status
- Improved download utility with additional file existence checks
- Updated agent-wdd rules and documentation
2025-02-27 14:20:05 +08:00
zeaslity
16c041e3eb Add base system configuration commands for agent-wdd
- Implemented new base commands for system configuration:
  * swap: Disable system swap
  * selinux: Disable SELinux
  * firewall: Stop and disable firewalld and ufw
  * sysconfig: Modify system sysctl configuration
  * ssh: Add SSH-related subcommands (key, port, config)

- Updated Config.go to initialize ConfigCache with default values
- Added new utility functions in FileUtils.go for file content manipulation
- Extended Excutor.go with HardCodeCommandExecutor method
2025-02-27 10:57:58 +08:00
zeaslity
e8f0e0d4a9 123 2025-02-26 17:49:03 +08:00
zeaslity
c751c21871 大量的更新 2025-02-26 17:44:03 +08:00
zeaslity
b8170e00d4 愉快的使用cursor 2025-02-26 09:25:24 +08:00
zeaslity
60a1849207 新增cursor的配置 2025-02-25 17:01:14 +08:00
zeaslity
5a8aa53d64 新增大量内容 2025-02-25 16:58:47 +08:00
zeaslity
ce0395ae66 [agent-wdd] 完成Excecutor和Operator部分,完成base tools部分 2025-02-14 17:17:55 +08:00
zeaslity
dabf63f10f [agent-wdd] 基本完成Info部分的整理 2025-02-13 15:29:26 +08:00
zeaslity
e826b55240 [agent-wdd] 完成自定义log部分;完成info network部分; 项目结构基本完成 2025-02-11 17:27:41 +08:00
zeaslity
66dca6a080 Merge remote-tracking branch 'origin/local-ss' into local-ss 2025-02-10 15:09:24 +08:00
zeaslity
1f6dcc3ef0 小更新 2025-02-10 15:09:19 +08:00
zeaslity
46fd5f7d97 小更新 2025-02-10 15:09:14 +08:00
zeaslity
b8f0b14852 [agent][wdd] - 初始化项目 2025-02-10 15:07:44 +08:00
zeaslity
a0811d62e7 [agent-wdd]-重构agent的bastion模式 2025-02-10 11:15:35 +08:00
zeaslity
5ca5689083 Merge remote-tracking branch 'origin/local-ss' into local-ss 2025-02-10 09:16:26 +08:00
zeaslity
5bfcb98e03 [agent][deploy] - DEMO项目 2025-02-10 09:16:20 +08:00
zeaslity
0d3bb30eed [agent-go]-简化Agent 剔除Harbor K8s Image相关的内容 2025-01-22 15:09:43 +08:00
zeaslity
4edaf9f35a [agent][deploy] - 辽宁应急项目 2025-01-10 15:21:23 +08:00
zeaslity
4135195430 [agent][deploy] - 辽宁应急生成 2025-01-10 14:52:16 +08:00
zeaslity
9f4631af91 [agent-deploy]-新增辽宁应急厅 2025-01-10 14:49:18 +08:00
zeaslity
af3e058af4 [agent][deploy] - a lot 2024-12-18 17:40:33 +08:00
zeaslity
fa0e4a0734 [agent-deploy]-甘肃项目 2024-12-06 17:38:33 +08:00
zeaslity
5a3c53969c [agent-deploy]-甘肃项目 2024-12-06 17:37:59 +08:00
zeaslity
8f5f85826c [agent-operator]-无聊的更新内容 2024-12-02 18:04:13 +08:00
zeaslity
88cb1e1bb1 [agent][deploy] - iot part 2024-11-22 16:37:17 +08:00
zeaslity
07cf7a12b7 修改bastion的bug 2024-11-17 11:50:16 +08:00
zeaslity
4b1712b67f Merge branch 'main' into local-ss 2024-11-17 11:49:00 +08:00
zeaslity
9b026a2ec7 Merge branch 'main' of https://gitea.107421.xyz/zeaslity/ProjectOctopus into main 2024-11-17 11:46:28 +08:00
zeaslity
724ef6424c 【agent-go】- 修改文件打开指令 2024-11-17 11:46:19 +08:00
zeaslity
332cc1d9eb [deploy]- bug fix for devflight 2024-11-12 11:38:50 +08:00
zeaslity
bf45eeb735 Merge branch 'main' into local-ss
# Conflicts:
#	agent-common/real_project/CmiiImageListConfig.go
#	agent-operator/CmiiK8sOperator_test.go
#	agent-operator/ImageSyncOperator_test.go
2024-11-11 17:23:56 +08:00
zeaslity
f901992d92 [deploy]-适配新电脑 2024-11-11 17:22:30 +08:00
zeaslity
98b0e14304 [Deploy]-新增资阳GA 2024-11-04 10:21:19 +08:00
zeaslity
82bdcca604 增加Makefile的模式 2024-10-30 16:34:55 +08:00
zeaslity
d5cbaded65 [agent][deploy] - iot part 2024-10-22 17:17:39 +08:00
zeaslity
327d12f789 [agent][deploy] - jxejpt;; fix srs part 2024-09-27 14:34:09 +08:00
zeaslity
d8f01f9b99 Merge branch 'refs/heads/local-ss'
Some checks failed
Octopus Complete CI / build-and-deploy (push) Has been cancelled
2024-09-23 17:08:13 +08:00
zeaslity
25ce18638b [agent][deploy] - jxyd 2024-09-23 17:07:50 +08:00
zeaslity
5ab49bc06c Merge branch 'refs/heads/local-ss' 2024-09-23 16:35:32 +08:00
zeaslity
5b866d5ce4 [agent][deploy] - a 2024-09-23 16:34:37 +08:00