Commit Graph

54 Commits

Author SHA1 Message Date
Marvin Zhang
99c6f42cf6 feat: update Python installation script and requirements
- Changed package manager command from 'apt-get' to 'apt' for improved usability.
- Added additional Python dependencies: 'libbz2-dev', 'libreadline-dev', 'libsqlite3-dev', 'xz-utils', and 'liblzma-dev' to enhance the environment setup.
- Updated 'crawlab-sdk' version in requirements.txt from '0.7.0rc1' to '0.7.0rc5' for compatibility and feature improvements.
2025-01-03 18:19:53 +08:00
Marvin Zhang
891619457c feat: enhance Docker base image installation scripts
- Added 'zip' and 'unzip' utilities to the dependency installation script for improved file handling capabilities.
- Updated usage instructions in the Python installation script to include a new 'setup' command for configuring pyenv, enhancing user experience and script functionality.
2024-12-31 15:05:55 +08:00
Marvin Zhang
3786ef3f6d refactor: streamline dependency installation in Docker base image
- Updated the dependencies in the Docker base image installation scripts by removing unnecessary packages and ensuring essential tools are included.
- Simplified the Python installation script by refining the list of required libraries, enhancing clarity and reducing potential installation issues.
- Modified the requirements.txt to include only necessary packages, improving the efficiency of the Python environment setup.
2024-12-31 11:02:08 +08:00
Marvin Zhang
fec616080e fix: update Python installation command to specify version 3.12 during installation
- Modified the Dockerfile to require Python version 3.12 explicitly during the installation process.
- This change ensures that the installation script adheres to the specified version, improving consistency and reliability in Docker environments.
2024-12-30 15:26:04 +08:00
Marvin Zhang
3438919068 fix: update Python installation script to require version specification
- Modified the Python installation script to remove the default version assignment and enforce version specification during installation.
- Updated usage instructions to reflect the change from a default version to requiring a user-defined version, improving clarity and preventing installation errors.
- This change enhances the robustness of the installation process by ensuring users explicitly define the Python version they wish to install.
2024-12-30 15:23:54 +08:00
Marvin Zhang
d4d771449d feat: add setup command to Python installation script
- Introduced a new "setup" command in the Python installation script to facilitate the setup of pyenv.
- This enhancement improves the usability of the script by allowing users to easily configure their Python environment.
2024-12-30 13:52:33 +08:00
Marvin Zhang
54800974eb feat: refactor system info retrieval and enhance logo output
- Replaced viper calls with utility functions in GetSystemInfo to improve code clarity and maintainability.
- Added a new system.go file with utility functions for retrieving system version and edition information.
- Enhanced PrintLogoWithWelcomeInfo to include detailed system information, improving user experience during server startup.
- Updated output formatting for better readability and consistency in welcome messages.
2024-12-29 19:01:23 +08:00
Marvin Zhang
a8bf1156c4 fix: update default Python version in installation script to 3.12.8
- Changed the default Python version in the Docker base image installation script from 3.12 to 3.12.8 to ensure the latest patch version is used.
- This update enhances the reliability and security of the Python installation process in Docker environments.
2024-12-25 18:14:39 +08:00
Marvin Zhang
17f8917d0a chore: update dependencies and enhance gRPC services
- Updated various dependencies in go.mod and go.sum files, including cloud.google.com/go/compute/metadata to v0.5.2, google.golang.org/grpc to v1.69.2, and google.golang.org/protobuf to v1.36.1.
- Refactored gRPC service definitions to use the latest protoc-gen-go and protoc versions, ensuring compatibility with the latest gRPC-Go features.
- Introduced a new logger utility in core/utils/logger.go to improve logging capabilities across the application.
- Added a README.md for gRPC setup and compilation guidance, enhancing developer experience.
- Improved the Python installation script to handle version listing more effectively and ensure user-specific environment setup.
2024-12-25 17:46:49 +08:00
Marvin Zhang
f03b346ba3 feat: enhance Python installation script with requirements handling and dependency updates
- Added jq to the dependencies in the Docker base image installation script.
- Updated the Python installation script to support handling of custom requirements via command-line arguments.
- Implemented a new function to manage requirements installation, falling back to a default requirements file if none is provided.
- Improved version check logic to prevent redundant installations of Python versions, enhancing efficiency in Docker environments.
2024-12-25 15:26:04 +08:00
Marvin Zhang
4144271a38 feat: enhance Python installation script with command handling and verification
- Refactored the Python installation script to support multiple commands: install, uninstall, switch, and list.
- Added functions for usage printing, dependency installation, pyenv setup, Python version verification, symlink creation, and cleanup.
- Improved error handling for version checks and command execution, enhancing usability and flexibility in Docker environments.
- Default Python version is set to 3.12, with the option to specify a different version during installation.
2024-12-25 15:01:58 +08:00
Marvin Zhang
c4c7d259c6 fix: update pyenv installation script to use user-specific environment file
- Changed the installation script for pyenv to create a user-specific environment file at $HOME/.pyenv-env.sh instead of a system-wide file in /etc/profile.d/.
- Updated the script to source the new environment file, ensuring that the pyenv setup is applied correctly for the user.
- This change improves the flexibility and usability of the pyenv installation in Docker environments.
2024-12-25 14:51:50 +08:00
Marvin Zhang
9db81932f6 fix: suppress nginx service start output in docker-init.sh
- Redirected the output of the nginx service start command to /dev/null to prevent cluttering the console with unnecessary messages during server startup.
- This change enhances the user experience by providing a cleaner output when initializing the Docker environment.
2024-12-25 14:24:23 +08:00
Marvin Zhang
67165f5e3f feat: add zip package installation to base image dependencies
- Updated the deps.sh script to include the 'zip' package in the list of installed dependencies for the Docker base image.
- This addition ensures that the zip utility is available for use in subsequent Docker image builds and applications.
2024-12-23 22:02:33 +08:00
Marvin Zhang
19b9135238 fix: ci issue 2024-12-17 19:39:26 +08:00
Marvin Zhang
e77d4cdd31 feat: updated dependency management 2024-12-17 19:32:16 +08:00
Marvin Zhang
c945e093d5 chore: updated deps 2024-12-16 22:28:13 +08:00
Marvin Zhang
fd1ecd11a7 ci: updated docker-init.sh 2024-11-24 18:09:00 +08:00
Marvin Zhang
5e0fd1a8d8 ci: updated dockerfile 2024-11-24 17:47:29 +08:00
Marvin Zhang
0912395837 ci: updated dockerfile 2024-11-24 11:35:21 +08:00
Marvin Zhang
3a49f48aaf ci: updated base-image 2024-11-24 11:22:31 +08:00
Marvin Zhang
af3749d913 ci: fix issues 2024-11-24 10:23:43 +08:00
Marvin Zhang
a3b395e8e8 ci: updated base-image 2024-11-24 10:08:48 +08:00
Marvin Zhang
f6a9964fbb ci: fix issue 2024-11-24 10:07:09 +08:00
Marvin Zhang
f9e7b16c11 ci: updated base-image 2024-11-24 09:34:35 +08:00
Marvin Zhang
b125ba340e ci: updated base-image 2024-11-23 10:51:46 +08:00
Marvin Zhang
534f66eabf ci: updated workflow 2024-11-22 20:51:56 +08:00
Marvin Zhang
cd2abe9547 ci: updated workflow 2024-11-22 20:44:26 +08:00
Marvin Zhang
c5e0ba8baa ci: updated base-image 2024-11-22 19:59:18 +08:00
Marvin Zhang
92f460424e ci: updated base-image 2024-11-22 18:06:09 +08:00
Marvin Zhang
2b3473dc48 chore: updated deps 2024-11-22 17:55:20 +08:00
Marvin Zhang
ecd156a101 ci: updated base-image 2024-11-22 14:28:08 +08:00
Marvin Zhang
53d3edd420 chore: added debug code 2024-11-22 10:48:32 +08:00
Marvin Zhang
76c6a482d9 ci: updated base-image 2024-11-22 10:34:11 +08:00
Marvin Zhang
5f0ffa39ef fix: ci issue for base-image 2024-11-22 09:41:24 +08:00
Marvin Zhang
d50383d47a feat: added ipc to task runner 2024-11-21 18:24:29 +08:00
Marvin Zhang
1c618bd152 ci: optimized base-image size 2024-11-20 15:17:03 +08:00
Marvin Zhang
a781d12954 ci: updated base-image 2024-11-20 15:07:15 +08:00
Marvin Zhang
d407cc06af ci: updated base-image 2024-11-20 15:05:23 +08:00
Marvin Zhang
db4dce33a4 ci: updated base-image 2024-11-20 15:04:25 +08:00
Marvin Zhang
46100ebaf5 ci: updated base-image 2024-11-20 14:55:42 +08:00
Marvin Zhang
6babe327b4 ci: updated base-image 2024-11-20 14:42:15 +08:00
Marvin Zhang
874f02a9fe ci: updated dockerfile 2024-11-20 14:34:45 +08:00
Marvin Zhang
2203be98c3 ci: updated base-image 2024-11-20 14:24:53 +08:00
Marvin Zhang
1e2cad899d ci: updated dockerfiles 2024-11-20 14:21:05 +08:00
Marvin Zhang
a3b286558b refactor: consolidated configs 2024-11-18 16:48:09 +08:00
Marvin Zhang
82e078076c refactor: cleanup code 2024-10-25 11:18:57 +08:00
marvzhang
2af88a99ac code cleanup 2020-03-04 11:32:29 +08:00
yaziming
5e2b3ca228 Revert "Revert "V0.4.0 imporve error response""
This reverts commit acccdb65bd.
2019-09-04 20:41:37 +08:00
Marvin Zhang
acccdb65bd Revert "V0.4.0 imporve error response" 2019-09-03 15:24:26 +08:00