Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rel 1.11.0 #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions vivo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,35 @@ MAINTAINER Quinn Hart <[email protected]>
RUN apt-get update
RUN apt-get install -y maven git

# ENV VIVO_MD5 861865a57ded2bc99237e1c78f90d45c
# ENV VIVO_VERSION 1.10.0
WORKDIR /usr/local/

# RUN mkdir -v /opt/vivo
# WORKDIR /opt/vivo
# RUN echo "$VIVO_MD5 vivo.tar.gz" > vivo.tar.gz.md5
# RUN wget -O vivo.tar.gz https://github.com/vivo-project/VIVO/releases/download/vivo-${VIVO_VERSION}/VIVO-${VIVO_VERSION}.tar.gz && \
# md5sum vivo.tar.gz.md5 && \
# tar -xzf vivo.tar.gz && rm vivo.tar.gz
ENV VITRO_VERSION 1.11.0
RUN wget -O Vitro.zip https://github.com/vivo-project/Vitro/releases/download/vitro-${VITRO_VERSION}/vitro-${VITRO_VERSION}.zip
RUN unzip Vitro.zip -d Vitro
RUN rm Vitro.zip

ENV VIVO_VERSION 1.11.0
RUN wget -O VIVO.zip https://github.com/vivo-project/VIVO/releases/download/vivo-${VIVO_VERSION}/VIVO-${VIVO_VERSION}.zip
RUN unzip VIVO.zip -d VIVO
RUN rm VIVO.zip

WORKDIR /usr/local/
RUN git clone https://github.com/vivo-project/Vitro.git Vitro -b rel-1.11.0-RC
RUN git clone https://github.com/vivo-project/VIVO.git VIVO -b rel-1.11.0-RC
WORKDIR /usr/local/VIVO/
RUN mvn install -s installer/example-settings.xml
COPY ./example-settings.xml example-settings.xml
RUN mvn install -s example-settings.xml

# clean up
# RUN rm -r /opt/vivo
# RUN rm -r /usr/local/tomcat/webapps/vivosolr
RUN rm -r /usr/local/tomcat/webapps/docs
RUN rm -r /usr/local/tomcat/webapps/examples

# Set properties
# Adjust logging, you can mount over this in docker-compose to further adjust
COPY ./log4j.properties /usr/local/tomcat/webapps/VIVO/WEB-INF/classes

WORKDIR /usr/local/VIVO/home/config

COPY ./dockercompose.runtime.properties runtime.properties
COPY ./example.applicationSetup.n3 applicationSetup.n3

RUN chmod ugo+w -R /usr/local/tomcat/temp
RUN chmod ugo+w -R /usr/local/VIVO/home

RUN export CATALINA_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=128m"
21 changes: 21 additions & 0 deletions vivo/example-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">

<profiles>
<profile>
<id>defaults</id>
<properties>
<app-name>vivo</app-name>

<vivo-dir>/usr/local/VIVO/home</vivo-dir>
<tomcat-dir>/usr/local/tomcat</tomcat-dir>

<default-theme>wilma</default-theme>
</properties>
</profile>
</profiles>

<activeProfiles>
<activeProfile>defaults</activeProfile>
</activeProfiles>
</settings>