This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if we're running with vagrant-notify, send a notification that we're done, in case we've wandered off | |
if Vagrant.has_plugin?('vagrant-notify') | |
config.vm.provision :shell, :inline => "notify-send --urgency=critical 'Vagrant-DSpace is up! Get back to work! :-)'", run: "always" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### BEGIN clone of DSpace from GitHub to ~/dspace-src (this is a bit of a strange way to ckeck out, we do it this | |
### way to support cases where src_dir already exists) | |
# if the src_dir folder does not yet exist, create it | |
file { "${src_dir}": | |
ensure => "directory", | |
owner => "${owner}", | |
group => "${group}", | |
mode => 770, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash aliases for Vagrant-DSpace | |
alias maven="command mvn" | |
notified_maven() { | |
maven $* | \ | |
perl -pe'$m|=/BUILD .*SUCCESS/; END {exit!$m}' && \ | |
notify-send -u critical -i /usr/share/icons/Humanity/emblems/32/emblem-cool.png "`basename $(pwd)`: mvn $*" "Build SUCCESS" || \ | |
notify-send -u critical -i /usr/share/icons/Humanity/emblems/32/emblem-ohno.png "`basename $(pwd)`: mvn $*" "Build FAILED" | |
} | |
notified_ant() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@dspace dspace-3.4-SNAPSHOT-build (dspace-3_x)]$ ant fresh_install | |
Buildfile: /home/vagrant/dspace-src/dspace/target/dspace-3.4-SNAPSHOT-build/build.xml | |
init_installation: | |
init_configs: | |
[copy] Copying 105 files to /home/vagrant/dspace/config | |
[copy] Copying 1 file to /home/vagrant/dspace/config | |
test_database: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@dspace dspace-src (master)]$ mvn versions:display-dependency-updates | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] DSpace Parent Project | |
[INFO] DSpace Services Framework :: API and Implementation | |
[INFO] DSpace Kernel :: API and Implementation | |
[INFO] DSpace Addon Modules | |
[INFO] DSpace Kernel :: Additions and Local Customizations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant package --base vagrantbox-ubuntu_dspace_1425061398748_46829 --output dspace-trusty64.box | |
==> vagrantbox-ubuntu_dspace_1425061398748_46829: Attempting graceful shutdown of VM... | |
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text. | |
vagrant@127.0.0.1's password:vagrant | |
vagrantbox-ubuntu_dspace_1425061398748_46829: | |
vagrantbox-ubuntu_dspace_1425061398748_46829: Vagrant insecure key detected. Vagrant will automatically replace | |
vagrantbox-ubuntu_dspace_1425061398748_46829: this with a newly generated keypair for better security. | |
/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/keypair.rb:14:in `initialize': BN lib (OpenSSL::PKey::RSAError) | |
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/keypair.rb:14:in `new' | |
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/keypair.rb:14:in `create' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dspace@lso-dev-01 dspace]$ export JAVA_OPTS='-Xmx2048M -Xms2048M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing' | |
[dspace@lso-dev-01 dspace]$ bin/dspace dsrun org.dspace.util.ReindexSolr --index-name statistics | |
This month has 189259 documents | |
Exception: Java heap space | |
java.lang.OutOfMemoryError: Java heap space | |
at java.util.Arrays.copyOf(Arrays.java:2271) | |
at java.lang.StringCoding.safeTrim(StringCoding.java:79) | |
at java.lang.StringCoding.access$300(StringCoding.java:50) | |
at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:305) | |
at java.lang.StringCoding.encode(StringCoding.java:344) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This silly command just polls for port 8080 to be available, and as soon as it is, calls beep and exits | |
# It is especially useful in terminals that support a visual bell, such as Terminator, or PuTTY | |
red='\033[0;31m' | |
yellow='\033[1;33m' | |
NC='\033[0m' # No Color | |
until netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ".8080"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resource not found | |
Go to MOspace home | |
org.apache.cocoon.ResourceNotFoundException: Page cannot be found | |
Cocoon stacktrace [hide] | |
Failed to process pipeline | |
context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 96:31 | |
<map:serialize type="xml"> | |
context:/jndi:/localhost/xmlui/aspects/aspects.xmap - 95:55 | |
<map:generate type="file"> | |
context:/resource://aspects/ViewArtifacts/sitemap.xmap - 359:32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dear DSpace Community: | |
On behalf of the DSpace developers, I would like to formally announce | |
that DSpace 5.2 is now available. DSpace 5.2 is a bug-fix release and | |
contains no new features. | |
DSpace 5.2 can be downloaded immediately at either of the following | |
locations: | |
* SourceForge: https://sourceforge.net/projects/dspace/files/ |