Make sure you have docker installed. Check out for http://docker.io for more information.
Quick installation link: https://docs.docker.com/installation/#installation
The following endpoints come available:
- Islandora, accessible via: http://localhost/flat
- Proai, accessible via: http://localhost/flat/oaiprovider
- Fedora Commons API-A, accessible via: https://localhost/flat/objects
- Fedora Commons admin interface, accessible via: https://localhost:8080/fedora/admin (dev only)
The following accounts are created:
- Drupal account: admin:admin (CHANGE and DISABLE in production!)
- Fedora Commons account: fedoraAdmin:fedora (CHANGE in production!)
- PostgreSQL account: fedora:fedora (preferably CHANGE in production)
- Start your docker environment
- Run:
docker build -t flat .- Start your docker environment
- Run
docker run -p 80:80 -p 8080:8080 -v ~/my-resources:/lat -t -i flatThis will start your docker container with the following properties:
- Mapped each port specified with a "-p" parameter between your container and your host
- Mount your resources directory at the /lat directory in your container
- Open a bash shell in your container
The Dockerfile contains some global environment variables, which might have to be adapted:
FLAT_TIMEOUTgives the timeout (default:60seconds) to wait for a Tomcat to startup, if you have a slow/busy machine this might have to be increasedFLAT_HOSTthe hostname/IP (default:localhost) used to access the FLAT services from the host, if you use the Docker Toolbox you have to change this into the IP assigned to your docker-machine (default:192.168.99.100)FLAT_NAMEthe base name (default:flat) for FLAT's UI and APIsCMD_EXTENSIONthe extension (default:cmdi) used by CMDI files to be imported, change toxmlif you import an OAI harvestFLAT_ICON_DIRthe directory (default:/app/flat/data/icons) where the icons for the UI are placed
CMD is a very flexible metadata format and there is no generic mapping to Dublin Core. Fedora Commons does require Dublin Core. Place a
cmd2fox.xsl in /app/flat/deposit/policies/ which overwrites the default Dublin Core mapping for your CMDI files. (See cmd2fox.xsl for an example.)
The FLAT search image does also provide a way to derive the Dublin Core mapping based on the available VLO facet mappings.
Inside the container the /app/flat directory contains various scripts to convert and import metadata into the FLAT repository:
-
do-1-fox.sh: converts the CMD records found into
/app/flat/cmdinto FOX files, which will be stored in/app/flat/fox. -
do-2-import.sh: imports the FOX files into Fedora Commons.
TODO: the Object XML can't be viewed from the Fedora admin console