Skip to content
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 Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/rockylinux-8.4"
config.vm.box = "bento/rockylinux-8.5"

config.vm.provider "virtualbox" do |vbox|
vbox.cpus = 4
Expand Down
2 changes: 1 addition & 1 deletion downloads/download.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
curl -L -O https://s3-eu-west-1.amazonaws.com/payara.fish/Payara+Downloads/5.2021.6/payara-5.2021.6.zip
curl -L -O https://s3.eu-west-1.amazonaws.com/payara.fish/Payara+Downloads/6.2022.1.Alpha2/payara-6.2022.1.Alpha2.zip
curl -L -O https://archive.apache.org/dist/lucene/solr/8.11.1/solr-8.11.1.tgz
curl -L -O https://search.maven.org/remotecontent?filepath=org/jboss/weld/weld-osgi-bundle/2.2.10.Final/weld-osgi-bundle-2.2.10.Final-glassfish4.jar
curl -s -L http://sourceforge.net/projects/schemaspy/files/schemaspy/SchemaSpy%205.0.0/schemaSpy_5.0.0.jar/download > schemaSpy_5.0.0.jar
12 changes: 6 additions & 6 deletions scripts/installer/as-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function preliminary_setup()
#./asadmin $ASADMIN_OPTS delete-jvm-options "-XX\:MaxPermSize=192m"
#./asadmin $ASADMIN_OPTS create-jvm-options "-XX\:MaxPermSize=512m"
#./asadmin $ASADMIN_OPTS create-jvm-options "-XX\:PermSize=256m"
# payara5 ships with the "-server" option already in domain.xml, so no need:
# payara6 ships with the "-server" option already in domain.xml, so no need:
#./asadmin $ASADMIN_OPTS delete-jvm-options -client

# new Payara5 options: (thanks to donsizemore@unc.edu)
Expand Down Expand Up @@ -155,18 +155,18 @@ function final_setup(){

if [ "$DOCKER_BUILD" = "true" ]
then
FILES_DIR="/usr/local/payara5/glassfish/domains/domain1/files"
FILES_DIR="/usr/local/payara6/glassfish/domains/domain1/files"
RSERVE_HOST="localhost"
RSERVE_PORT="6311"
RSERVE_USER="rserve"
RSERVE_PASS="rserve"
HOST_ADDRESS="localhost\:8080"
pushd /usr/local/payara5/glassfish/bin/
pushd /usr/local/payara6/glassfish/bin/
./asadmin start-domain domain1
preliminary_setup
chmod -R 777 /usr/local/payara5/
rm -rf /usr/local/payara5/glassfish/domains/domain1/generated
rm -rf /usr/local/payara5/glassfish/domains/domain1/applications
chmod -R 777 /usr/local/payara6/
rm -rf /usr/local/payara6/glassfish/domains/domain1/generated
rm -rf /usr/local/payara6/glassfish/domains/domain1/applications
popd
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/installer/default.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[glassfish]
HOST_DNS_ADDRESS = localhost
GLASSFISH_USER = dataverse
GLASSFISH_DIRECTORY = /usr/local/payara5
GLASSFISH_DIRECTORY = /usr/local/payara6
GLASSFISH_ADMIN_USER = admin
GLASSFISH_ADMIN_PASSWORD = secret
GLASSFISH_HEAP = 2048
Expand Down
8 changes: 4 additions & 4 deletions scripts/installer/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,12 @@
try:
copy2(jhoveConfigSchemaDist, gfConfigDir)
# The JHOVE conf file has an absolute PATH of the JHOVE config schema file (uh, yeah...)
# and may need to be adjusted, if Payara is installed anywhere other than /usr/local/payara5:
if gfDir == "/usr/local/payara5":
# and may need to be adjusted, if Payara is installed anywhere other than /usr/local/payara6:
if gfDir == "/usr/local/payara6":
copy2(jhoveConfigDist, gfConfigDir)
else:
# use sed to replace /usr/local/payara5 in the distribution copy with the real gfDir:
sedCommand = "sed 's:/usr/local/payara5:"+gfDir+":g' < " + jhoveConfigDist + " > " + gfConfigDir + "/" + jhoveConfig
# use sed to replace /usr/local/payara6 in the distribution copy with the real gfDir:
sedCommand = "sed 's:/usr/local/payara6:"+gfDir+":g' < " + jhoveConfigDist + " > " + gfConfigDir + "/" + jhoveConfig
subprocess.call(sedCommand, shell=True)

print("done.")
Expand Down
2 changes: 1 addition & 1 deletion scripts/installer/installAppServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def runAsadminScript(config):
# We are going to run a standalone shell script with a bunch of asadmin
# commands to set up all the app. server (payara5) components for the application.
# commands to set up all the app. server (payara6) components for the application.
# All the parameters must be passed to that script as environmental
# variables:
os.environ['GLASSFISH_DOMAIN'] = "domain1";
Expand Down
10 changes: 5 additions & 5 deletions scripts/vagrant/setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
echo "Installing dependencies for Dataverse"

# wget seems to be missing in box 'bento/centos-8.2'
# ensure wget
dnf install -qy wget

# python3 and psycopg2 for the Dataverse installer
Expand Down Expand Up @@ -51,21 +51,21 @@ SOLR_USER=solr
echo "Ensuring Unix user '$SOLR_USER' exists"
useradd $SOLR_USER || :
DOWNLOAD_DIR='/dataverse/downloads'
PAYARA_ZIP="$DOWNLOAD_DIR/payara-5.2021.6.zip"
PAYARA_ZIP="$DOWNLOAD_DIR/payara-6.2022.1.Alpha2.zip"
SOLR_TGZ="$DOWNLOAD_DIR/solr-8.11.1.tgz"
if [ ! -f $PAYARA_ZIP ] || [ ! -f $SOLR_TGZ ]; then
echo "Couldn't find $PAYARA_ZIP or $SOLR_TGZ! Running download script...."
cd $DOWNLOAD_DIR && ./download.sh && cd
echo "Done running download script."
fi
PAYARA_USER_HOME=~dataverse
PAYARA_ROOT=/usr/local/payara5
PAYARA_ROOT=/usr/local/payara6
if [ ! -d $PAYARA_ROOT ]; then
echo "Copying $PAYARA_ZIP to $PAYARA_USER_HOME and unzipping"
su $PAYARA_USER -s /bin/sh -c "cp $PAYARA_ZIP $PAYARA_USER_HOME"
su $PAYARA_USER -s /bin/sh -c "cd $PAYARA_USER_HOME && unzip -q $PAYARA_ZIP"
# default.config defaults to /usr/local/payara5 so let's go with that
rsync -a $PAYARA_USER_HOME/payara5/ $PAYARA_ROOT/
# default.config defaults to /usr/local/payara6 so let's go with that
rsync -a $PAYARA_USER_HOME/payara6/ $PAYARA_ROOT/
else
echo "$PAYARA_ROOT already exists"
fi
Expand Down