Singularity remote gitlab repo

3 views
Skip to first unread message

Joseph Manel Andres Moscardo

unread,
Nov 16, 2021, 10:26:10 AM11/16/21
to singularity
Hi,
I am trying to store singularity images into a gitlab registry and if I run it from the CI/CD pipeline it works fine:

deploy:
  stage: pushImage
  script:
    - echo $CI_COMMIT_SHORT_SHA
    - singularity push --docker-username gitlab-ci-token --docker-password $CI_JOB_TOKEN container.sif oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":"$CI_COMMIT_SHORT_SHA"

But when I try to do it manually from my workstation it just hangs with FUTEX_WAIT

[root@moscardo sin]# singularity push --docker-username jsmith --docker-password xxxxxxx  container.sif oras://git.domain.de:4567/grp-itservices/singularity-reg
INFO:    No tag or digest found, using default: latest

 
I have also tried to configure a remote with authentication token pulled from Gitlab , but it gives me :

[root@moscardo sin]# singularity remote  add embl https://git.domain.de:4567
INFO:    Remote "repo" added.
Generate an access token at https://git.domain.de:4567/auth/tokens, and paste it here.
Token entered will be hidden for security.
Access Token:
FATAL:   while verifying token: error response from server: %!s(<nil>)


Dave Dykstra

unread,
Nov 16, 2021, 3:59:52 PM11/16/21
to Joseph Manel Andres Moscardo, singularity
Joseph,

You don't say what singularity version you are using are host operating
system, but can you try it with the newly released 3.8.4? It includes
a fix for oras: URLs. It is available in epel-testing and fedora testing
if you are using a Red Hat-based O.S, otherwise compile it from source.

Dave

On Tue, Nov 16, 2021 at 07:26:09AM -0800, Joseph Manel Andres Moscardo wrote:
> Hi,
> I am trying to store singularity images into a gitlab registry and if I run
> it from the CI/CD pipeline it works fine:
>
> deploy:
> stage: pushImage
> script:
> - echo $CI_COMMIT_SHORT_SHA
> - singularity push --docker-username gitlab-ci-token --docker-password
> $CI_JOB_TOKEN container.sif
> oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":"$CI_COMMIT_SHORT_SHA"
>
> But when I try to do it manually from my workstation it just hangs with
> *FUTEX_WAIT*
>
>
> *[root@moscardo sin]# singularity push --docker-username jsmith
> --docker-password xxxxxxx container.sif
> oras://git.domain.de:4567/grp-itservices/singularity-regINFO: No tag or
> digest found, using default: latest*
>
> I have also tried to configure a remote with authentication token pulled
> from *Gitlab* , but it gives me :
>
>
>
>
>
>
> *[root@moscardo sin]# singularity remote add embl
> https://git.domain.de:4567 INFO: Remote "repo" added.Generate an access
> token at https://git.domain.de:4567/auth/tokens , and paste it here.Token
> entered will be hidden for security.Access Token: FATAL: while verifying
> token: error response from server: %!s(<nil>)*
Reply all
Reply to author
Forward
0 new messages