wiki:Tests

Version 35 (modified by /C=FR/O=CNRS/OU=UMR8607/CN=Laurent Garnier/emailAddress=garnier@…, 11 years ago) (diff)

--

Installer StratusLab

Tout est écrit ici

Installation sur une machine stratus-Lab

Creation d'un disque :

 stratus-create-volume --size=6 --tag="Jenkins Dev"
  DISK 289691a0-f503-43b3-8269-d1a9827f2ff9

On peut le retrouver sur le web (login/mdp stratusLab)

https://pdisk.lal.stratuslab.eu:8445/pswd/disks/289691a0-f503-43b3-8269-d1a9827f2ff9/mounts/

L'ID de la machine Jenkins est "Fdku_AK8qDH73Y93vpn0jpZOzYf" (trouvée via https://marketplace.stratuslab.eu)

Lancer la machine avec ce disque persistant :

 stratus-run-instance --type=c1.xlarge --persistent-disk=289691a0-f503-43b3-8269-d1a9827f2ff9 Fdku_AK8qDH73Y93vpn0jpZOzYf

 :::::::::::::::::::::::::
 :: Starting machine(s) ::
 :::::::::::::::::::::::::
 :: Starting 1 machine
 :: Machine 1 (vm ID: 1486)
        Public ip: 134.158.75.148
 :: Done!

Vérifier :

stratus-describe-instance                                                           
id   state     vcpu memory    cpu% host/ip                  name
1942 Running   4    2124480   3    vm-169.lal.stratuslab.eu one-1942

Lancer le service web Jenkins : 134.158.75.148:8080

Copier l'ancienne config de Jenkins :

  • sur l'ancienne config
     tar -czvf jobs.tgz jobs
     scp jobs.tgz root@134.158.75.148:jobs.tgz
    
  • sur la machine virtuelle :
     cd "jenkins_home"/jobs
     cd /var/lib/jenkins
    

Killer le serveur jenkins existant :

 ps -ax | grep jenk
 kill …..

Le relancer :

 service jenkins restart

Vérifier que tout est bon : http://134.158.75.148:8080

Installer les packages nécessaires pour la compilation de PSPA :

 yum install gcc-c++ boost-devel.x86_64 wt-devel.x86_64 make.x86_64 gcc-gfortran.x86_64 subversion.x86_64 cmake28.x86_64 qt.x86_64 openmotif-devel libX11-devel xerces-c-devel Coin2 expat-devel qt-devel doxygen pango-devel GraphicsMagick-devel openssl fcgi-devel gdb httpd

Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package boost-devel.x86_64 0:1.41.0-11.el6_1.2 will be installed
--> Processing Dependency: boost = 1.41.0-11.el6_1.2 for package: boost-devel-1.41.0-11.el6_1.2.x86_64
--> Processing Dependency: libboost_filesystem-mt.so.5()(64bit) for package: boost-devel-1.41.0-11.el6_1.2.x86_64
--> Processing Dependency: libboost_serialization-mt.so.5()(64bit) for package: boost-devel-1.41.0-11.el6_1.2.x86_64
--> Processing Dependency: libboost_prg_exec_monitor.so.5()(64bit) for package: boost-devel-1.41.0-11.el6_1.2.x86_64
--> Processing Dependency: libboost_wserialization.so.5()(64bit) for package: boost-devel-1.41.0-11.el6_1.2.x86_64
--> Processing Dependency: libboost_signals.so.5()(64bit) for package: boost-devel-1.41.0-11.el6_1.2.x86_64
……
Is this ok [y/N]: y
Downloading Packages:
(1/48): GraphicsMagick-1.3.17-1.el6.x86_64.rpm                                                                        | 2.2 MB     00:01     
(2/48): boost-1.41.0-11.el6_1.2.x86_64.rpm                     
……

Installation de haru

curl http://libharu.org/files/libhpdf-2.3.0RC2.tar.gz -olibhpdf-2.3.0RC2.tar.gz
tar -xzf libhpdf-2.3.0RC2.tar.gz 
cd libhpdf-2.3.0RC2
./configure 
make -j
sudo make install

Installation de wt :

curl http://freefr.dl.sourceforge.net/project/witty/wt/3.2.3/wt-3.2.3.tar.gz -o wt-3.2.3.tar.gz
tar -xzf wt-3.2.3.tar.gz 
cd wt-3.2.3
mkdir build
cd build
cmake ../.
make -j6
sudo make install

Installation de cmt :

 curl http://www.cmtsite.org/v1r25/CMTv1r25Linux-i686.tar.gz -o CMTv1r25Linux-i686.tar.gz
 tar -xvf CMTv1r25Linux-i686.tar.gz
 rm CMTv1r25Linux-i686.tar.gz
  mv CMT/ /usr/local/.
 ln -sf v1r25/ /usr/local/CMT/current
 cd /usr/local/CMT/current/mgr/
 ./INSTALL 

Changement de cmake :

rm /usr/bin/cmake
ln -sf /usr/bin/cmake28 /usr/bin/cmake

Installation de wt sur un mac avec fink

Via fink

/sw/bin/fink install cmake graphicsmagick-dev openssl100-dev pangomm1.4.1-shlibs pkgconfig

Installation de haru

A COMPLETER !!!!!!
curl https://nodeload.github.com/kdeforche/libharu/zip/master -o master.zip
unzip master.zip
cd libharu-master/
./configure --with-png=/sw  
make -j
sudo make install

Installation de wt :

curl http://freefr.dl.sourceforge.net/project/witty/wt/3.2.3/wt-3.2.3.tar.gz -o wt-3.2.3.tar.gz
tar -xzf wt-3.2.3.tar.gz 
cd wt-3.2.3
mkdir build
cd build
cmake ../. -DGM_PREFIX=/sw/
make -j6
sudo make install

Lancement des pages Web (apache)

service httpd start

Les pages web se trouvent ici sur le serveur (stratus lab): /var/www/html/

Relancer la machine virtuelle

Installer stratusLab

La tuer :

stratus-describe-instance  
id   state     vcpu memory    cpu% host/ip                  name
1940 Failed    1    0         0    vm-166.lal.stratuslab.eu one-1940
1942 Unknown   4    2124480   3    vm-169.lal.stratuslab.eu one-1942
2118 Running   4    2124800   18   vm-148.lal.stratuslab.eu one-2118

stratus-kill-instance 2118

La relancer (l'adresse pspa.lal.in2p3.fr est mappée sur 134.158.75.148)

 stratus-run-instance --type=c1.xlarge --persistent-disk=289691a0-f503-43b3-8269-d1a9827f2ff9 Fdku_AK8qDH73Y93vpn0jpZOzYf --address 134.158.75.148

Lancement des pages Web (apache)

service httpd start