Open tdonohue opened 1 month ago
@abollini : I've found a way to get the DSpace-CRIS backend to run in Docker. This allows me (and other devs) to more easily run DSpace-CRIS locally (as the frontend is easy to install). This PR includes everything I had to do in order to make the latest 7.x version (dspace-cris-2023_02_x
) of DSpace-CRIS run in Docker on my local machine. Similar changes would also be necessary on main-cris
(though I wasn't sure of the stability of that branch)
Pinging you as a possible a reviewer, as I think this could be useful. Feel free to delegate it though.
References
Cherry-picks / Ports the following Docker bug-fixes from DSpace to DSpace-CRIS
Description
This PR ports a number of Docker bug-fixes from DSpace to DSpace-CRIS (see above). These ports can be found in the first 13 commits in this PR.
In addition, it updates the Docker scripts for DSpace-CRIS usage & adds basic instructions to the README on how to get started. This is all in the final commit. DSpace-CRIS specific changes include:
/dspace/etc/
is mounted in Docker since it stores the default CRIS layout configurationdocker-compose.yml
updated to automatically run the required scripts to initialize entities for DSpace-CRIS.dspace/src/main/docker-compose/README.md
to provide step by step instructions for starting up DSpace-CRIS in Docker.WARNING: This Docker build for DSpace-CRIS is NOT meant for production. It is just for testing/development purposes.
Instructions for Reviewers
Test the DSpace-CRIS Docker installation by following steps in the README. They are copied here for reference:
First, build the backend Docker images:
Second, start up the backend containers: In this example we are using a Docker project named "dcris7", but any name can be used.
(Wait until it starts up. Check the logs in Docker Desktop or by using
docker compose -p dcris7 logs -f
)Third, create an initial admin account: In this example, we are creating "dspacedemo+admin@gmail.com".
Fourth, initialize your DSpace-CRIS with the sample Community/Collection structure:
Finally, initialize your DSpace-CRIS with the default CRIS Layout:
At this point, it should be possible to use the DSpace-CRIS backend running at http://localhost:8080/server/. One way to do so is to run the Angular frontend and point it at the backend:
dspace-cris-2023_02_x
branch of the DSpace-CRIS frontendyarn install
yarn build:prod
config.prod.yml
to point it at localhost:8080yarn serve:ssr