Skip to content

Commit

Permalink
container dir should have module name
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jul 6, 2023
1 parent 0f271ae commit 2226cc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion shpc/main/container/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def _add_local_image(

else:
# Destination for container in registry
dest_dir = self.settings.container_base or os.path.dirname(container_yaml)
container_dir = self.container_dir(name)
dest_dir = container_dir or os.path.dirname(container_yaml)

# The destination container in the registry folder
container_name = "%s.sif" % container_digest
Expand Down
3 changes: 2 additions & 1 deletion shpc/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ container_tech: singularity
# Registry Recipes (order of GitHub providers or paths here is honored for search path))
# To reference a path in the $PWD of the shpc install use $root_dir (e.g., $root_dir/registry)
# Please preserve the flat list format for the yaml loader
registry: [https://github.com/singularityhub/shpc-registry]
registry: [/home/vanessa/Desktop/Code/shpc-registry]

# Registry to sync from (only to a filesystem registry supported)
sync_registry: https://github.com/singularityhub/shpc-registry
Expand Down Expand Up @@ -106,3 +106,4 @@ container_features:
# defaults to ~/.Xauthority if set to true and the container has x11: true
home: # one of null, or a single path or src:dest path.
# home: true in a container.yaml will use this path, if defines
updated_at: '2023-07-03T18:11:46Z'

0 comments on commit 2226cc0

Please sign in to comment.