devs-common 2.0.9__tar.gz → 2.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devs_common-2.0.9 → devs_common-2.0.10}/PKG-INFO +1 -1
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/container.py +8 -8
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/PKG-INFO +1 -1
- {devs_common-2.0.9 → devs_common-2.0.10}/pyproject.toml +1 -1
- {devs_common-2.0.9 → devs_common-2.0.10}/LICENSE +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/README.md +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/__init__.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/config.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/__init__.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/project.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/workspace.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/devs_config.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/exceptions.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/Dockerfile +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/devcontainer.json +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/copy-ssh.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/post-create-wrapper.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/python-venv-integration.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/screenshot-webapp.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/setup-workspace.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/start-tunnel.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/tunnel-status.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/webapp-screenshot.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/init-firewall.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/setup-devs-env.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/start-services.sh +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/vscode-settings-reference.md +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/__init__.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/config_hash.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/console.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/devcontainer.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/devcontainer_template.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/docker_client.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/file_utils.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/git_utils.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/repo_cache.py +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/SOURCES.txt +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/dependency_links.txt +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/requires.txt +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/top_level.txt +0 -0
- {devs_common-2.0.9 → devs_common-2.0.10}/setup.cfg +0 -0
|
@@ -588,24 +588,24 @@ class ContainerManager:
|
|
|
588
588
|
|
|
589
589
|
def _prepare_container_exec(self, dev_name: str, workspace_dir: Path, debug: bool = False, live: bool = False, extra_env: Optional[Dict[str, str]] = None) -> Tuple[str, str]:
|
|
590
590
|
"""Prepare container for exec operations (shared by exec_shell and exec_command).
|
|
591
|
-
|
|
591
|
+
|
|
592
592
|
Args:
|
|
593
593
|
dev_name: Development environment name
|
|
594
594
|
workspace_dir: Workspace directory path
|
|
595
595
|
debug: Show debug output for devcontainer operations
|
|
596
596
|
live: Whether the container is in live mode
|
|
597
597
|
extra_env: Additional environment variables to pass to container
|
|
598
|
-
|
|
598
|
+
|
|
599
599
|
Returns:
|
|
600
600
|
Tuple of (container_name, container_workspace_dir)
|
|
601
|
-
|
|
601
|
+
|
|
602
602
|
Raises:
|
|
603
603
|
ContainerError: If container preparation fails
|
|
604
604
|
"""
|
|
605
605
|
# Get initial container info (may be updated based on existing container mode)
|
|
606
606
|
workspace_info = self._get_container_info(dev_name, live)
|
|
607
607
|
container_name = workspace_info["container_name"]
|
|
608
|
-
|
|
608
|
+
|
|
609
609
|
# Check if container already exists and detect its mode
|
|
610
610
|
project_labels = self._get_project_labels(dev_name)
|
|
611
611
|
existing_containers = self.docker.find_containers_by_labels(project_labels)
|
|
@@ -615,18 +615,18 @@ class ContainerManager:
|
|
|
615
615
|
existing_is_live = existing_labels.get('devs.live') == 'true'
|
|
616
616
|
# Use the existing container's mode
|
|
617
617
|
live = existing_is_live
|
|
618
|
-
|
|
618
|
+
|
|
619
619
|
# In live mode, use the host folder name; otherwise use constructed name
|
|
620
620
|
if live:
|
|
621
621
|
workspace_name = workspace_dir.name
|
|
622
622
|
else:
|
|
623
623
|
workspace_name = workspace_info["workspace_name"]
|
|
624
624
|
container_workspace_dir = f"/workspaces/{workspace_name}"
|
|
625
|
-
|
|
625
|
+
|
|
626
626
|
# Ensure container is running
|
|
627
627
|
if not self.ensure_container_running(dev_name, workspace_dir, debug=debug, live=live, extra_env=extra_env):
|
|
628
628
|
raise ContainerError(f"Failed to start container for {dev_name}")
|
|
629
|
-
|
|
629
|
+
|
|
630
630
|
return container_name, container_workspace_dir
|
|
631
631
|
|
|
632
632
|
def exec_shell(self, dev_name: str, workspace_dir: Path, debug: bool = False, live: bool = False) -> None:
|
|
@@ -646,7 +646,7 @@ class ContainerManager:
|
|
|
646
646
|
container_name, container_workspace_dir = self._prepare_container_exec(
|
|
647
647
|
dev_name, workspace_dir, debug=debug, live=live
|
|
648
648
|
)
|
|
649
|
-
|
|
649
|
+
|
|
650
650
|
console.print(f"🐚 Opening shell in: {dev_name} (container: {container_name})")
|
|
651
651
|
console.print(f" Workspace: {container_workspace_dir}")
|
|
652
652
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/post-create-wrapper.sh
RENAMED
|
File without changes
|
{devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/python-venv-integration.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/init-firewall.sh
RENAMED
|
File without changes
|
{devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/setup-devs-env.sh
RENAMED
|
File without changes
|
{devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh
RENAMED
|
File without changes
|
{devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/start-services.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|