{% include nav.html %}
MacOS/Linux
docker exec dspace /dspace/bin/dspace index-discovery
Windows
docker exec dspace //dspace/bin/dspace index-discovery
Note that a default admin is configured when the DSpace instance started.
MacOS/Linux
docker exec -it dspace /dspace/bin/dspace create-administrator
Windows
winpty docker exec -it dspace //dspace/bin/dspace create-administrator
MacOS/Linux
docker exec dspace /dspace/bin/dspace filter-media
Windows
docker exec dspace //dspace/bin/dspace filter-media
The -p dX parameter is used as a prefix for the volumes that are created.
If you set a value such as -p d6mytest then a unique set of volumes will be created.
It is recommended that you include the DSpace version in your prefix.
- export SKIPAIP=Y
- If you plan to re-use existing volumes, delete the existing volumes before starting DSpace
- Start DSpace
- Create a zip file containing AIP files.
- export AIPZIP=
- If you plan to re-use existing volumes, delete the existing volumes before starting DSpace
- Start DSpace
- Set the following variables as desired
- export ADMIN_EMAIL=
- export ADMIN_PASS=
- export ADMIN_FNAME=
- export ADMIN_LNAME=
- If you plan to re-use existing volumes, delete the existing volumes before starting DSpace
- Start DSpace
Start DSpace 7 using port 8080
cd
cd DSpace-Docker-Images/docker-compose-files/dspace-compose
docker-compose -p d7 -f docker-compose.yml -f d7.override.yml up -d
Start DSpace 6 using port 8081
cd
cd DSpace-Docker-Images/docker-compose-files/dspace-compose
PORT=8081 docker-compose -p d6 -f docker-compose.yml -f d6.override.yml up -d
The JAVA_OPTS variable provided to tomcat is set in the initialization script. By default, the variable JAVA_MEM is prepended to JAVA_OPTS.
To change the default allocation of -Xmx2500m
, pass a setting such as JAVA_MEM=-Xmx4000m
to the dspace container.
The dspace dockerfile is built with a default value JAVA_OPTS=-Xmx2000m
. This value will be used when running docker exec
tasks.
You can override this setting using the following syntax.
docker exec -it -e JAVA_OPTS=500m dspace /dspace/bin/dspace ...
These instructions are for users who are interested in testing code under active development.
These instructions assume the user will clone the DSpace/DSpace repo for testing purposes.
DSpace developers should use their existing DSpace clone (set DSPACE_SRC=) and skip this step.
cd
git clone https://github.com/DSpace/DSpace.git
cd DSpace
git fetch --all
git checkout dspace-6_x
export DSPACE_SRC=$(pwd)
Ensure that DSPACE_SRC is set to your local DSpace clone.
Adjust the DSpace version to match the one you want to build.
cd
cd DSpace-Docker-Images/docker-compose-files/dspace-compose
docker-compose -p d6 -f docker-compose.yml -f d6.override.yml -f src.override.yml build
The build will take several minutes to complete. Once it has completed, start DSpace.
cd
cd DSpace-Docker-Images/docker-compose-files/dspace-compose
docker-compose -p d6 -f docker-compose.yml -f d6.override.yml -f src.override.yml up -d
Ensure that ANGULAR_SRC is set to your local DSpace-angular clone.
cd
cd DSpace-Docker-Images/docker-compose-files/dspace-compose
docker-compose -p d7 -f docker-compose.yml -f d7.override.yml -f ang-src.override.yml build
The build will take several minutes to complete. Once it has completed, start DSpace.
cd
cd DSpace-Docker-Images/docker-compose-files/dspace-compose
docker-compose -p d7 -f docker-compose.yml -f d7.override.yml -f ang-src.override.yml up -d
You need 2 pieces of information
- the BRANCH that this change will be applied to: master, dspace-6_x, dspace-5_x, dspace-4_x
- the PR_NUM
cd $DSPACE_SRC
git checkout BRANCH --force
curl -o /tmp/pr.patch -L https://github.com/DSpace/DSpace/pull/PR_NUM.diff
git apply /tmp/pr.patch
Follow the build instructions above to build the modified code.