Skip to content

GitLab client: specify artifact name? (.simg vs .sif) #258

@MarkusLohmayer

Description

@MarkusLohmayer

First of all, thanks for developing this tool!

I have used https://gitlab.com/singularityhub/gitlab-ci to build a Singularity image based on a Def file in a repo.

Now I would like to use this tool to pull the image.

sregistry search ltd/some-repo
[client|gitlab] [database|sqlite:////home/ltd-admin/.singularity/sregistry.db]
Artifact Browsers (you will need path and job id for pull)
1  job_id       browser
2  96   https://git.ltd.uni-erlangen.de/ltd/some-repo/-/jobs/96/artifacts/browse/build

So I want to pull the image of job 96:

sregistry pull 96,ltd/singularity
[client|gitlab] [database|sqlite:////home/ltd-admin/.singularity/sregistry.db]
Looking for artifact build/Singularity.simg for job name build, 96
https://git.ltd.uni-erlangen.de/ltd/some-repo/-/jobs/96/artifacts/raw/build/Singularity.simg/?inline=false
ERROR Invalid url or permissions https://git.ltd.uni-erlangen.de/ltd/singularity/-/jobs/96/artifacts/raw/build/Singularity.simg/?inline=false
ERROR Cannot find /home/ltd-admin/.singularity/shub/ltd/singularity/latest.sif

I think this doesn't work because the file is called Singularity.sif and not Singularity.simg.
So in some sense, I see a mismatch between this project and the template.
Since the file ending .sif seems to be standard, I would think that this tool should expect images to be called Singularity.sif.

Further, I would like to know if there is any way to specify the artifact name when pulling the image
or is it the case that Singularity must be its name for the tool to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions