Skip to content

Commit

Permalink
1)Dockerfile更新,以便支持账号密码登录相关的依赖环境
Browse files Browse the repository at this point in the history
2)依赖检查脚本bug修复
  • Loading branch information
hexsum committed Mar 1, 2018
1 parent 88d0a20 commit d2e2b92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
26 changes: 23 additions & 3 deletions docker-image/Dockerfile
@@ -1,10 +1,30 @@
FROM perl:5.22
FROM centos:7.0.1406
MAINTAINER sjdy521 <sjdy521@163.com>
WORKDIR /root
USER root
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y unzip
RUN cpanm Encode::Locale IO::Socket::SSL Mojolicious
RUN yum -y --nogpgcheck install \
make \
unzip \
wget \
tar \
perl \
perl-App-cpanminus \
perl-Crypt-OpenSSL-Bignum \
perl-Crypt-OpenSSL-RSA \
perl-Compress-Raw-Zlib \
perl-IO-Compress-Gzip \
perl-Digest-MD5 \
perl-Digest-SHA \
perl-Time-Piece \
perl-Time-Seconds \
perl-Time-HiRes \
perl-IO-Socket-SSL \
perl-Encode-Locale \
perl-Term-ANSIColor && \
yum clean all
RUN cpanm Test::More Webqq::Encryption Mojolicious
RUN wget -q https://github.com/sjdy521/Mojo-Webqq/archive/master.zip -OMojo-Webqq.zip \
&& unzip -qo Mojo-Webqq.zip \
&& cd Mojo-Webqq-master \
Expand Down
2 changes: 1 addition & 1 deletion script/check_dependencies.pl
Expand Up @@ -35,6 +35,6 @@
print "\n";

print "If you are using Centos, yum is the recommended way which is efficient and reliable:\n\n";
print " yum -y install " . join(" ",map {s/::/-/;"perl-" . $_ } grep {$dependent_modules{$_}==0} keys %dependent_modules) . "\n";
print " yum -y install " . join(" ",map {s/::/-/g;"perl-" . $_ } grep {$dependent_modules{$_}==0} keys %dependent_modules) . "\n";
print "\n";
}

0 comments on commit d2e2b92

Please sign in to comment.