Requires Git
Requires Java 7
Requires Maven 3
Instructions assume you have a terminal on a Unix like system.
git clone https://github.com/futures/fcrepo4.git cd fcrepo4 MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=1024m" mvn install cd fcrepo-webapp MAVEN_OPTS="-Xmx512m" mvn jetty:run
You should now be able to navigate to http://localhost:8080/rest and see Fedora Running
Clustering Demo
To join the Fedora cluster, cd to the fcrepo-webapp directory and start Fedora with these clustering options:
$ cd fcrepo-webapp $ MAVEN_OPTS="-Xmx1g -XX:MaxPermSize=512M -Dfcrepo.modeshape.configuration=classpath:config/clustered/repository.json -Dfcrepo.ispn.numOwners=2 -Djava.net.PreferIPv4Stack=true -Djgroups.tcp.address=0.0.0.0 -Djgroups.tcpping.initial_hosts=192.168.0.30[7800]" mvn jetty:run
You should now be able to see content added on other cluster nodes, and add content on your repository and see it show up automatically on other nodes in the cluster.