Skip to content

Commit

Permalink
use cpan module
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama committed Oct 9, 2024
1 parent 0fdf45c commit 8da5976
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dockerfiles/Dockerfile.centos-7
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
perl-Data-Dumper \
git

RUN yum install -y perl perl-CPAN perl-App-cpanminus
# Test::More と Sub::Util をインストール
RUN cpanm Test::More
RUN cpanm Sub::Util


RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN sed -i "s;%_build_name_fmt.*;%_build_name_fmt\t%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.el7.rpm;" /usr/lib/rpm/macros

Expand Down

0 comments on commit 8da5976

Please sign in to comment.