⧼vector-jumptocontent⧽

Installing EPrints using Docker: Difference between revisions

From EPrints Documentation
Created page with "Simple EPrints 3.4 docker setup. - Justin Bradley, July 2019 Sets up two containers, one for the database, the second for httpd and eprints. Needs Docker and Docker Compose,..."
 
Added to Howto category.
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Simple EPrints 3.4 docker setup.
You will need both Docker and Docker Compose to make use of EPrints' Docker configurations, if you install [https://www.docker.com/products/docker-desktop Docker Desktop] you get both of these.
- Justin Bradley, July 2019


Sets up two containers, one for the database, the second for httpd and eprints.
Download either [https://files.eprints.org/2416/ EPrints 3.4.1 ] or [https://files.eprints.org/2454/ EPrints 3.4 GitHub HEAD] Docker configuration tarball from https://files.eprints.org.
Needs Docker and Docker Compose, if you install Docker Desktop you get both of these.


Edit docker-compose.yml and set EPRINTS_HOSTNAME to the name of your host machine, localhost is the default and fine if running locally.
Either of these Docker configurations will set up two containers, one for EPrints' database (MySQL) and the other for EPrints' webserver (Apache).
Disable any services binding to port 80, ie apache httpd.
EPrints publications installation will be available via http://yourhost once set up.
User: admin
Password: admin123


# build and start
Edit ''docker-compose.yml'' and set ''EPRINTS_HOSTNAME'' to the name of your host machine, localhost is the default and fine if you end to access this EPrints instance locally.
docker-compose up --build -d


# normal start
Disable any services on your computer that may be binding to TCP port 80, as this will be needed by EPrints' webserver Docker container.
docker-compose up -d


# shut down
An EPrints publications installation will be available via http://yourhost once set up.  You can login to this using the following credentials:
docker-compose down
User: admin
Password: admin123


There are a few issues.
== Useful Commands ==
- The indexer often fails to start automatically.
* To build and start
- Some additional perl modules may be required for some import/export libraries.
$ docker-compose up --build -d
* For a normal start (i.e. when the containers have been previously built)
$ docker-compose up -d
* To shut down
$ docker-compose down
 
== Known Issues ==
* EPrints' indexer may not start automatically.
* [[Installing_EPrints_on_RHEL/Fedora/CentOS#Non-critical_Dependencies|Some additional perl modules]] may be required for some import/export plugins.
 
[[Category:Howto]]

Latest revision as of 10:26, 11 January 2022

You will need both Docker and Docker Compose to make use of EPrints' Docker configurations, if you install Docker Desktop you get both of these.

Download either EPrints 3.4.1 or EPrints 3.4 GitHub HEAD Docker configuration tarball from https://files.eprints.org.

Either of these Docker configurations will set up two containers, one for EPrints' database (MySQL) and the other for EPrints' webserver (Apache).

Edit docker-compose.yml and set EPRINTS_HOSTNAME to the name of your host machine, localhost is the default and fine if you end to access this EPrints instance locally.

Disable any services on your computer that may be binding to TCP port 80, as this will be needed by EPrints' webserver Docker container.

An EPrints publications installation will be available via http://yourhost once set up. You can login to this using the following credentials:

User: admin
Password: admin123

Useful Commands

  • To build and start
$ docker-compose up --build -d
  • For a normal start (i.e. when the containers have been previously built)
$ docker-compose up -d
  • To shut down
$ docker-compose down

Known Issues