Skip to content

Commit

Permalink
fixing typos and need to annex add container explicitly first
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Aug 13, 2021
1 parent 96f29c0 commit 4e08c8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/create_singularities
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ function add_singularity_versioned_image() {
# unfortunately 2.6 version tries to connect to docker service and fails, thus can't fetch anything
sudo --preserve-env=TMPDIR,SINGULARITY_TMPDIR singularity build "$imagefile.tmp" "$singfile"
# abuse BTRFS CoW to avoid sudo/docker to chown
cp --reflink=auto "$imagefile.tmp" "$imagefile" && rm -f "$imageile.tmp"
cp --reflink=auto "$imagefile.tmp" "$imagefile" && rm -f "$imagefile.tmp"
git annex add "$imagefile"
datalad containers-add "$familyname" \
-i "$imagefile" \
--update \
--call-fmt '{img_dspath}/scripts/singularity_cmd run {img} {cmd}'
datalad publish # so we share with the world
datalad publish # so we share with the world
# TODO: later make it work with updating existing one. We will not be able to use
# containers-add --update since original URL is version specific. That is why it
# also does not make much sense to create a image file without version. We better
Expand Down

0 comments on commit 4e08c8c

Please sign in to comment.