Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CLAW-vagrant to fcrepo 4.7.0; Address #423. #425

Merged
merged 4 commits into from
Nov 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion install/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/xenial64"

# Setup the shared folder
home_dir = "/home/vagrant"
home_dir = "/home/ubuntu"
config.vm.synced_folder "../", home_dir + "/islandora"

config.vm.network :forwarded_port, guest: 8080, host: 8080 # Tomcat
Expand Down
2 changes: 1 addition & 1 deletion install/configs/karaf/fcrepo_camel_toolbox.script
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
feature:repo-add mvn:org.fcrepo.camel/toolbox-features/4.6.0/xml/features
feature:repo-add mvn:org.fcrepo.camel/toolbox-features/4.6.2/xml/features
feature:install fcrepo-service-activemq
feature:install fcrepo-indexing-triplestore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
repo-add file:/home/vagrant/Alpaca/karaf/build/resources/main/features.xml
repo-add file:/home/ubuntu/Alpaca/karaf/build/resources/main/features.xml
feature:install islandora-indexing-triplestore
8 changes: 5 additions & 3 deletions install/configs/repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"allowCreation" : true
},
"storage" : {
"cacheName" : "FedoraRepository",
"cacheConfiguration" : "${fcrepo.ispn.configuration:config/infinispan/leveldb-default/infinispan.xml}",
"persistence": {
"type": "file",
"path" : "${fcrepo.object.directory:target/objects}"
},
"binaryStorage" : {
"type" : "file",
"directory" : "${fcrepo.binary.directory:target/binaries}",
Expand All @@ -24,5 +26,5 @@
{ "classname" : "org.fcrepo.auth.common.BypassSecurityServletAuthenticationProvider" }
]
},
"node-types" : ["fedora-node-types.cnd", "file:/home/vagrant/islandora/install/configs/claw.cnd"]
"node-types" : ["fedora-node-types.cnd", "file:/opt/fcrepo/configs/claw.cnd"]
}
2 changes: 1 addition & 1 deletion install/configs/variables
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

HOME_DIR=$1
DOWNLOAD_DIR="$HOME_DIR/islandora/install/downloads"
FEDORA_VERSION=4.6.0
FEDORA_VERSION=4.7.0
KARAF_VERSION=4.0.5
KARAF_DIR="/opt/karaf"
KARAF_CLIENT="$KARAF_DIR/bin/client"
Expand Down
8 changes: 8 additions & 0 deletions install/scripts/blazegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ cd /var/lib/tomcat7/webapps
cp -v "$DOWNLOAD_DIR/bigdata-$BLAZEGRAPH_VERSION.war" "/var/lib/tomcat7/webapps/bigdata.war"
chown tomcat7:tomcat7 /var/lib/tomcat7/webapps/bigdata.war

cd /opt
mkdir blazegraph
chown tomcat7:tomcat7 /opt/blazegraph

if [ $(grep -c 'com.bigdata.rdf.sail.webapp' /etc/default/tomcat7) -eq 0 ]; then
echo "JAVA_OPTS=\"\$JAVA_OPTS -Dcom.bigdata.rdf.sail.webapp.ConfigParams.propertyFile=/var/lib/tomcat7/webapps/bigdata/WEB-INF/RWStore.properties\"" >> /etc/default/tomcat7
fi

service tomcat7 restart
sleep 15
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep an eye on this depending on your machinery. It very could not be enough time to do the next steps.

sed -i 's|log4j.appender.ruleLog.File=rules.log|log4j.appender.ruleLog.File=/var/log/tomcat7/rules.log|g' /var/lib/tomcat7/webapps/bigdata/WEB-INF/classes/log4j.properties
sed -i 's|com.bigdata.journal.AbstractJournal.file=blazegraph.jnl|com.bigdata.journal.AbstractJournal.file=/opt/blazegraph/blazegraph.jnl|g' /var/lib/tomcat7/webapps/bigdata/WEB-INF/RWStore.properties
service tomcat7 restart
2 changes: 1 addition & 1 deletion install/scripts/drupal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ cd "$DRUPAL_HOME/modules"
git clone https://github.com/DiegoPino/claw-jsonld.git
drush en -y jsonld

git clone git@github.com:Islandora-CLAW/islandora.git
git clone https://github.com/Islandora-CLAW/islandora.git
drush en -y islandora

# Set default theme to bootstrap
Expand Down
12 changes: 7 additions & 5 deletions install/scripts/fcrepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ if [ ! -d "/var/lib/tomcat7/fcrepo4-data" ]; then
mkdir "/var/lib/tomcat7/fcrepo4-data"
fi

cd /opt
mkdir -p fcrepo/configs
cp -v $HOME_DIR/islandora/install/configs/repository.json /opt/fcrepo/configs
cp -v $HOME_DIR/islandora/install/configs/claw.cnd /opt/fcrepo/configs
chown -hR tomcat7:tomcat7 /opt/fcrepo

chown tomcat7:tomcat7 /var/lib/tomcat7/fcrepo4-data
chmod g-w /var/lib/tomcat7/fcrepo4-data

echo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Dfcrepo.modeshape.configuration=classpath:/config/minimal-default/repository.json\"" >> /etc/default/tomcat7;
echo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Dfcrepo.modeshape.configuration=file:///opt/fcrepo/configs/repository.json\"" >> /etc/default/tomcat7;

cp -v "$DOWNLOAD_DIR/fcrepo-$FEDORA_VERSION.war" /var/lib/tomcat7/webapps/fcrepo.war
chown tomcat7:tomcat7 /var/lib/tomcat7/webapps/fcrepo.war
sed -i 's#JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC"#JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m"#g' /etc/default/tomcat7
service tomcat7 restart

sleep 10
cp -v $HOME_DIR/islandora/install/configs/repository.json /var/lib/tomcat7/webapps/fcrepo/WEB-INF/classes/config/minimal-default/repository.json
service tomcat7 restart
2 changes: 1 addition & 1 deletion islandora