Fix Docker build for DSpace-CRIS backend#469
Open
tdonohue wants to merge 14 commits into4Science:dspace-cris-2023_02_xfrom
Open
Fix Docker build for DSpace-CRIS backend#469tdonohue wants to merge 14 commits into4Science:dspace-cris-2023_02_xfrom
tdonohue wants to merge 14 commits into4Science:dspace-cris-2023_02_xfrom
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
Author
|
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlupdated to automatically run the required scripts to initialize entities for DSpace-CRIS.dspace/src/main/docker-compose/README.mdto 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_xbranch of the DSpace-CRIS frontendyarn installyarn build:prodconfig.prod.ymlto point it at localhost:8080yarn serve:ssr