Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] Docker Operations Abstraction #7

Open
san-ghun opened this issue Nov 20, 2024 · 0 comments
Open

[refactor] Docker Operations Abstraction #7

san-ghun opened this issue Nov 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@san-ghun
Copy link
Owner

The Docker operations could be better abstracted into a dedicated class:

class DockerManager:
    def __init__(self, workspace: str):
        self.workspace = workspace
        
    def ensure_container_running(self) -> bool:
        """Ensure the tiny42 container is running."""
        pass
        
    def execute_command(self, command: str) -> None:
        """Execute a command in the container."""
        pass
        
    def rebuild_container(self) -> None:
        """Rebuild the container from scratch."""
        pass
@san-ghun san-ghun added the enhancement New feature or request label Nov 20, 2024
@san-ghun san-ghun changed the title [feat] Docker Operations Abstraction [refactor] Docker Operations Abstraction Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant