Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleContent has moved

See https://github.com/DSpace-Labs/DSpace-Docker-Images/blob/master/README.md


Table of Contents

The following notes describe my experimentation building and running DSpace 6 within Docker on my Mac.

...

The DSpace ant build needs to run on the machine where the install will take place.  Therefore, the ant build should run in a Docker image that runs on the same Docker network

  • Before cloning the repo on Windows
    • git config --global core.autocrlf false

    • git config --global core.eol lf

  • DSpace Branch: dspace-6_x
  • local.cfg
  • dspace-src:
    • desktop: c:\Users\[user]\Documents\GitHub\DSpace
  • dspace-install: 
    • desktop: c:\installs\dspace
    • docker image: /dspace

...

Code Block
docker network create dspacenet

docker volume create pgdataD6

docker run -it -d -rm-network -ddspacenet -p 5432:5432 --networkname dspacenetdspacedbhost --name dspacedbhostv pgdataD6:/var/lib/postgresql/data terrywbrady/dspacedb

docker volume create dspaceD6

docker run -it --rm --network dspacenet -v [dspace-src]${PWD}/dspace/target/dspace-installer:/installer -v c:/installs/dspacedspaceD6:/dspace -w /installer --network dspacenet terrywbrady/dspace-docker-ant ant update clean_backups

docker run -it --rm --network dspacenet -v c:/installs/dspacedspaceD6:/dspace -v c:dspaceD6/installs/dspace/webapps/solr:/usr/local/tomcat/webapps/solr:ro -v c:/installsdspaceD6/dspace/webapps/xmlui:/usr/local/tomcat/webapps/xmlui:ro -p 8080:8080 -e JAVA_OPTS=-Xmx2000m --name dspacetomcat tomcat:8

docker run -it --rm --network dspacenet -v cdspaceD6:/installs/dspace:/dspace -v c:/installs/dspace/webapps/solr:/usr/local/tomcat/webapps/solr -v c:/installs/dspace/webapps/xmlui:/usr/local/tomcat/webapps/xmlui -p 8080:8080 openjdk
 -p 8080:8080 -e JAVA_OPTS=-Xmx2000m --name dspacetomcat tomcat:8


docker exec -it --detach-keys "ctrl-p" dspacetomcat /bin/bash

docker exec -it --detach-keys "ctrl-p" dspacedbhost psql -U dspace