-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix Docker build for DSpace-CRIS backend #469
base: dspace-cris-2023_02_x
Are you sure you want to change the base?
Fix Docker build for DSpace-CRIS backend #469
Conversation
Since the opendjk image has been deprecated, it was suggested to change to eclipse-temurin Fixes DSpace#9277
…odifying submission configs no longer needed
…to already installed.
…s to reference 'dspacenet' network
…ss solr config path to Dockerfile.
(cherry picked from commit 9ca0ad5)
…slightly speed up build/install steps. (cherry picked from commit 538833f)
…extra install steps, and docs
@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 ( 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 "[email protected]".
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