Created
October 10, 2021 13:25
-
-
Save haniefhan/4d9902a92c487b51c7cfc4908fe3a623 to your computer and use it in GitHub Desktop.
Dockerfile for Eprints using CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM andrewklau/centos-lamp | |
COPY ./sql-scripts/ /docker-entrypoint-initdb.d/ | |
COPY ./sql-scripts/query.sql . | |
RUN yum -y install epel-release | |
COPY eprints.repo /etc/yum.repos.d/eprints.repo | |
RUN yum -y makecache | |
RUN yum -y install eprints cpan perl-LWP-Protocol-https perl-Module-Metadata | |
# download and put the files in places | |
RUN mkdir /usr/share/eprints/download \ | |
&& wget https://files.eprints.org/2551/8/eprints-3.4.3-flavours.tar.gz -P /usr/share/eprints/download/ --no-check-certificate \ | |
&& tar -xzvf /usr/share/eprints/download/eprints-3.4.3-flavours.tar.gz -C /usr/share/eprints/ \ | |
&& mv /usr/share/eprints/eprints-3.4.3/flavours /usr/share/eprints/ \ | |
&& rmdir /usr/share/eprints/eprints-3.4.3/ | |
# using cpanmin to install Tex::Encode | |
RUN wget -O - http://cpanmin.us | perl - --self-upgrade | |
# RUN cpan Module/Metadata.pm # using perl-Module-Metada | |
RUN cpanm TeX::Encode | |
# install Date::Calc and Geo::IP for IRStats2 | |
RUN cpanm Date::Calc Geo::IP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment