-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'trunk'
- Loading branch information
Showing
16 changed files
with
395 additions
and
251 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
#!/bin/bash | ||
#SpagoBI VM installation script | ||
#SpagoBI Chef installation script | ||
set -e | ||
set -x | ||
|
||
sudo chef-client -o 'recipe[spagobi::1.0.2_install]' | ||
#install chef 12 client | ||
wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/10.04/x86_64/chef_12.5.1-1_amd64.deb | ||
sudo dpkg -i chef_12.5.1-1_amd64.deb | ||
rm -f chef_12.5.1-1_amd64.deb | ||
|
||
#download recipes | ||
sudo apt-get update -q | ||
sudo apt-get -y install unzip | ||
wget https://github.com/SpagoBILabs/SpagoBI/releases/download/fiware-v5.1-1feb2d97af/chef-cookbooks.zip | ||
unzip chef-cookbooks.zip | ||
rm -f chef-cookbooks.zip | ||
|
||
#install spagobi | ||
sudo chef-client -z -o 'recipe[spagobi::1.0.2_install]' | ||
rm -rf cookbooks |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
#!/bin/bash | ||
#SpagoBI VM verification script | ||
#SpagoBI remote verification script | ||
|
||
set -e | ||
ssh ubuntu@$IP <<-'ENDSSH' | ||
set -e | ||
# log into the VM and check the SpagoBI service | ||
ssh ubuntu@$IP /etc/init.d/spagobi status | ||
if [ "$?" -ne "0" ]; then | ||
echo "Service is not running" | ||
exit 1 | ||
fi | ||
# check the service | ||
if ! service spagobi status; then | ||
exit 1 | ||
fi | ||
#check if SpagoBI is running | ||
curl -s -S http://$IP:8080/SpagoBI/servlet/AdapterHTTP?PAGE=LoginPage\&NEW_SESSION=TRUE > /dev/null | ||
#checking the process with ps | ||
echo -n "Verifying SpagoBI" | ||
start=`date +%s` | ||
while ( ! ps aux | grep -q [j]ava.*SpagoBI.* ) && [ $((`date +%s`-$start)) -lt 10 ]; do | ||
echo -n "." | ||
sleep 2 | ||
done | ||
if ! ps aux | grep -q [j]ava.*SpagoBI.*; then | ||
echo | ||
echo "Process is not running" | ||
exit 2 | ||
fi | ||
URL=http://localhost:8080/SpagoBI/servlet/AdapterHTTP?PAGE=LoginPage\&NEW_SESSION=TRUE | ||
#check the web application | ||
start=`date +%s` | ||
while ( ! curl -s -S --max-time 20 $URL &> /dev/null ) && [ $((`date +%s`-$start)) -lt 360 ]; do | ||
echo -n "." | ||
sleep 2 | ||
done | ||
echo | ||
if ! curl -s -S --max-time 5 $URL &> /dev/null; then | ||
echo "Web application is not running" | ||
exit 3 | ||
fi | ||
echo "SpagoBI is correctly running" | ||
exit 0 | ||
ENDSSH |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="test"/> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIUtils"/> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIUtilsJSON"/> | ||
<classpathentry kind="lib" path="/SpagoBIUtils/lib/commonj-twm.jar"/> | ||
<classpathentry kind="lib" path="/SpagoBIUtils/lib/foo-commonj.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIDAO"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="jst.web;#system#"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="java"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="web-content/WEB-INF/classes"/> | ||
</classpath> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="test"/> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIUtils"/> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIUtilsJSON"/> | ||
<classpathentry kind="lib" path="/SpagoBIUtils/lib/commonj-twm.jar"/> | ||
<classpathentry kind="lib" path="/SpagoBIUtils/lib/foo-commonj.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIDAO"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="jst.web;#system#"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="java"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry combineaccessrules="false" kind="src" path="/SpagoBIOAuth2SecurityProvider"/> | ||
<classpathentry kind="output" path="web-content/WEB-INF/classes"/> | ||
</classpath> |
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
Oops, something went wrong.