Skip to content

Commit 56dafdd

Browse files
authored
Force installation of perlbrew (#909)
Motivation: We need to force the installation of perlbrew otherwise the docker image generation might fail Modifications: Add --force and also update perlbrew Result: Docker image can be build again
1 parent 9d4e98d commit 56dafdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/Dockerfile.centos6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RUN yum install -y \
2727
patch \
2828
perl \
2929
perl-parent \
30+
perl-devel \
3031
tar \
3132
unzip \
3233
wget \
@@ -55,8 +56,9 @@ RUN rm -rf $SOURCE_DIR
5556
RUN curl -L https://install.perlbrew.pl | bash
5657
RUN echo 'source ~/perl5/perlbrew/etc/bashrc' >> ~/.bashrc
5758

58-
RUN /root/perl5/perlbrew/bin/perlbrew install --notest --thread --switch perl-5.16.3
59-
RUN ln -sf /root/perl5/perlbrew/perls/perl-5.16.3/bin/perl /usr/bin/perl
59+
RUN /root/perl5/perlbrew/bin/perlbrew install-patchperl
60+
RUN /root/perl5/perlbrew/bin/perlbrew install --notest --force --thread --switch perl-5.40.1
61+
RUN ln -sf /root/perl5/perlbrew/perls/perl-5.40.1/bin/perl /usr/bin/perl
6062

6163
# Downloading and installing SDKMAN!
6264
RUN curl -s "https://get.sdkman.io" | bash

0 commit comments

Comments
 (0)