docker-containers icon indicating copy to clipboard operation
docker-containers copied to clipboard

Unable to create a container on docker via cloned repository

Open louistwiice opened this issue 2 years ago • 0 comments

Hi Everyone.

I am trying to user openSUSE image for ma docker registry frontend. Those are my following steps:

  1. I have cloned the repo with git clone https://github.com/SUSE/Portus
  2. I have run sudo chmod 777 .
  3. then docker-compose up

I am on the master, and I have received the following error during the step 3

Pulling webpack (kkarczmarczyk/node-yarn:latest)...
latest: Pulling from kkarczmarczyk/node-yarn
f2b6b4884fc8: Pull complete
4fb899b4df21: Pull complete
74eaa8be7221: Pull complete
2d6e98fe4040: Pull complete
452c06dec5fa: Pull complete
7b3c215894de: Pull complete
a5063278fd4d: Pull complete
685e0be9c67c: Pull complete
e28d2d0ed0f3: Pull complete
42c423ae43e5: Pull complete
Digest: sha256:ebaee68e82fec5e5924949b5c8700c6eb4b2ec9954269dc08fdb8ded9629542e
Status: Downloaded newer image for kkarczmarczyk/node-yarn:latest
Building portus
[+] Building 75.3s (8/9)                                                                                                                               
 => [internal] load build definition from Dockerfile                                                                                              0.0s
 => => transferring dockerfile: 1.88kB                                                                                                            0.0s
 => [internal] load .dockerignore                                                                                                                 0.0s
 => => transferring context: 122B                                                                                                                 0.0s
 => [internal] load metadata for docker.io/opensuse/ruby:2.6                                                                                      2.3s
 => [1/5] FROM docker.io/opensuse/ruby:2.6@sha256:a442b46c8be4aeec39bbb93a2cea2273f8eb0832707d64834b89edf6e175e66f                                0.0s
 => [internal] load build context                                                                                                                 0.2s
 => => transferring context: 3.42MB                                                                                                               0.2s
 => CACHED [2/5] WORKDIR /srv/Portus                                                                                                              0.0s
 => [3/5] COPY Gemfile* ./                                                                                                                        0.1s
 => ERROR [4/5] RUN zypper addrepo https://download.opensuse.org/repositories/devel:languages:go/openSUSE_Leap_15.0/devel:languages:go.repo &&   72.6s
------                                                                                                                                                 
 > [4/5] RUN zypper addrepo https://download.opensuse.org/repositories/devel:languages:go/openSUSE_Leap_15.0/devel:languages:go.repo &&     zypper addrepo https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/ devel:tools &&     zypper --gpg-auto-import-keys ref &&     zypper -n in --no-recommends ruby2.6-devel            libmariadb-devel postgresql-devel            nodejs libxml2-devel libxslt1 git-core            go1.10 phantomjs gcc-c++ &&     zypper -n in --no-recommends -t pattern devel_basis &&     gem install bundler --no-document -v 1.17.3 &&     update-alternatives --install /usr/bin/bundle bundle /usr/bin/bundle.ruby2.6 3 &&     update-alternatives --install /usr/bin/bundler bundler /usr/bin/bundler.ruby2.6 3 &&     bundle install --retry=3 &&     go get -u github.com/vbatts/git-validation &&     go get -u github.com/openSUSE/portusctl &&     mv /root/go/bin/git-validation /usr/local/bin/ &&     mv /root/go/bin/portusctl /usr/local/bin/ &&     zypper -n rm wicked wicked-service autoconf automake            binutils bison cpp flex gdbm-devel gettext-tools            libtool m4 make makeinfo &&     zypper clean -a:
#8 2.329 Adding repository 'The Go Programming Language (openSUSE_Leap_15.0)' [......done]
#8 2.333 Repository 'The Go Programming Language (openSUSE_Leap_15.0)' successfully added
#8 2.333 
#8 2.333 URI         : https://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Leap_15.0/
#8 2.333 Enabled     : Yes                                                                                
#8 2.333 GPG Check   : Yes                                                                                
#8 2.333 Autorefresh : No                                                                                 
#8 2.333 Priority    : 99 (default priority)                                                              
#8 2.333 
#8 2.333 Repository priorities are without effect. All enabled repositories share the same priority.
#8 3.627 Adding repository 'devel:tools' [......done]
#8 3.629 Repository 'devel:tools' successfully added
#8 3.629 
#8 3.629 URI         : https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/
#8 3.629 Enabled     : Yes                                                                        
#8 3.629 GPG Check   : Yes                                                                        
#8 3.629 Autorefresh : No                                                                         
#8 3.629 Priority    : 99 (default priority)                                                      
#8 3.629 
#8 3.629 Repository priorities are without effect. All enabled repositories share the same priority.
#8 4.697 Retrieving repository 'devel:tools' metadata [.error]
#8 5.393 Repository 'devel:tools' is invalid.
#8 5.393 [devel:tools|https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/] Valid metadata not found at specified URL
#8 5.393 Please check if the URIs defined for this repository are pointing to a valid repository.
#8 5.393 Skipping repository 'devel:tools' because of the above error.
#8 5.394 Retrieving repository 'The Go Programming Language (openSUSE_Leap_15.0)' metadata [..
#8 8.883 
#8 8.883 Automatically importing the following key:
#8 8.883 
#8 8.883   Repository:       The Go Programming Language (openSUSE_Leap_15.0)                      
#8 8.883   Key Name:         devel:languages:go OBS Project <devel:languages:[email protected]>
#8 8.883   Key Fingerprint:  B619E7E2 4D0ED061 FA14343C AF4CFE4D 307D7BF9                          
#8 8.883   Key Created:      Tue May 18 21:08:33 2021                                              
#8 8.883   Key Expires:      Thu Jul 27 21:08:33 2023                                              
#8 8.883   Rpm Name:         gpg-pubkey-307d7bf9-60a42cd1                                          
#8 8.883 
#8 8.883 
#8 9.461 ..done]
#8 10.73 Building repository 'The Go Programming Language (openSUSE_Leap_15.0)' cache [....done]
#8 10.96 Retrieving repository 'openSUSE-Leap-15.0-Non-Oss' metadata [...done]
#8 13.79 Building repository 'openSUSE-Leap-15.0-Non-Oss' cache [....done]
#8 14.00 Retrieving repository 'openSUSE-Leap-15.0-Oss' metadata [..........done]
#8 23.91 Building repository 'openSUSE-Leap-15.0-Oss' cache [....done]
#8 26.55 Retrieving repository 'openSUSE-Leap-15.0-Update' metadata [.....................................done]
#8 64.45 Building repository 'openSUSE-Leap-15.0-Update' cache [....done]
#8 68.73 Retrieving repository 'openSUSE-Leap-15.0-Update-Non-Oss' metadata [..done]
#8 71.69 Building repository 'openSUSE-Leap-15.0-Update-Non-Oss' cache [....done]
#8 71.91 Retrieving repository 'ruby' metadata [.error]
#8 72.60 Repository 'ruby' is invalid.
#8 72.60 [ruby|https://download.opensuse.org/repositories/devel:/languages:/ruby/openSUSE_Leap_15.0] Valid metadata not found at specified URL
#8 72.60 Please check if the URIs defined for this repository are pointing to a valid repository.
#8 72.60 Skipping repository 'ruby' because of the above error.
#8 72.60 Some of the repositories have not been refreshed because of an error.
------
executor failed running [/bin/sh -c zypper addrepo https://download.opensuse.org/repositories/devel:languages:go/openSUSE_Leap_15.0/devel:languages:go.repo &&     zypper addrepo https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/ devel:tools &&     zypper --gpg-auto-import-keys ref &&     zypper -n in --no-recommends ruby2.6-devel            libmariadb-devel postgresql-devel            nodejs libxml2-devel libxslt1 git-core            go1.10 phantomjs gcc-c++ &&     zypper -n in --no-recommends -t pattern devel_basis &&     gem install bundler --no-document -v 1.17.3 &&     update-alternatives --install /usr/bin/bundle bundle /usr/bin/bundle.ruby2.6 3 &&     update-alternatives --install /usr/bin/bundler bundler /usr/bin/bundler.ruby2.6 3 &&     bundle install --retry=3 &&     go get -u github.com/vbatts/git-validation &&     go get -u github.com/openSUSE/portusctl &&     mv /root/go/bin/git-validation /usr/local/bin/ &&     mv /root/go/bin/portusctl /usr/local/bin/ &&     zypper -n rm wicked wicked-service autoconf automake            binutils bison cpp flex gdbm-devel gettext-tools            libtool m4 make makeinfo &&     zypper clean -a]: exit code: 4
ERROR: Service 'portus' failed to build : Build failed

Thank you very much for your help guyz

louistwiice avatar Mar 14 '22 10:03 louistwiice