Skip to content

Commit

Permalink
🩹 Store deployed components in /opt/dagos/components
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MLNW committed Jun 11, 2022
1 parent 96e791f commit ac663ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/dagos/commands/env/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _deploy_to_container(
)

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

_install_packages_and_components(
command_runner,
Expand Down

0 comments on commit ac663ec

Please sign in to comment.