Skip to content
Snippets Groups Projects
Commit 4ef7cb86 authored by Alexander König's avatar Alexander König
Browse files

added entrypoint to handle dockerfile

added building of dspace to the dspace dockerfile
parent d23e6dfc
No related branches found
No related tags found
No related merge requests found
...@@ -15,10 +15,10 @@ RUN cpanm File::Spec::Functions ...@@ -15,10 +15,10 @@ RUN cpanm File::Spec::Functions
RUN cpanm Term::ReadLine RUN cpanm Term::ReadLine
# install jdk, ant, psql, mvn, make, libxml, xsltproc, zip, wget # install jdk, ant, psql, mvn, make, libxml, xsltproc, zip, wget
RUN apt-get -y install openjdk-8-jdk ant maven libxml2-utils xsltproc unzip curl git RUN apt-get update && apt-get -y install openjdk-8-jdk ant maven libxml2-utils xsltproc unzip curl git
# install convenience apps for debug purposes (vim and jsbeautifier) # install convenience apps for debug purposes (vim and jsbeautifier)
RUN apt-get -y install vim less python-pip RUN apt-get update && apt-get -y install vim less python-pip
RUN pip install --upgrade pip RUN pip install --upgrade pip
RUN pip install jsbeautifier RUN pip install jsbeautifier
COPY commul-customization/__init__.py /usr/local/lib/python2.7/dist-packages/jsbeautifier/ COPY commul-customization/__init__.py /usr/local/lib/python2.7/dist-packages/jsbeautifier/
...@@ -66,8 +66,10 @@ RUN chmod u+x /opt/repository/workspace/scripts/*_stack.sh ...@@ -66,8 +66,10 @@ RUN chmod u+x /opt/repository/workspace/scripts/*_stack.sh
WORKDIR /opt/repository/workspace/scripts WORKDIR /opt/repository/workspace/scripts
RUN make install_libs RUN make install_libs
RUN make new_deploy
# copy over config files # copy over config files
COPY commul-customization/aai_config.js /tmp/ COPY commul-customization/aai_config.js /opt/lindat-dspace/installation/webapps/xmlui/themes/UFAL/lib/js/
CMD tail -f /opt/repository/sources/dspace/dspace-api/src/test/data/dspaceFolder/log/dspace.log CMD tail -f /opt/repository/sources/dspace/dspace-api/src/test/data/dspaceFolder/log/dspace.log
...@@ -30,3 +30,4 @@ RUN perl -pi -e 's/YOUR_PREFIX/20.500.12084/' /hs/svr_1/config.dct ...@@ -30,3 +30,4 @@ 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 -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 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"] # ENTRYPOINT ["/bin/bash"]
CMD tail -f /hs/svr_1/config.dct
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment