Skip to content

Commit

Permalink
Add a test in Dockerfile directly to check the version
Browse files Browse the repository at this point in the history
Otherwise when a wrong stream is installed, it's only found by scl test,
which is too late in the process and might even go through uncought,
especially when the scl test is removed for non-SCL distros at some point.
  • Loading branch information
hhorak committed Nov 15, 2022
1 parent b53e62c commit cfb512e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions 5.26-mod_fcgid/Dockerfile.rhel8
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ 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='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.26/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ LABEL summary="$SUMMARY" \
RUN INSTALL_PKGS="perl perl-devel mod_perl perl-CPAN perl-App-cpanminus httpd python2" && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
perl -v | grep -qe "v$PERL_VERSION\." && echo "Found VERSION $PERL_VERSION" && \
dnf clean all

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.30-mod_fcgid/Dockerfile.rhel8
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ 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='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.30/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ LABEL summary="$SUMMARY" \
RUN INSTALL_PKGS="perl perl-devel mod_perl perl-CPAN perl-App-cpanminus httpd python2" && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
perl -v | grep -qe "v$PERL_VERSION\." && echo "Found VERSION $PERL_VERSION" && \
dnf clean all

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.32/Dockerfile.c9s
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ 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='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.32/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN INSTALL_PKGS="perl perl-devel mod_fcgid perl-App-cpanminus perl-FCGI patch"
dnf -y module enable perl:$PERL_VERSION && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
perl -v | grep -qe "v$PERL_VERSION\." && echo "Found VERSION $PERL_VERSION" && \
dnf -y clean all --enablerepo='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.32/Dockerfile.rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ 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='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.34/Dockerfile.c9s
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ 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='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down
1 change: 1 addition & 0 deletions 5.34/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN INSTALL_PKGS="perl perl-devel mod_fcgid perl-App-cpanminus perl-FCGI patch"
dnf -y module enable perl:$PERL_VERSION && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
perl -v | grep -qe "v$PERL_VERSION\." && echo "Found VERSION $PERL_VERSION" && \
dnf -y clean all --enablerepo='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Expand Down

0 comments on commit cfb512e

Please sign in to comment.