############################################################ # Dockerfile to build a handle server # Based on Ubuntu ############################################################ FROM ubuntu LABEL maintainer="Alexander König <Alexander.Koenig@eurac.edu>" ENV TERM linux RUN apt-get update &&\ apt-get -y upgrade &&\ apt-get -y install openjdk-8-jdk unzip wget make cpanminus gcc # convenience packages RUN apt-get -y install less vim RUN cpanm Term::ReadLine RUN cpanm File::Spec::Functions RUN mkdir -p /hs/svr_1 WORKDIR /hs RUN wget http://www.handle.net/hnr-source/hsj-8.1.1.tar.gz RUN tar -xzf /hs/hsj-8.1.1.tar.gz RUN mv hsj-8.1.1 hsj-8 COPY commul-customization/hdl-setup.tmp /tmp/ WORKDIR /hs/hsj-8 RUN cat /tmp/hdl-setup.tmp | bin/hdl-setup-server /hs/svr_1/ RUN perl -pi -e 's/YOUR_PREFIX/20.500.12084/' /hs/svr_1/config.dct RUN perl -pi -e 's/case_sensitive" = "no/case_sensitive" = "yes/' /hs/svr_1/config.dct RUN perl -i -plne 'print " \"storage_type\" = \"CUSTOM\"\n\ \"storage_class\" = \"org.dspace.handle.HandlePlugin\"" if(/max_session/);' /hs/svr_1/config.dct # ENTRYPOINT ["/bin/bash"]