Suma 5.02: Image building with gitlab

Hello,
I am on SuSE Manager 5.0.2 Server on a vm no. srv181.
Also installed a current gitlab 17.8 ce on another vm srv184.
And installed sles 15 sp6 as build host for SuSE Manager on vm srv183.

On vm no. 3 i have successfully configured docker, to build via Dockerfile a working container. That image i have tagged and pushed to the gitlab docker registry:

docker tag my-apache2 srv184.linux.lab:5050/suma/suma_repository/my-apache2
docker push srv184.linux.lab:5050/suma/suma_repository/my-apache2

srv183:~/http_dockerfile # docker images
REPOSITORY                                              TAG       IMAGE ID       CREATED          SIZE
my-apache2                                              latest    59290484845d   41 minutes ago   148MB
srv184.linux.lab:5050/suma/suma_repository/my-apache2   latest    59290484845d   41 minutes ago   148MB
httpd                                                   2.4       4d98e80840bb   2 weeks ago      148MB

So far the environment underneath. Now configured the SuSE Manager Image Section:

And here the “Dockerfile”:

FROM httpd:2.4
----------
          ID: mgr_registries_login
    Function: mgrcompat.run
        Name: docker.login
      Result: true
     Comment: Module function docker.login executed
     Started: 14:44:03.129290
    Duration: 222.647
         SLS: images.docker
     Changed: ret:
                  retcode: 0.0
                  Errors: [
                      ]
                  Results:
                      srv184.linux.lab:5050/suma/suma_repository: true
              
----------
          ID: mgr_buildimage
    Function: mgrcompat.run
        Name: docker.build
      Result: false
     Comment: Module function docker.build threw an exception. Exception: invalid tag 'srv184.linux.lab:5050/suma/suma_repository/apache:latest': invalid reference format
     Started: 14:44:03.352298
    Duration: 4.048
         SLS: images.docker
     Changed: {}
----------

But the build failed, and I do not know why it fails.
Please give me support in solving it. Thank you.

Best regards
Stefan

Wow, no one, who has ever used that feature (container building) of suma and can give me instructions for using it? Even no SuSE employer here in it to support? :roll_eyes:

@StefanS1 Hi, then it’s probably better for you to create a support request on your issue.

@malcolmlewis I am in a test period of suma, in order get a clue, what is functioning and what not. And the problem is so far, that test users are not able to get support via tickets…

@StefanS1 Well I’m not a Suma or docker user, but looking at this link you use the ID tag https://docs.docker.com/reference/cli/docker/image/tag/ not the URL?

@malcolmlewis When building, tagging and pushing via command line of the suma build host, all is fine.
I do not have a clue, in which fields of the image store or the build config the misconfiguration lies in.
I assume a lacking documentation of that feature, for example no screenshots of working configs are shown.

→ informing you, that the SuSE support worked out the problem and developed a TEST fix, that is working.

1 Like