A modified version of the original by Justin Bradley, with the following improvements:
- No unmet dependencies
- Updated to use AlmaLinux base image
- Uses EPrints v3.4.4 RPM
- Includes fix for Apache segmentation issue caused by XML::LibXSLT
- Includes a directory for ease of moving files to and from the container (
/var/shared
directory within the container)
User: admin
Password: admin123
- Copy the contents of this repository into /home/eprints
- cd into /home/eprints
- Build the Docker container by typing
docker compose up --build -d
in a terminal. This will take a little time to complete, as Docker is creating the volumes and acquiring everything EPrints needs to run.
In order to ensure that EPrints is set up correctly:
- Ensure that the terminal prompt is in the eprints folder
- Open the Docker container in the terminal:
docker compose exec eprintshttpd bash
- Run
chown -R -c eprints.eprints /usr/share/eprints/
to ensure that the eprints user owns all files in the eprints directory - Switch to the eprints user with:
su eprints
- Run
/usr/share/eprints/bin/generate_static pub
to ensure that there are no broken links on the homepage - Run
/usr/share/eprints/bin/epadmin update pub
to ensure the admin user is added to the database - Run
/usr/share/eprints/bin/epadmin reload pub
to reload the archive's configuration - Type
exit
to switch back to the root user - Run
httpd -k restart
to restart the web server
- Check that Docker is running okay with
service docker status
- Navigate to the folder that eprints is installed in (home/eprints)
- Run eprints with
docker compose up -d
- Open a browser window and go to http://localhost to see the front-end interface
- Close connection to the Docker container by typing
exit
twice (first is to logout the eprints user, second is to logout the root user) - Quit the EPrints app with
docker compose down