Skip to content

Commit ac663ec

Browse files
committed
🩹 Store deployed components in /opt/dagos/components
Before components deployed to a container were stored under /root/.dagos/components. This affected our BDD test suite which then picked up on these components. This change is also a step towards enabling multi user installations by putting common components to this place and installing them for all users provisioned during environment deployment. Relates to #28
1 parent 96e791f commit ac663ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dagos/commands/env/deploy.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _deploy_to_container(
103103
)
104104

105105
# Copy software components to container
106-
component_dir = Path("/root/.dagos/components")
106+
component_dir = Path("/opt/dagos/components")
107107
for component in components:
108108
buildah.copy(
109109
container,
@@ -116,9 +116,6 @@ def install_component(component: SoftwareComponent):
116116
_bootstrap_container(container)
117117
# TODO: Use the same verbosity as the CLI was initially called with
118118
command_runner.run(f"dagos install {component.name}")
119-
# TODO: The components are removed to ensure dagos CLI tests use the correct components
120-
# Users may want to keep the copied components on the containers?
121-
command_runner.run(f"rm -rf {component_dir / component.folders[0].name}")
122119

123120
_install_packages_and_components(
124121
command_runner,

0 commit comments

Comments
 (0)