Commit 7a19f384 authored by Ali Fahs's avatar Ali Fahs
Browse files

new ProActive installation script

parent d6e0c0cb
Pipeline #23466 passed with stages
in 57 seconds
......@@ -2,6 +2,7 @@
#created by mbyra 2021.04.21
#modified by tpiekarz 2021.09.06
#modified by Ali Jawad 2022.10.25
add_permissions() {
sudo chmod +x /home/ubuntu/melodic-utils/melodic_installation/.tools/restartscript.sh
......@@ -106,33 +107,12 @@ install_proactive() {
echo ""
echo "Started proactive installation"
sudo apt-get update
sudo apt-get install -y unzip expect
proactive_url=https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/activeeon_enterprise-pca_server-linux-x64-12.0.6.zip
cd
sudo sh -c "curl ${proactive_url} -o proactive.zip"
unzip -q proactive.zip
proactive_dir_name=activeeon_enterprise-pca_server-linux-x64-12.0.6
echo "Changing proactive communication protocol to pamr..."
sudo touch ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/server.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/node.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/server.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/server.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/node.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/node.ini
sudo rm ${proactive_dir_name}/config/network/tmp.ini
echo "Calling installProactive.exp"
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/addons/awsautoscalinginfrastructure
sudo rm -r infrastructure-aws-autoscaling-12.0.6-all.jar
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/infrastructure-aws-autoscaling-12.0.6-all.jar
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/dist/war
sudo rm -r connector-iaas
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/connector-iaas.war
sudo unzip connector-iaas.war
cd ~
./melodic-utils/melodic_installation/installProactive.exp
passphrase="proactive"
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/ProActive_Installer.sh || { echo "Error while downloading the ProActive installer"; exit 1; }
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/inputConfig.json || { echo "Error while downloading the ProActive Config json"; exit 1; }
sudo chmod +x ProActive_Installer.sh
sudo ./ProActive_Installer.sh $passphrase $MELODIC_IP
echo "Finished proactive installation"
echo ""
......
......@@ -2,6 +2,7 @@
#created by mbyra 2021.04.21
#modified by tpiekarz 2021.07.19
#modified by Ali Jawad 2022.10.25
add_permissions() {
sudo chmod +x /home/ubuntu/melodic-utils/melodic_installation/.tools/restartscript.sh
......@@ -106,33 +107,12 @@ install_proactive() {
echo ""
echo "Started proactive installation"
sudo apt-get update
sudo apt-get install -y unzip expect
proactive_url=https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/activeeon_enterprise-pca_server-linux-x64-12.0.6.zip
cd
sudo sh -c "curl ${proactive_url} -o proactive.zip"
unzip -q proactive.zip
proactive_dir_name=activeeon_enterprise-pca_server-linux-x64-12.0.6
echo "Changing proactive communication protocol to pamr..."
sudo touch ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/server.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/node.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/server.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/server.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/node.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/node.ini
sudo rm ${proactive_dir_name}/config/network/tmp.ini
echo "Calling installProactive.exp"
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/addons/awsautoscalinginfrastructure
sudo rm -r infrastructure-aws-autoscaling-12.0.6-all.jar
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/infrastructure-aws-autoscaling-12.0.6-all.jar
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/dist/war
sudo rm -r connector-iaas
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/connector-iaas.war
sudo unzip connector-iaas.war
cd ~
./melodic-utils/melodic_installation/installProactive.exp
passphrase="proactive"
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/ProActive_Installer.sh || { echo "Error while downloading the ProActive installer"; exit 1; }
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/inputConfig.json || { echo "Error while downloading the ProActive Config json"; exit 1; }
sudo chmod +x ProActive_Installer.sh
sudo ./ProActive_Installer.sh $passphrase $MELODIC_IP
echo "Finished proactive installation"
echo ""
......
......@@ -2,6 +2,7 @@
#created by mbyra 2021.04.21
#modified by tpiekarz 2021.07.30,2021.09.06
#modified by Ali Jawad 2022.10.25
add_permissions() {
sudo chmod +x /home/ubuntu/melodic-utils/melodic_installation/.tools/restartscript.sh
......@@ -107,38 +108,11 @@ install_proactive() {
echo ""
echo "Started proactive installation"
sudo apt-get update
sudo apt-get install -y unzip expect
proactive_url=https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/activeeon_enterprise-pca_server-linux-x64-12.0.6.zip
cd
sudo sh -c "curl ${proactive_url} -o proactive.zip"
unzip -q proactive.zip
proactive_dir_name=activeeon_enterprise-pca_server-linux-x64-12.0.6
echo "Changing proactive communication protocol to pamr..."
sudo touch ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/server.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/node.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/server.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/server.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/node.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/node.ini
sudo rm ${proactive_dir_name}/config/network/tmp.ini
echo "Calling installProactive.exp"
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/addons/awsautoscalinginfrastructure
sudo rm -r infrastructure-aws-autoscaling-12.0.6-all.jar
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/infrastructure-aws-autoscaling-12.0.6-all.jar
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/dist/war
sudo rm -r connector-iaas
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/connector-iaas.war
sudo unzip connector-iaas.war
cd ~
# ./melodic-utils/melodic_installation/installProactive.exp
# change installation files for excluding expect module
sudo -E cp -p ~/melodic-utils/melodic_installation/tmpU/install_M.sh ${proactive_dir_name}/tools/install_M.sh
sudo -E cp -p ~/melodic-utils/melodic_installation/tmpU/install_base_M.sh ${proactive_dir_name}/tools/install_base_M.sh
sudo ls ${proactive_dir_name}/tools/
sudo ${proactive_dir_name}/tools/install_M.sh
passphrase="proactive"
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/ProActive_Installer.sh || { echo "Error while downloading the ProActive installer"; exit 1; }
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/inputConfig.json || { echo "Error while downloading the ProActive Config json"; exit 1; }
sudo chmod +x ProActive_Installer.sh
sudo ./ProActive_Installer.sh $passphrase $MELODIC_IP
echo "Finished proactive installation"
echo ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment