Skip to content

Instantly share code, notes, and snippets.

@cbeer
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbeer/055fe9db8fc7939d001f to your computer and use it in GitHub Desktop.
Save cbeer/055fe9db8fc7939d001f to your computer and use it in GitHub Desktop.
or2014-dev-challenge-docker
FROM jolokia/tomcat-8.0
MAINTAINER chris@cbeer.info
ENV FCREPO_VERSION 4.0.0-beta-01
RUN wget -q https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-${FCREPO_VERSION}/fcrepo-webapp-${FCREPO_VERSION}.war -O /tmp/fcrepo4.war
# Move to webapp
RUN mv /tmp/fcrepo4.war /opt/tomcat/webapps/fcrepo.war
CMD /opt/tomcat/bin/deploy-and-run.sh
FROM jolokia/tomcat-8.0
MAINTAINER chris@cbeer.info
ENV DSPACE_VERSION 4.1
ENV DEPLOY_DIR /dspace/webapps
ENV DSPACE_ANT_OPTS -Ddspace.configuration=/dspace/config/dspace.cfg
# install maven
RUN apt-get install -y maven
# install ant
RUN apt-get install -y ant
# install psql client
RUN apt-get install -y postgresql-client
ADD configure-and-run-dspace.sh /tmp/configure-and-run-dspace.sh
ADD seed-dspace-database.sh /tmp/seed-dspace-database.sh
ADD setenv.sh /opt/tomcat/bin/setenv.sh
# get dspace
RUN cd /tmp/; curl -L https://github.com/DSpace/DSpace/archive/dspace-${DSPACE_VERSION}.tar.gz | tar xz
# build it
RUN mkdir /dspace
RUN cd /tmp/DSpace-dspace-${DSPACE_VERSION} && mvn package
RUN cd /tmp/DSpace-dspace-${DSPACE_VERSION}/dspace/target/dspace-${DSPACE_VERSION}-build && ant init_installation && ant init_configs && ant install_code && ant -Dwars=true copy_webapps && ant init_geolite
RUN cp /dspace/webapps/*.war /opt/tomcat/webapps
CMD /tmp/configure-and-run-dspace.sh
FROM tianon/apache2
MAINTAINER chris@cbeer.info
ENV EPRINTS_HOME /usr/share/eprints3
RUN echo "deb http://deb.eprints.org/ unstable/" >> /etc/apt/sources.list
RUN echo "deb-src http://deb.eprints.org/ source/" >> /etc/apt/sources.list
RUN sed -i "s/precise/precise universe/" /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y dpkg-dev sudo
RUN apt-get install --force-yes -y eprints
RUN apt-get install -y expect
ADD eprints3.httpd.conf /etc/apache2/sites-available/eprints3.conf
RUN a2ensite eprints3
ADD install-eprints.expect /tmp/install-eprints.expect
ADD initialize-eprints.expect /tmp/initialize-eprints.expect
ADD initialize-eprints.sh /tmp/initialize-eprints.sh
RUN sudo -u eprints expect -f /tmp/install-eprints.expect
CMD /tmp/initialize-eprints.sh && apache2 -DFOREGROUND
https://hub.docker.com/u/cbeer/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment