sclorg / container-common-scripts

Apache License 2.0
21 stars 45 forks source link

build.sh and tag.sh do not fail if `.git` directory does not exist #325

Closed phracek closed 1 year ago

phracek commented 1 year ago

In case '.git' directory does not exist in root directory then do not use git command for builds and tags.

Closes #324

Signed-off-by: Petr "Stone" Hracek phracek@redhat.com

phracek commented 1 year ago

[test]

phracek commented 1 year ago

RHEL9 failures:

Package which-2.21-28.el9.x86_64 is already installed.
Error: 
 Problem: package libcurl-devel-7.76.1-22.el9.x86_64 requires libcurl(x86-64) = 7.76.1-22.el9, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides libssh(x86-64) >= 0.10.4 needed by libcurl-7.76.1-22.el9.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-7.76.1-22.el9.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-minimal-7.76.1-22.el9.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: error building at STEP "RUN INSTALL_PKGS="autoconf   automake   bzip2   gcc-c++   gd-devel   gdb   git   libcurl-devel   libpq-devel   libxml2-devel   libxslt-devel   lsof   make   mariadb-connector-c-devel   openssl-devel   patch   procps-ng   npm   redhat-rpm-config   sqlite-devel   unzip   wget   which   zlib-devel" &&   yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS &&   rpm -V $INSTALL_PKGS &&   yum -y clean all --enablerepo='*'": error while running runtime: exit status 1
make[2]: *** [Makefile:15: base] Error 1

and for perl

Red Hat Universal Base Image 9 (RPMs) - CodeRea 201 kB/s | 104 kB     00:00    
Error: 
 Problem 1: problem with installed package libcurl-minimal-7.76.1-19.el9_1.1.x86_64
  - cannot install the best update candidate for package libcurl-minimal-7.76.1-19.el9_1.1.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-minimal-7.76.1-22.el9.x86_64
 Problem 2: problem with installed package curl-minimal-7.76.1-19.el9_1.1.x86_64
  - cannot install the best update candidate for package curl-minimal-7.76.1-19.el9_1.1.x86_64
  - package curl-minimal-7.76.1-22.el9.x86_64 requires libcurl(x86-64) >= 7.76.1-22.el9, but none of the providers can be installed
  - nothing provides libssh(x86-64) >= 0.10.4 needed by libcurl-7.76.1-22.el9.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-7.76.1-22.el9.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-minimal-7.76.1-22.el9.x86_64
 Problem 3: problem with installed package libcurl-devel-7.76.1-19.el9_1.1.x86_64
  - cannot install the best update candidate for package libcurl-devel-7.76.1-19.el9_1.1.x86_64
  - package libcurl-devel-7.76.1-22.el9.x86_64 requires libcurl(x86-64) = 7.76.1-22.el9, but none of the providers can be installed
  - nothing provides libssh(x86-64) >= 0.10.4 needed by libcurl-7.76.1-22.el9.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-7.76.1-22.el9.x86_64
  - nothing provides openssl-libs(x86-64) >= 1:3.0.7 needed by libcurl-minimal-7.76.1-22.el9.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: error building at STEP "RUN INSTALL_PKGS="perl perl-devel mod_fcgid perl-App-cpanminus perl-FCGI patch" &&     yum -y --allowerasing distrosync &&     yum install -y --setopt=tsflags=nodocs  $INSTALL_PKGS &&     rpm -V $INSTALL_PKGS &&     perl -v | grep -qe "v$PERL_VERSION\." && echo "Found VERSION $PERL_VERSION" &&     yum -y clean all --enablerepo='*'": error while running runtime: exit status 1
phracek commented 1 year ago

[test]

phracek commented 1 year ago

[test]

phracek commented 1 year ago

[test]

phracek commented 1 year ago

[test]