mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
Merge pull request #8420 from tdonohue/prep_for_5.11
[Prep for 5.11] Fix DSpace 5.x branch to make it releasable again. Add Docker Compose for easier testing.
This commit is contained in:
6
.gitattributes
vendored
6
.gitattributes
vendored
@@ -1,6 +1,12 @@
|
|||||||
# Auto detect text files and perform LF normalization
|
# Auto detect text files and perform LF normalization
|
||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
|
# Ensure Unix files always keep Unix line endings
|
||||||
|
*.sh text eol=lf
|
||||||
|
|
||||||
|
# Ensure Windows files always keep Windows line endings
|
||||||
|
*.bat text eol=crlf
|
||||||
|
|
||||||
# Standard to msysgit
|
# Standard to msysgit
|
||||||
*.doc diff=astextplain
|
*.doc diff=astextplain
|
||||||
*.DOC diff=astextplain
|
*.DOC diff=astextplain
|
||||||
|
60
Dockerfile.cli.jdk8
Normal file
60
Dockerfile.cli.jdk8
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# This image will be published as dspace/dspace
|
||||||
|
# See https://dspace-labs.github.io/DSpace-Docker-Images/ for usage details
|
||||||
|
#
|
||||||
|
# This version is JDK8 compatible
|
||||||
|
# - openjdk:8-jdk
|
||||||
|
# - ANT 1.10.7
|
||||||
|
# - maven:3-jdk-8
|
||||||
|
# - note:
|
||||||
|
# - default tag for branch: dspace/dspace-cli: dspace/dspace-cli:dspace-5_x
|
||||||
|
|
||||||
|
# Step 1 - Run Maven Build
|
||||||
|
FROM dspace/dspace-dependencies:dspace-5_x-jdk8 as build
|
||||||
|
ARG TARGET_DIR=dspace-installer
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# The dspace-install directory will be written to /install
|
||||||
|
RUN mkdir /install \
|
||||||
|
&& chown -Rv dspace: /install
|
||||||
|
|
||||||
|
USER dspace
|
||||||
|
|
||||||
|
# Copy the DSpace source code into the workdir (excluding .dockerignore contents)
|
||||||
|
ADD --chown=dspace . /app/
|
||||||
|
COPY --chown=dspace dspace/src/main/docker/build.properties /app/build.properties
|
||||||
|
|
||||||
|
# Build DSpace. Copy the dspace-install directory to /install. Clean up the build to keep the docker image small
|
||||||
|
RUN mvn package -P'!dspace-solr,!dspace-jspui,!dspace-xmlui,!dspace-rest,!dspace-xmlui-mirage2,!dspace-rdf,!dspace-sword,!dspace-swordv2' && \
|
||||||
|
mv /app/dspace/target/${TARGET_DIR}/* /install && \
|
||||||
|
mvn clean
|
||||||
|
|
||||||
|
# Step 2 - Run Ant Deploy
|
||||||
|
FROM openjdk:8-jdk as ant_build
|
||||||
|
ARG TARGET_DIR=dspace-installer
|
||||||
|
COPY --from=build /install /dspace-src
|
||||||
|
WORKDIR /dspace-src
|
||||||
|
|
||||||
|
# Create the initial install deployment using ANT
|
||||||
|
ENV ANT_VERSION 1.10.7
|
||||||
|
ENV ANT_HOME /tmp/ant-$ANT_VERSION
|
||||||
|
ENV PATH $ANT_HOME/bin:$PATH
|
||||||
|
|
||||||
|
RUN mkdir $ANT_HOME && \
|
||||||
|
wget -qO- "https://archive.apache.org/dist/ant/binaries/apache-ant-$ANT_VERSION-bin.tar.gz" | tar -zx --strip-components=1 -C $ANT_HOME
|
||||||
|
|
||||||
|
RUN ant init_installation update_configs update_code
|
||||||
|
|
||||||
|
# Step 3 - Run jdk
|
||||||
|
# Create a new jdk image that does not retain the the build directory contents
|
||||||
|
FROM openjdk:8-jdk
|
||||||
|
ENV DSPACE_INSTALL=/dspace
|
||||||
|
COPY --from=ant_build /dspace $DSPACE_INSTALL
|
||||||
|
|
||||||
|
ENV JAVA_OPTS=-Xmx1000m
|
||||||
|
|
||||||
|
# This script is used to parse environment variables to configs in dspace.cfg
|
||||||
|
# It is not executed in this Docker file, so it's up to docker-compose to call it.
|
||||||
|
COPY dspace/src/main/docker/parse_env_to_configs.sh $DSPACE_INSTALL/bin/parse_env_to_configs.sh
|
||||||
|
|
||||||
|
# Ensure all scripts are executable
|
||||||
|
RUN chmod +x $DSPACE_INSTALL/bin/*
|
@@ -60,4 +60,13 @@ RUN ln -s $DSPACE_INSTALL/webapps/solr /usr/local/tomcat/webapps/solr && \
|
|||||||
ln -s $DSPACE_INSTALL/webapps/oai /usr/local/tomcat/webapps/oai && \
|
ln -s $DSPACE_INSTALL/webapps/oai /usr/local/tomcat/webapps/oai && \
|
||||||
ln -s $DSPACE_INSTALL/webapps/rdf /usr/local/tomcat/webapps/rdf && \
|
ln -s $DSPACE_INSTALL/webapps/rdf /usr/local/tomcat/webapps/rdf && \
|
||||||
ln -s $DSPACE_INSTALL/webapps/sword /usr/local/tomcat/webapps/sword && \
|
ln -s $DSPACE_INSTALL/webapps/sword /usr/local/tomcat/webapps/sword && \
|
||||||
ln -s $DSPACE_INSTALL/webapps/swordv2 /usr/local/tomcat/webapps/swordv2
|
ln -s $DSPACE_INSTALL/webapps/swordv2 /usr/local/tomcat/webapps/swordv2
|
||||||
|
|
||||||
|
COPY dspace/src/main/docker/parse_env_to_configs.sh $DSPACE_INSTALL/bin/parse_env_to_configs.sh
|
||||||
|
|
||||||
|
# Ensure all scripts are executable
|
||||||
|
RUN chmod +x $DSPACE_INSTALL/bin/*
|
||||||
|
|
||||||
|
# On startup run this command to parse environment variables to configs in dspace.cfg
|
||||||
|
# Then start Tomcat
|
||||||
|
CMD ["sh", "-c", "$DSPACE_INSTALL/bin/parse_env_to_configs.sh && catalina.sh run"]
|
@@ -66,4 +66,13 @@ COPY dspace/src/main/docker/test/solr_web.xml $DSPACE_INSTALL/webapps/solr/WEB-I
|
|||||||
COPY dspace/src/main/docker/test/rest_web.xml $DSPACE_INSTALL/webapps/rest/WEB-INF/web.xml
|
COPY dspace/src/main/docker/test/rest_web.xml $DSPACE_INSTALL/webapps/rest/WEB-INF/web.xml
|
||||||
|
|
||||||
RUN sed -i -e "s|\${dspace.dir}|$DSPACE_INSTALL|" $DSPACE_INSTALL/webapps/solr/WEB-INF/web.xml && \
|
RUN sed -i -e "s|\${dspace.dir}|$DSPACE_INSTALL|" $DSPACE_INSTALL/webapps/solr/WEB-INF/web.xml && \
|
||||||
sed -i -e "s|\${dspace.dir}|$DSPACE_INSTALL|" $DSPACE_INSTALL/webapps/rest/WEB-INF/web.xml
|
sed -i -e "s|\${dspace.dir}|$DSPACE_INSTALL|" $DSPACE_INSTALL/webapps/rest/WEB-INF/web.xml
|
||||||
|
|
||||||
|
COPY dspace/src/main/docker/parse_env_to_configs.sh $DSPACE_INSTALL/bin/parse_env_to_configs.sh
|
||||||
|
|
||||||
|
# Ensure all scripts are executable
|
||||||
|
RUN chmod +x $DSPACE_INSTALL/bin/*
|
||||||
|
|
||||||
|
# On startup run this command to parse environment variables to configs in dspace.cfg
|
||||||
|
# Then start Tomcat
|
||||||
|
CMD ["sh", "-c", "$DSPACE_INSTALL/bin/parse_env_to_configs.sh && catalina.sh run"]
|
22
LICENSE
22
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
DSpace source code BSD License:
|
BSD 3-Clause License
|
||||||
|
|
||||||
Copyright (c) 2002-2020, LYRASIS. All rights reserved.
|
Copyright (c) 2002-2022, LYRASIS. All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions are
|
modification, are permitted provided that the following conditions are
|
||||||
@@ -13,13 +13,12 @@ notice, this list of conditions and the following disclaimer.
|
|||||||
notice, this list of conditions and the following disclaimer in the
|
notice, this list of conditions and the following disclaimer in the
|
||||||
documentation and/or other materials provided with the distribution.
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
- Neither the name DuraSpace nor the name of the DSpace Foundation
|
- Neither the name of the copyright holder nor the names of its
|
||||||
nor the names of its contributors may be used to endorse or promote
|
contributors may be used to endorse or promote products derived from
|
||||||
products derived from this software without specific prior written
|
this software without specific prior written permission.
|
||||||
permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
@@ -29,11 +28,4 @@ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|||||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||||
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||||
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
DAMAGE.
|
DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
DSpace uses third-party libraries which may be distributed under
|
|
||||||
different licenses to the above. Information about these licenses
|
|
||||||
is detailed in the LICENSES_THIRD_PARTY file at the root of the source
|
|
||||||
tree. You must agree to the terms of these licenses, in addition to
|
|
||||||
the above DSpace source code license, in order to use this software.
|
|
10
NOTICE
10
NOTICE
@@ -1,3 +1,13 @@
|
|||||||
|
Licenses of Third-Party Libraries
|
||||||
|
=================================
|
||||||
|
|
||||||
|
DSpace uses third-party libraries which may be distributed under
|
||||||
|
different licenses than specified in our LICENSE file. Information
|
||||||
|
about these licenses is detailed in the LICENSES_THIRD_PARTY file at
|
||||||
|
the root of the source tree. You must agree to the terms of these
|
||||||
|
licenses, in addition to the DSpace source code license, in order to
|
||||||
|
use this software.
|
||||||
|
|
||||||
Licensing Notices
|
Licensing Notices
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
25
README
25
README
@@ -1,18 +1,16 @@
|
|||||||
DSpace version information can be viewed online at
|
DSpace version information can be viewed online at
|
||||||
- https://wiki.duraspace.org/display/DSDOC/
|
- https://wiki.lyrasis.org/display/DSDOC/
|
||||||
|
|
||||||
Documentation for the most recent stable release(s) may be downloaded
|
Documentation for the most recent stable release(s) may be downloaded
|
||||||
or viewed online at
|
or viewed online at
|
||||||
- http://www.dspace.org/latest-release/
|
- http://www.dspace.org/latest-release/
|
||||||
- https://wiki.duraspace.org/display/DSDOC/
|
- https://wiki.lyrasis.org/display/DSDOC/
|
||||||
- http://sourceforge.net/projects/dspace/files/DSpace%20Stable/
|
|
||||||
(select a version and read DSpace-Manual.pdf)
|
|
||||||
|
|
||||||
Installation instructions are to be found in that documentation.
|
Installation instructions are to be found in that documentation.
|
||||||
|
|
||||||
In addition, a listing of all known contributors to DSpace software can be
|
In addition, a listing of all known contributors to DSpace software can be
|
||||||
found online at:
|
found online at:
|
||||||
https://wiki.duraspace.org/display/DSPACE/DSpaceContributors
|
https://wiki.lyrasis.org/display/DSPACE/DSpaceContributors
|
||||||
|
|
||||||
Installation instructions for other versions may be different, so you
|
Installation instructions for other versions may be different, so you
|
||||||
are encouraged to obtain the appropriate version of the Documentation
|
are encouraged to obtain the appropriate version of the Documentation
|
||||||
@@ -26,20 +24,20 @@ or just:
|
|||||||
|
|
||||||
- git clone git://github.com/DSpace/DSpace.git
|
- git clone git://github.com/DSpace/DSpace.git
|
||||||
|
|
||||||
Please refer any further problems to the dspace-tech@lists.sourceforge.net
|
Please refer any further problems to the dspace-tech@googlegroups.com
|
||||||
mailing list.
|
mailing list.
|
||||||
|
|
||||||
- http://sourceforge.net/mail/?group_id=19984
|
- https://groups.google.com/d/forum/dspace-tech
|
||||||
|
|
||||||
|
|
||||||
Detailed Issue Tracking for DSpace is done on our JIRA Issue Tracker
|
Detailed Issue Tracking for DSpace is done in GitHub issues
|
||||||
|
|
||||||
- https://jira.duraspace.org/browse/DS
|
- https://github.com/DSpace/DSpace/issues
|
||||||
|
|
||||||
|
|
||||||
To contribute to DSpace, please see:
|
To contribute to DSpace, please see:
|
||||||
|
|
||||||
- https://wiki.duraspace.org/display/DSPACE/How+to+Contribute+to+DSpace
|
- https://wiki.lyrasis.org/display/DSPACE/How+to+Contribute+to+DSpace
|
||||||
|
|
||||||
|
|
||||||
For more details about DSpace, including a list of service providers,
|
For more details about DSpace, including a list of service providers,
|
||||||
@@ -47,8 +45,5 @@ places to seek help, news articles and lists of other users, please see:
|
|||||||
|
|
||||||
- http://www.dspace.org/
|
- http://www.dspace.org/
|
||||||
|
|
||||||
|
DSpace source code is freely available under a standard [BSD 3-Clause license](https://opensource.org/licenses/BSD-3-Clause).
|
||||||
DSpace source code licensing information available online at:
|
The full license is available at http://www.dspace.org/license/
|
||||||
- http://www.dspace.org/license/
|
|
||||||
|
|
||||||
Copyright (c) 2002-2015, DuraSpace. All rights reserved.
|
|
||||||
|
43
docker-compose-cli.yml
Normal file
43
docker-compose-cli.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#
|
||||||
|
# The contents of this file are subject to the license and copyright
|
||||||
|
# detailed in the LICENSE and NOTICE files at the root of the source
|
||||||
|
# tree and available online at
|
||||||
|
#
|
||||||
|
# http://www.dspace.org/license/
|
||||||
|
#
|
||||||
|
|
||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
dspace-cli:
|
||||||
|
image: "dspace/dspace-cli:${DSPACE_VER:-dspace-5_x}"
|
||||||
|
container_name: dspace-cli
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.cli.jdk8
|
||||||
|
environment:
|
||||||
|
# Env vars with double underbars in names will be replaced with periods and written to dspace.cfg
|
||||||
|
# The defaul values for dspace.cfg will be provided here
|
||||||
|
# __D__ -> -
|
||||||
|
# __P__ -> .
|
||||||
|
- dspace__P__dir=/dspace
|
||||||
|
- db__P__url=jdbc:postgresql://dspacedb:5432/dspace
|
||||||
|
- dspace__P__hostname=localhost
|
||||||
|
- dspace__P__baseUrl=http://localhost:8080
|
||||||
|
- dspace__P__name=DSpace Started with Docker Compose
|
||||||
|
- solr__P__server=http://dspace:8080/solr
|
||||||
|
volumes:
|
||||||
|
- assetstore:/dspace/assetstore
|
||||||
|
entrypoint: /dspace/bin/parse_env_to_configs.sh
|
||||||
|
# Any commands passed here will be forwarded to /dspace/bin/dspace by parse_env_to_configs.sh (see its code)
|
||||||
|
command: help
|
||||||
|
networks:
|
||||||
|
- dspacenet
|
||||||
|
tty: true
|
||||||
|
stdin_open: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
assetstore:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dspacenet:
|
64
docker-compose.yml
Normal file
64
docker-compose.yml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#
|
||||||
|
# The contents of this file are subject to the license and copyright
|
||||||
|
# detailed in the LICENSE and NOTICE files at the root of the source
|
||||||
|
# tree and available online at
|
||||||
|
#
|
||||||
|
# http://www.dspace.org/license/
|
||||||
|
#
|
||||||
|
|
||||||
|
version: '3.7'
|
||||||
|
networks:
|
||||||
|
dspacenet:
|
||||||
|
services:
|
||||||
|
dspace:
|
||||||
|
container_name: dspace
|
||||||
|
depends_on:
|
||||||
|
- dspacedb
|
||||||
|
image: "${DOCKER_OWNER:-dspace}/dspace:${DSPACE_VER:-dspace-5_x-jdk8-test}"
|
||||||
|
environment:
|
||||||
|
# Env vars with double underbars in names will be replaced with periods and written to dspace.cfg
|
||||||
|
# The defaul values for dspace.cfg will be provided here
|
||||||
|
# __D__ -> -
|
||||||
|
# __P__ -> .
|
||||||
|
- dspace__P__dir=/dspace
|
||||||
|
- db__P__url=jdbc:postgresql://dspacedb:5432/dspace
|
||||||
|
- dspace__P__hostname=localhost
|
||||||
|
- dspace__P__baseUrl=http://localhost:8080
|
||||||
|
- dspace__P__name=DSpace Started with Docker Compose
|
||||||
|
- solr__P__server=http://localhost:8080/solr
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.jdk8-test
|
||||||
|
networks:
|
||||||
|
dspacenet:
|
||||||
|
ports:
|
||||||
|
- published: 8080
|
||||||
|
target: 8080
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- ./dspace/src/main/docker-compose/xmlui.xconf:/dspace/config/xmlui.xconf
|
||||||
|
- ./dspace/src/main/docker-compose/parse_configs.sh:/dspace/bin/parse_configs.sh
|
||||||
|
- assetstore:/dspace/assetstore
|
||||||
|
- solr_authority:/dspace/solr/authority/data
|
||||||
|
- solr_oai:/dspace/solr/oai/data
|
||||||
|
- solr_search:/dspace/solr/search/data
|
||||||
|
- solr_statistics:/dspace/solr/statistics/data
|
||||||
|
dspacedb:
|
||||||
|
container_name: dspacedb
|
||||||
|
environment:
|
||||||
|
PGDATA: /pgdata
|
||||||
|
image: dspace/dspace-postgres-pgcrypto
|
||||||
|
networks:
|
||||||
|
dspacenet:
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- pgdata:/pgdata
|
||||||
|
volumes:
|
||||||
|
assetstore:
|
||||||
|
pgdata:
|
||||||
|
solr_authority:
|
||||||
|
solr_oai:
|
||||||
|
solr_search:
|
||||||
|
solr_statistics:
|
@@ -599,7 +599,7 @@ jsp.home.search1 = Search
|
|||||||
jsp.home.search2 = Enter some text in the box below to search DSpace.
|
jsp.home.search2 = Enter some text in the box below to search DSpace.
|
||||||
jsp.home.title = Home
|
jsp.home.title = Home
|
||||||
jsp.layout.footer-default.feedback = Feedback
|
jsp.layout.footer-default.feedback = Feedback
|
||||||
jsp.layout.footer-default.text = <a target="_blank" href="http://www.dspace.org/">DSpace Software</a> Copyright © 2002-2013 <a target="_blank" href="http://www.duraspace.org/">Duraspace</a>
|
jsp.layout.footer-default.text = <a target="_blank" href="http://www.dspace.org/">DSpace Software</a> Copyright © 2002-2022 <a target="_blank" href="http://lyrasis.org/">LYRASIS</a>
|
||||||
jsp.layout.footer-default.theme-by = Theme by
|
jsp.layout.footer-default.theme-by = Theme by
|
||||||
jsp.layout.header-default.about = About DSpace Software
|
jsp.layout.header-default.about = About DSpace Software
|
||||||
jsp.layout.header-default.alt = DSpace
|
jsp.layout.header-default.alt = DSpace
|
||||||
|
@@ -76,14 +76,14 @@ to upper case.
|
|||||||
|
|
||||||
Oracle complains with ORA-01408 if you attempt to create an index on a column which
|
Oracle complains with ORA-01408 if you attempt to create an index on a column which
|
||||||
has already had the UNIQUE contraint added (such an index is implicit in maintaining the uniqueness
|
has already had the UNIQUE contraint added (such an index is implicit in maintaining the uniqueness
|
||||||
of the column). See [DS-1370](https://jira.duraspace.org/browse/DS-1370) for details.
|
of the column). See [DS-1370](https://github.com/DSpace/DSpace/issues/4739) for details.
|
||||||
|
|
||||||
## Using the update-sequences.sql script
|
## Using the update-sequences.sql script
|
||||||
|
|
||||||
The `update-sequences.sql` script in this directory may still be used to update
|
The `update-sequences.sql` script in this directory may still be used to update
|
||||||
your internal database counts if you feel they have gotten out of "sync". This
|
your internal database counts if you feel they have gotten out of "sync". This
|
||||||
may sometimes occur after large restores of content (e.g. when using the DSpace
|
may sometimes occur after large restores of content (e.g. when using the DSpace
|
||||||
[AIP Backup and Restore](https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
[AIP Backup and Restore](https://wiki.lyrasis.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
||||||
feature).
|
feature).
|
||||||
|
|
||||||
This `update-sequences.sql` script can be executed by running
|
This `update-sequences.sql` script can be executed by running
|
||||||
|
@@ -22,7 +22,7 @@ Please see the Flyway Documentation for more information: http://flywaydb.org/
|
|||||||
The `update-sequences.sql` script in this directory may still be used to update
|
The `update-sequences.sql` script in this directory may still be used to update
|
||||||
your internal database counts if you feel they have gotten out of "sync". This
|
your internal database counts if you feel they have gotten out of "sync". This
|
||||||
may sometimes occur after large restores of content (e.g. when using the DSpace
|
may sometimes occur after large restores of content (e.g. when using the DSpace
|
||||||
[AIP Backup and Restore](https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
[AIP Backup and Restore](https://wiki.lyrasis.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
||||||
feature).
|
feature).
|
||||||
|
|
||||||
This `update-sequences.sql` script can be executed by running
|
This `update-sequences.sql` script can be executed by running
|
||||||
|
@@ -695,7 +695,7 @@
|
|||||||
<hr/>
|
<hr/>
|
||||||
<div class="col-xs-7 col-sm-8">
|
<div class="col-xs-7 col-sm-8">
|
||||||
<div>
|
<div>
|
||||||
<a href="http://www.dspace.org/" target="_blank">DSpace software</a> copyright © 2002-2015  <a href="http://www.duraspace.org/" target="_blank">DuraSpace</a>
|
<a href="http://www.dspace.org/" target="_blank">DSpace software</a> copyright © 2002-2022  <a href="http://lyrasis.org/" target="_blank">LYRASIS</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden-print">
|
<div class="hidden-print">
|
||||||
<a>
|
<a>
|
||||||
|
@@ -584,7 +584,7 @@
|
|||||||
<div id="ds-footer-wrapper">
|
<div id="ds-footer-wrapper">
|
||||||
<div id="ds-footer">
|
<div id="ds-footer">
|
||||||
<div id="ds-footer-left">
|
<div id="ds-footer-left">
|
||||||
<a href="http://www.dspace.org/" target="_blank">DSpace software</a> copyright © 2002-2015  <a href="http://www.duraspace.org/" target="_blank">DuraSpace</a>
|
<a href="http://www.dspace.org/" target="_blank">DSpace software</a> copyright © 2002-2022  <a href="http://lyrasis.org/" target="_blank">LYRASIS</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="ds-footer-right">
|
<div id="ds-footer-right">
|
||||||
<span class="theme-by">Theme by </span>
|
<span class="theme-by">Theme by </span>
|
||||||
|
9
dspace/bin/.gitattributes
vendored
Normal file
9
dspace/bin/.gitattributes
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Ensure Unix files in this folder always keep Unix line endings
|
||||||
|
dspace text eol=lf
|
||||||
|
dspace-info.pl text eol=lf
|
||||||
|
log-reporter text eol=lf
|
||||||
|
make-handle-config text eol=lf
|
||||||
|
start-handle-server text eol=lf
|
||||||
|
|
||||||
|
# Ensure Windows files in this folder always keep Windows line endings
|
||||||
|
*.bat text eol=crlf
|
@@ -6,7 +6,7 @@ Therefore, all `database_schema*.sql` files have been removed. Starting
|
|||||||
with DSpace 4.x -> 5.0 upgrade, you will no longer need to manually run any
|
with DSpace 4.x -> 5.0 upgrade, you will no longer need to manually run any
|
||||||
SQL scripts to upgrade your database.
|
SQL scripts to upgrade your database.
|
||||||
|
|
||||||
Please see the [5.0 Upgrade Instructions](https://wiki.duraspace.org/display/DSDOC5x/Upgrading+to+5.x)
|
Please see the [5.0 Upgrade Instructions](https://wiki.lyrasis.org/display/DSDOC5x/Upgrading+to+5.x)
|
||||||
for more information on upgrading to DSpace 5.
|
for more information on upgrading to DSpace 5.
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ manually. For more information, please see the `README.md` in the scripts direct
|
|||||||
The `update-sequences.sql` script in this directory may still be used to update
|
The `update-sequences.sql` script in this directory may still be used to update
|
||||||
your internal database counts if you feel they have gotten out of "sync". This
|
your internal database counts if you feel they have gotten out of "sync". This
|
||||||
may sometimes occur after large restores of content (e.g. when using the DSpace
|
may sometimes occur after large restores of content (e.g. when using the DSpace
|
||||||
[AIP Backup and Restore](https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
[AIP Backup and Restore](https://wiki.lyrasis.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
||||||
feature).
|
feature).
|
||||||
|
|
||||||
This `update-sequences.sql` script can be run manually. It will not harm your
|
This `update-sequences.sql` script can be run manually. It will not harm your
|
||||||
|
@@ -6,7 +6,7 @@ Therefore, all `database_schema*.sql` files have been removed. Starting
|
|||||||
with DSpace 4.x -> 5.0 upgrade, you will no longer need to manually run any
|
with DSpace 4.x -> 5.0 upgrade, you will no longer need to manually run any
|
||||||
SQL scripts to upgrade your database.
|
SQL scripts to upgrade your database.
|
||||||
|
|
||||||
Please see the [5.0 Upgrade Instructions](https://wiki.duraspace.org/display/DSDOC5x/Upgrading+to+5.x)
|
Please see the [5.0 Upgrade Instructions](https://wiki.lyrasis.org/display/DSDOC5x/Upgrading+to+5.x)
|
||||||
for more information on upgrading to DSpace 5.
|
for more information on upgrading to DSpace 5.
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ manually. For more information, please see the `README.md` in the scripts direct
|
|||||||
The `update-sequences.sql` script in this directory may still be used to update
|
The `update-sequences.sql` script in this directory may still be used to update
|
||||||
your internal database counts if you feel they have gotten out of "sync". This
|
your internal database counts if you feel they have gotten out of "sync". This
|
||||||
may sometimes occur after large restores of content (e.g. when using the DSpace
|
may sometimes occur after large restores of content (e.g. when using the DSpace
|
||||||
[AIP Backup and Restore](https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
[AIP Backup and Restore](https://wiki.lyrasis.org/display/DSDOC5x/AIP+Backup+and+Restore)
|
||||||
feature).
|
feature).
|
||||||
|
|
||||||
This `update-sequences.sql` script can be run manually. It will not harm your
|
This `update-sequences.sql` script can be run manually. It will not harm your
|
||||||
|
@@ -37,6 +37,15 @@
|
|||||||
<!-- Filter using the properties file defined by dspace-parent POM -->
|
<!-- Filter using the properties file defined by dspace-parent POM -->
|
||||||
<filter>${filters.file}</filter>
|
<filter>${filters.file}</filter>
|
||||||
</filters>
|
</filters>
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<!-- Allows us to download Ruby gems -->
|
||||||
|
<!-- See https://github.com/jruby/mavengem -->
|
||||||
|
<groupId>org.torquebox.mojo</groupId>
|
||||||
|
<artifactId>mavengem-wagon</artifactId>
|
||||||
|
<version>1.0.3</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
<!-- Centrally manage the versions of all plugins used below -->
|
<!-- Centrally manage the versions of all plugins used below -->
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
@@ -295,9 +304,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
<!-- https://github.com/jruby/mavengem -->
|
||||||
<repository>
|
<repository>
|
||||||
<id>rubygems-release</id>
|
<id>mavengems</id>
|
||||||
<url>http://rubygems-proxy.torquebox.org/releases</url>
|
<url>mavengem:https://rubygems.org</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
42
dspace/src/main/docker-compose/README.md
Normal file
42
dspace/src/main/docker-compose/README.md
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Docker Compose Resources
|
||||||
|
|
||||||
|
## Root directory
|
||||||
|
- docker-compose.yml
|
||||||
|
- Docker compose file to orchestrate DSpace 5 components
|
||||||
|
- docker-compose-cli
|
||||||
|
- Docker compose file to run DSpace CLI tasks within a running DSpace instance in Docker
|
||||||
|
|
||||||
|
## dspace/src/main/docker-compose
|
||||||
|
|
||||||
|
- cli.ingest.yml
|
||||||
|
- Docker compose file that will run an AIP ingest into DSpace 5.
|
||||||
|
- xmlui.xconf
|
||||||
|
- Brings up the XMLUI Mirage2 theme by default.
|
||||||
|
|
||||||
|
## To refresh / pull DSpace images from Dockerhub
|
||||||
|
```
|
||||||
|
docker-compose -f docker-compose.yml -f docker-compose-cli.yml pull
|
||||||
|
```
|
||||||
|
|
||||||
|
## To build DSpace images using code in your branch
|
||||||
|
```
|
||||||
|
docker-compose -f docker-compose.yml -f docker-compose-cli.yml build
|
||||||
|
```
|
||||||
|
|
||||||
|
## To run DSpace from your branch
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose -p d5 up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Ingesting test content
|
||||||
|
|
||||||
|
Create an admin account. By default, the dspace-cli container runs the dspace command.
|
||||||
|
```
|
||||||
|
docker-compose -p d5 -f docker-compose-cli.yml run dspace-cli create-administrator -e test@test.edu -f admin -l user -p admin -c en
|
||||||
|
```
|
||||||
|
|
||||||
|
Download a Zip file of AIP content and ingest test data
|
||||||
|
```
|
||||||
|
docker-compose -p d5 -f docker-compose-cli.yml -f dspace/src/main/docker-compose/cli.ingest.yml run dspace-cli
|
||||||
|
```
|
35
dspace/src/main/docker-compose/cli.ingest.yml
Normal file
35
dspace/src/main/docker-compose/cli.ingest.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#
|
||||||
|
# The contents of this file are subject to the license and copyright
|
||||||
|
# detailed in the LICENSE and NOTICE files at the root of the source
|
||||||
|
# tree and available online at
|
||||||
|
#
|
||||||
|
# http://www.dspace.org/license/
|
||||||
|
#
|
||||||
|
|
||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
dspace-cli:
|
||||||
|
environment:
|
||||||
|
- AIPZIP=https://github.com/DSpace-Labs/AIP-Files/raw/master/dogAndReport.zip
|
||||||
|
- ADMIN_EMAIL=test@test.edu
|
||||||
|
- AIPDIR=/tmp/aip-dir
|
||||||
|
entrypoint:
|
||||||
|
- /bin/bash
|
||||||
|
- '-c'
|
||||||
|
- |
|
||||||
|
rm -rf $${AIPDIR}
|
||||||
|
mkdir $${AIPDIR} /dspace/upload
|
||||||
|
cd $${AIPDIR}
|
||||||
|
pwd
|
||||||
|
curl $${AIPZIP} -L -s --output aip.zip
|
||||||
|
unzip aip.zip
|
||||||
|
cd $${AIPDIR}
|
||||||
|
|
||||||
|
/dspace/bin/parse_env_to_configs.sh
|
||||||
|
|
||||||
|
/dspace/bin/dspace packager -r -a -t AIP -e $${ADMIN_EMAIL} -f -u SITE*.zip
|
||||||
|
|
||||||
|
/dspace/bin/dspace index-discovery -b
|
||||||
|
/dspace/bin/dspace oai import
|
||||||
|
/dspace/bin/dspace oai clean-cache
|
176
dspace/src/main/docker-compose/xmlui.xconf
Normal file
176
dspace/src/main/docker-compose/xmlui.xconf
Normal file
@@ -0,0 +1,176 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE xmlui SYSTEM "xmlui.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
- xmlui.xconf
|
||||||
|
-
|
||||||
|
- Copyright (c) 2002-2009, The DSpace Foundation. All rights reserved.
|
||||||
|
-
|
||||||
|
- Redistribution and use in source and binary forms, with or without
|
||||||
|
- modification, are permitted provided that the following conditions are
|
||||||
|
- met:
|
||||||
|
-
|
||||||
|
- - Redistributions of source code must retain the above copyright
|
||||||
|
- notice, this list of conditions and the following disclaimer.
|
||||||
|
-
|
||||||
|
- - Redistributions in binary form must reproduce the above copyright
|
||||||
|
- notice, this list of conditions and the following disclaimer in the
|
||||||
|
- documentation and/or other materials provided with the distribution.
|
||||||
|
-
|
||||||
|
- Neither the name of the DSpace Foundation nor the names of its
|
||||||
|
- contributors may be used to endorse or promote products derived from
|
||||||
|
- this software without specific prior written permission.
|
||||||
|
-
|
||||||
|
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
- HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||||
|
- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||||
|
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
|
- DAMAGE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
- The XMLUI (Manakin Release) configuration file
|
||||||
|
-
|
||||||
|
- Authors: Scott Phillips
|
||||||
|
- Version: $Revision$
|
||||||
|
- Date: $Date$
|
||||||
|
-->
|
||||||
|
|
||||||
|
<xmlui>
|
||||||
|
<!--
|
||||||
|
This section configures the Aspect "chain". An Aspect provides a set
|
||||||
|
of coupled features for the system. All Aspects are chained together
|
||||||
|
such that together they form the complete DSpace website. This is where
|
||||||
|
the chain is defined, the order in which each aspect is declared
|
||||||
|
determines it's order in the chain. Aspects at the top are invoked
|
||||||
|
first.
|
||||||
|
|
||||||
|
The <aspect> element has two attributes, name & path. The name is used
|
||||||
|
to identify the Aspect, while the path determines the directory. The
|
||||||
|
path attribute should be listed exactly as it is found in the
|
||||||
|
/xmlui/cocoon/aspects/ directory followed by a slash.
|
||||||
|
-->
|
||||||
|
<aspects>
|
||||||
|
<!-- =====================
|
||||||
|
Item Level Versioning
|
||||||
|
===================== -->
|
||||||
|
<!--
|
||||||
|
To enable Item Level Versioning features, uncomment this aspect.
|
||||||
|
This is currently disabled by default because of one known issue:
|
||||||
|
DS-1382. Please, review them to see whether they apply
|
||||||
|
to you before enabling versioning.
|
||||||
|
-->
|
||||||
|
<!--<aspect name="Versioning Aspect" path="resource://aspects/Versioning/" />-->
|
||||||
|
|
||||||
|
<!-- =====================
|
||||||
|
Base Features/Aspects
|
||||||
|
===================== -->
|
||||||
|
<!-- Base DSpace XMLUI Aspects for Display, Browse, Search, Admin, Login and Submission -->
|
||||||
|
<aspect name="Displaying Artifacts" path="resource://aspects/ViewArtifacts/" />
|
||||||
|
<aspect name="Browsing Artifacts" path="resource://aspects/BrowseArtifacts/" />
|
||||||
|
<aspect name="Discovery" path="resource://aspects/Discovery/" />
|
||||||
|
<aspect name="Administration" path="resource://aspects/Administrative/" />
|
||||||
|
<aspect name="E-Person" path="resource://aspects/EPerson/" />
|
||||||
|
<aspect name="Submission and Workflow" path="resource://aspects/Submission/" />
|
||||||
|
|
||||||
|
<!-- ========================
|
||||||
|
Usage Statistics Engines
|
||||||
|
======================== -->
|
||||||
|
<!-- By default, DSpace uses a Statistics engine based on SOLR -->
|
||||||
|
<aspect name="Statistics" path="resource://aspects/Statistics/" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you prefer to use "Elastic Search" Statistics, you can uncomment the below
|
||||||
|
aspect and COMMENT OUT the default "Statistics" aspect above.
|
||||||
|
You must also enable the ElasticSearchLoggerEventListener.
|
||||||
|
-->
|
||||||
|
<!-- <aspect name="Statistics - Elastic Search" path="resource://aspects/StatisticsElasticSearch/" /> -->
|
||||||
|
|
||||||
|
<!-- Additionally you may choose to expose your Google Analytics statistics in DSpace -->
|
||||||
|
<!-- <aspect name="StatisticsGoogleAnalytics" path="resource://aspects/StatisticsGoogleAnalytics/" /> -->
|
||||||
|
|
||||||
|
<!-- =========================
|
||||||
|
Approval Workflow Systems
|
||||||
|
========================= -->
|
||||||
|
<!-- By default, DSpace uses a legacy 3-step approval workflow for new submissions -->
|
||||||
|
<aspect name="Original Workflow" path="resource://aspects/Workflow/" />
|
||||||
|
|
||||||
|
<!-- If you prefer, a Configurable XML-based Workflow is available. To enable it, you can
|
||||||
|
uncomment the below aspect and comment out the "Original Workflow" aspect above.
|
||||||
|
PLEASE NOTE: in order to use the configurable workflow you must also run the
|
||||||
|
database migration scripts as detailed in the DSpace Documentation -->
|
||||||
|
<!-- <aspect name="XMLWorkflow" path="resource://aspects/XMLWorkflow/" /> -->
|
||||||
|
|
||||||
|
<!-- ==============
|
||||||
|
SWORDv1 Client
|
||||||
|
============== -->
|
||||||
|
<!-- DSpace also comes with an option SWORD Client aspect, which allows
|
||||||
|
you to submit content FROM your DSpace TO another SWORD-enabled repository.
|
||||||
|
To enable this feature, uncomment the aspect below. -->
|
||||||
|
<!-- <aspect name="SwordClient" path="resource://aspects/SwordClient/" /> -->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This demo aspect tests the various possible DRI features.
|
||||||
|
It may be useful to developers in developing new aspects or themes.
|
||||||
|
It's accessible for admins in the XMLTest menu or via the /XMLTest/ URL.
|
||||||
|
-->
|
||||||
|
<!-- <aspect name="XML Tests" path="resource://aspects/XMLTest/"/> -->
|
||||||
|
</aspects>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This section configures which Theme should apply to a particular URL.
|
||||||
|
Themes stylize an abstract DRI document (generated by the Aspect
|
||||||
|
chain from above) and produce XHTML (or possibly another format) for
|
||||||
|
display to the user. Each theme rule is processed in the order that it
|
||||||
|
is listed below, the first rule that matches is the theme that is applied.
|
||||||
|
|
||||||
|
The <theme> element has several attributes including: name, id, regex,
|
||||||
|
handle, and path. The name attribute is used to identify the theme, while
|
||||||
|
the path determines the directory. The path attribute should be listed
|
||||||
|
exactly as it is found in the /xmlui/cocoon/themes/ directory. Both the
|
||||||
|
regex and handle attributes determine if the theme rule matches the URL.
|
||||||
|
If either the pattern or handle attribute is left off then the only the
|
||||||
|
other component is used to determine matching.
|
||||||
|
|
||||||
|
Keep in mind that the order of <theme> elements matters in the case of
|
||||||
|
overlapping matching rules. For example, a theme rule with a very broad
|
||||||
|
matching rule (like regex=".*") will override a more specific theme
|
||||||
|
declaration (like handle="1234/23") if placed before it.
|
||||||
|
|
||||||
|
Finally, theme application also "cascades" down to pages derived from the
|
||||||
|
one that the theme directly applies to. Thus, a theme applied to a
|
||||||
|
specific community will also apply to that community's collections and
|
||||||
|
their respective items.
|
||||||
|
-->
|
||||||
|
<themes>
|
||||||
|
<!-- Example configuration -->
|
||||||
|
|
||||||
|
<!-- <theme name="Test Theme 1" handle="123456789/1" path="theme1/"/> -->
|
||||||
|
<!-- <theme name="Test Theme 2" regex="community-list" path="theme2/"/> -->
|
||||||
|
|
||||||
|
<!-- Mirage theme, @mire contributed theme, default since DSpace 3.0 -->
|
||||||
|
<theme name="Atmire Mirage Theme" regex=".*" path="Mirage2/" />
|
||||||
|
|
||||||
|
<!-- Reference theme, the default Manakin XMLUI layout up to DSpace 1.8 -->
|
||||||
|
<!-- <theme name="Default Reference Theme" regex=".*" path="Reference/" /> -->
|
||||||
|
|
||||||
|
<!-- Classic theme, inspired by the JSP UI -->
|
||||||
|
<!-- <theme name="Classic" regex=".*" path="Classic/" /> -->
|
||||||
|
|
||||||
|
<!-- The Kubrick theme -->
|
||||||
|
<!-- <theme name="Kubrick" regex=".*" path="Kubrick/" /> -->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
For information on configuring the mobile theme, see:
|
||||||
|
dspace-xmlui/src/main/webapp/themes/mobile/readme.txt
|
||||||
|
-->
|
||||||
|
</themes>
|
||||||
|
</xmlui>
|
34
dspace/src/main/docker/parse_env_to_configs.sh
Normal file
34
dspace/src/main/docker/parse_env_to_configs.sh
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# The contents of this file are subject to the license and copyright
|
||||||
|
# detailed in the LICENSE and NOTICE files at the root of the source
|
||||||
|
# tree and available online at
|
||||||
|
#
|
||||||
|
# http://www.dspace.org/license/
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# This script is used by DSpace 5 to convert/save runtime environment variables used by v6 or 7 into dspace.cfg
|
||||||
|
# This is necessary because DSpace 5 doesn't support runtime configs like v6 or 7. All configs are added to dspace.cfg
|
||||||
|
# during the Maven build process -- local.cfg didn't come about until 6.x
|
||||||
|
#
|
||||||
|
# This script passes any params to "[dspace]/bin/dspace", as this is necessary to support "dspace-cli" containers
|
||||||
|
# as those containers need this script to dynamically update configs and then run a command from commandline.
|
||||||
|
|
||||||
|
# Substitute values in dspace.cfg for DSpace 5 from environment variables
|
||||||
|
# Converts environment variables like "dspace__P__dir" to "dspace.dir" and appends to end of dspace.cfg
|
||||||
|
VARS=`env | egrep "__.*="|cut -f1 -d=` | sed -e "s/__P__/\./g" | sed -e "s/__D__/-/g"
|
||||||
|
for v in $VARS
|
||||||
|
do
|
||||||
|
# First write all non-matching lines back to the dspace.cfg
|
||||||
|
grep -v "^${v}=" /dspace/config/dspace.cfg > /dspace/config/dspace.cfg
|
||||||
|
done
|
||||||
|
# Then write all converted environment variables at the end of dspace.cfg
|
||||||
|
env | egrep "__.*=" | egrep -v "=.*__" | sed -e "s/__P__/./g" | sed -e "s/__D__/-/g" >> /dspace/config/dspace.cfg
|
||||||
|
|
||||||
|
# Optionally call /dspace/bin/dspace with any other params
|
||||||
|
# This is used by dspace-cli image to run commands after parsing env to config
|
||||||
|
if [ $# -ne 0 ]
|
||||||
|
then
|
||||||
|
/dspace/bin/dspace "$@"
|
||||||
|
fi
|
171
pom.xml
171
pom.xml
@@ -12,18 +12,10 @@
|
|||||||
<url>https://github.com/dspace/DSpace</url>
|
<url>https://github.com/dspace/DSpace</url>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
<name>DuraSpace</name>
|
<name>LYRASIS</name>
|
||||||
<url>http://www.dspace.org</url>
|
<url>http://dspace.org</url>
|
||||||
</organization>
|
</organization>
|
||||||
|
|
||||||
<!-- brings the sonatype snapshot repository and signing requirement on board -->
|
|
||||||
<parent>
|
|
||||||
<groupId>org.sonatype.oss</groupId>
|
|
||||||
<artifactId>oss-parent</artifactId>
|
|
||||||
<version>9</version>
|
|
||||||
<relativePath />
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<prerequisites>
|
<prerequisites>
|
||||||
<maven>3.0</maven>
|
<maven>3.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
@@ -85,7 +77,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.17</version>
|
<version>2.22.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- Allow for the ability to pass JVM memory flags for Unit Tests. Since
|
<!-- Allow for the ability to pass JVM memory flags for Unit Tests. Since
|
||||||
maven-surefire-plugin forks a new JVM, it ignores MAVEN_OPTS.-->
|
maven-surefire-plugin forks a new JVM, it ignores MAVEN_OPTS.-->
|
||||||
@@ -96,6 +88,8 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
<!-- Detailed logs in reportsDirectory/testName-output.txt instead of stdout -->
|
<!-- Detailed logs in reportsDirectory/testName-output.txt instead of stdout -->
|
||||||
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
|
<!-- Ensure full stacktrace is logged (when errors occur) -->
|
||||||
|
<trimStackTrace>false</trimStackTrace>
|
||||||
<!--
|
<!--
|
||||||
Enable to debug Maven Surefire tests in remote proces
|
Enable to debug Maven Surefire tests in remote proces
|
||||||
<debugForkedProcess>true</debugForkedProcess>
|
<debugForkedProcess>true</debugForkedProcess>
|
||||||
@@ -105,7 +99,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<effort>Max</effort>
|
<effort>Max</effort>
|
||||||
<threshold>Low</threshold>
|
<threshold>Low</threshold>
|
||||||
@@ -143,6 +137,34 @@
|
|||||||
<artifactId>license-maven-plugin</artifactId>
|
<artifactId>license-maven-plugin</artifactId>
|
||||||
<version>2.6</version>
|
<version>2.6</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Used to generate a new release via Sonatype (see release profile). -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.plugins</groupId>
|
||||||
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||||
|
<version>1.6.7</version>
|
||||||
|
</plugin>
|
||||||
|
<!-- Used to generate JavaDocs for new releases (see release profile). -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.10.3</version>
|
||||||
|
<configuration>
|
||||||
|
<!-- Never fail a build based on Javadoc errors -->
|
||||||
|
<failOnError>false</failOnError>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<!-- Used to generate source JARs for new releases (see release profile). -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<version>2.4</version>
|
||||||
|
</plugin>
|
||||||
|
<!-- Used to sign new releases via GPG (see release profile). -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
<version>1.6</version>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
@@ -182,7 +204,7 @@
|
|||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
<artifactId>maven-release-plugin</artifactId>
|
||||||
<version>2.5</version>
|
<version>2.5.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- During release:perform, enable the "release" profile (see below) -->
|
<!-- During release:perform, enable the "release" profile (see below) -->
|
||||||
<releaseProfiles>release</releaseProfiles>
|
<releaseProfiles>release</releaseProfiles>
|
||||||
@@ -212,6 +234,7 @@
|
|||||||
<exclude>**/src/test/resources/**</exclude>
|
<exclude>**/src/test/resources/**</exclude>
|
||||||
<exclude>**/src/test/data/**</exclude>
|
<exclude>**/src/test/data/**</exclude>
|
||||||
<exclude>**/src/main/license/**</exclude>
|
<exclude>**/src/main/license/**</exclude>
|
||||||
|
<exclude>**/src/main/docker-compose/**</exclude>
|
||||||
<exclude>**/testEnvironment.properties</exclude>
|
<exclude>**/testEnvironment.properties</exclude>
|
||||||
<exclude>**/META-INF/**</exclude>
|
<exclude>**/META-INF/**</exclude>
|
||||||
<exclude>**/robots.txt</exclude>
|
<exclude>**/robots.txt</exclude>
|
||||||
@@ -413,7 +436,7 @@
|
|||||||
<!-- XML Commons claims these licenses, but it's really Apache License: https://xerces.apache.org/xml-commons/licenses.html -->
|
<!-- XML Commons claims these licenses, but it's really Apache License: https://xerces.apache.org/xml-commons/licenses.html -->
|
||||||
<licenseMerge>Apache Software License, Version 2.0|The SAX License|The W3C License</licenseMerge>
|
<licenseMerge>Apache Software License, Version 2.0|The SAX License|The W3C License</licenseMerge>
|
||||||
<licenseMerge>BSD License|The BSD License|BSD licence|BSD license|BSD|BSD-style license|BSD-Style License|New BSD License|New BSD license|Revised BSD License|BSD 2-Clause license</licenseMerge>
|
<licenseMerge>BSD License|The BSD License|BSD licence|BSD license|BSD|BSD-style license|BSD-Style License|New BSD License|New BSD license|Revised BSD License|BSD 2-Clause license</licenseMerge>
|
||||||
<!-- DuraSpace uses a BSD License for DSpace -->
|
<!-- DSpace uses a BSD License -->
|
||||||
<licenseMerge>BSD License|DuraSpace BSD License|DuraSpace Sourcecode License</licenseMerge>
|
<licenseMerge>BSD License|DuraSpace BSD License|DuraSpace Sourcecode License</licenseMerge>
|
||||||
<!-- Coverity uses modified BSD: https://github.com/coverity/coverity-security-library -->
|
<!-- Coverity uses modified BSD: https://github.com/coverity/coverity-security-library -->
|
||||||
<licenseMerge>BSD License|BSD style modified by Coverity</licenseMerge>
|
<licenseMerge>BSD License|BSD style modified by Coverity</licenseMerge>
|
||||||
@@ -711,6 +734,66 @@
|
|||||||
<module>dspace-xmlui-mirage2</module>
|
<module>dspace-xmlui-mirage2</module>
|
||||||
<module>dspace-xmlui</module>
|
<module>dspace-xmlui</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Configure Nexus plugin for new releases via Sonatype.
|
||||||
|
See: http://central.sonatype.org/pages/apache-maven.html -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.plugins</groupId>
|
||||||
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||||
|
<version>1.6.7</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<!-- In your settings.xml, your username/password
|
||||||
|
MUST be specified for server 'ossrh' -->
|
||||||
|
<serverId>ossrh</serverId>
|
||||||
|
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
||||||
|
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<!-- For new releases, generate Source JAR files -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-sources</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- For new releases, generate JavaDocs -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-javadocs</id>
|
||||||
|
<goals>
|
||||||
|
<goal>aggregate-jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- Sign any new releases via GPG.
|
||||||
|
NOTE: you may optionall specify the "gpg.passphrase" in your settings.xml -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>sign-artifacts</id>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
</profiles>
|
</profiles>
|
||||||
@@ -1322,8 +1405,8 @@
|
|||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
<name>DuraSpace BSD License</name>
|
<name>DSpace BSD License</name>
|
||||||
<url>https://raw.github.com/DSpace/DSpace/master/LICENSE</url>
|
<url>https://raw.github.com/DSpace/DSpace/main/LICENSE</url>
|
||||||
<distribution>repo</distribution>
|
<distribution>repo</distribution>
|
||||||
<comments>
|
<comments>
|
||||||
A BSD 3-Clause license for the DSpace codebase.
|
A BSD 3-Clause license for the DSpace codebase.
|
||||||
@@ -1332,61 +1415,60 @@
|
|||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
<system>JIRA</system>
|
<system>GitHub</system>
|
||||||
<url>https://jira.duraspace.org/browse/DS</url>
|
<url>https://github.com/DSpace/DSpace/issues</url>
|
||||||
</issueManagement>
|
</issueManagement>
|
||||||
|
|
||||||
<mailingLists>
|
<mailingLists>
|
||||||
<mailingList>
|
<mailingList>
|
||||||
<name>DSpace Technical Users List</name>
|
<name>DSpace Technical Users List</name>
|
||||||
<subscribe>
|
<subscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-tech
|
https://groups.google.com/d/forum/dspace-tech
|
||||||
</subscribe>
|
</subscribe>
|
||||||
<unsubscribe>
|
<unsubscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-tech
|
https://groups.google.com/d/forum/dspace-tech
|
||||||
</unsubscribe>
|
</unsubscribe>
|
||||||
<post>dspace-tech AT lists.sourceforge.net</post>
|
<post>dspace-tech AT googlegroups.com</post>
|
||||||
<archive>
|
<archive>
|
||||||
http://sourceforge.net/mailarchive/forum.php?forum_name=dspace-tech
|
https://groups.google.com/d/forum/dspace-tech
|
||||||
</archive>
|
</archive>
|
||||||
</mailingList>
|
</mailingList>
|
||||||
<mailingList>
|
<mailingList>
|
||||||
<name>DSpace Developers List</name>
|
<name>DSpace Developers List</name>
|
||||||
<subscribe>
|
<subscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-devel
|
https://groups.google.com/d/forum/dspace-devel
|
||||||
</subscribe>
|
</subscribe>
|
||||||
<unsubscribe>
|
<unsubscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-devel
|
https://groups.google.com/d/forum/dspace-devel
|
||||||
</unsubscribe>
|
</unsubscribe>
|
||||||
<post>dspace-devel AT lists.sourceforge.net</post>
|
<post>dspace-devel AT googlegroups.com</post>
|
||||||
<archive>
|
<archive>
|
||||||
http://sourceforge.net/mailarchive/forum.php?forum_name=dspace-devel
|
https://groups.google.com/d/forum/dspace-devel
|
||||||
</archive>
|
</archive>
|
||||||
</mailingList>
|
</mailingList>
|
||||||
<mailingList>
|
<mailingList>
|
||||||
<name>DSpace General Issues List</name>
|
<name>DSpace Community List</name>
|
||||||
<subscribe>
|
<subscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-general
|
https://groups.google.com/d/forum/dspace-community
|
||||||
</subscribe>
|
</subscribe>
|
||||||
<unsubscribe>
|
<unsubscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-general
|
https://groups.google.com/d/forum/dspace-community
|
||||||
</unsubscribe>
|
</unsubscribe>
|
||||||
<post>dspace-general AT lists.sourceforge.net</post>
|
<post>dspace-community AT googlegroups.com</post>
|
||||||
<archive>
|
<archive>
|
||||||
http://sourceforge.net/mailarchive/forum.php?forum_name=dspace-general
|
https://groups.google.com/d/forum/dspace-community
|
||||||
</archive>
|
</archive>
|
||||||
</mailingList>
|
</mailingList>
|
||||||
<mailingList>
|
<mailingList>
|
||||||
<name>DSpace SCM Commit Change-Log</name>
|
<name>DSpace Commit Change-Log</name>
|
||||||
<subscribe>
|
<subscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-changelog
|
https://groups.google.com/d/forum/dspace-changelog
|
||||||
</subscribe>
|
</subscribe>
|
||||||
<unsubscribe>
|
<unsubscribe>
|
||||||
http://lists.sourceforge.net/lists/listinfo/dspace-changelog
|
https://groups.google.com/d/forum/dspace-changelog
|
||||||
</unsubscribe>
|
</unsubscribe>
|
||||||
<post>noreply AT lists.sourceforge.net</post>
|
|
||||||
<archive>
|
<archive>
|
||||||
http://sourceforge.net/mailarchive/forum.php?forum_name=dspace-changelog
|
https://groups.google.com/d/forum/dspace-changelog
|
||||||
</archive>
|
</archive>
|
||||||
</mailingList>
|
</mailingList>
|
||||||
</mailingLists>
|
</mailingLists>
|
||||||
@@ -1609,17 +1691,22 @@
|
|||||||
<connection>scm:git:git@github.com:DSpace/DSpace.git</connection>
|
<connection>scm:git:git@github.com:DSpace/DSpace.git</connection>
|
||||||
<developerConnection>scm:git:git@github.com:DSpace/DSpace.git</developerConnection>
|
<developerConnection>scm:git:git@github.com:DSpace/DSpace.git</developerConnection>
|
||||||
<url>git@github.com:DSpace/DSpace.git</url>
|
<url>git@github.com:DSpace/DSpace.git</url>
|
||||||
<tag>dspace-5.1-SNAPSHOT</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Distribution Management is currently used by the Continuum
|
Configure our release repositories to use Sonatype.
|
||||||
server to update snapshots it generates. This will also be used
|
See: http://central.sonatype.org/pages/apache-maven.html
|
||||||
on release to deploy release versions to the repository by the
|
|
||||||
release manager.
|
|
||||||
-->
|
-->
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<!-- further distribution management is found upstream in the sonatype parent -->
|
<snapshotRepository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<repository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
Reference in New Issue
Block a user