-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change docker compose using docker api sdk (#72)
Closes: WORLD-1173 ## Overview Changing docker compose command to docker api sdk for golang. ## Brief Changelog - Create `Start, Stop, Restart, Purge` func in common package `docker` - Modify all docker usage using new func ## Testing and Verifying - Added new unit test for `docker` common package - Some function still covered by existing unit test - Manually tested using world cardinal start, stop, restart, and purge <!-- ELLIPSIS_HIDDEN --> ---- | 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit e4ae56e | |--------|--------| ### Summary: Replaced Docker Compose with Docker API SDK in Go, adding new management functions, updating commands, and improving testing, error handling, and service management. **Key points**: - Closes: WORLD-1173 - Replaced Docker Compose with Docker API SDK in Go. - Added `Start`, `Stop`, `Restart`, `Purge` functions in `common/docker`. - Updated `cmd/world/cardinal` commands to use new Docker functions. - Added unit tests for `common/docker` package. - Manual testing for start, stop, restart, and purge commands. - Improved Docker service management and dynamic database password generation. - Enhanced configuration handling and error handling during service startup. - Added support for BuildKit in configuration management. - Enhanced error handling in the lint installation script. - Comprehensive service management for Redis, Nakama, Celestia, and EVM within Docker. - Improved error visibility and handling in logging functionality. - Updated command descriptions for ongoing development status. ---- Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev) ---- <!-- ELLIPSIS_HIDDEN --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved Docker service management with a new `docker` package for starting, stopping, restarting, and purging services. - Dynamic database password generation during service startup for enhanced security. - Enhanced configuration handling for Docker commands, allowing for more tailored operations. - Added support for BuildKit in configuration management. - Introduced comprehensive service management for Redis, Nakama, Celestia, and EVM within the Docker environment. - Enhanced logging functionality with a new public `VerboseMode` variable for better management of logging levels. - Implemented a spinner component for terminal applications to provide real-time feedback during long-running operations. - **Bug Fixes** - Enhanced error handling during service startup and configuration retrieval. - Improved error visibility and handling in the logging functionality. - **Documentation** - Updated command descriptions to reflect ongoing development status, particularly for the login feature. - **Tests** - Introduced comprehensive unit tests for Docker container operations to ensure reliability and correctness. - **Chores** - Enhanced error handling in the lint installation script for better stability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
31 changed files
with
2,079 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.