Changes between Initial Version and Version 1 of InitialisationServeurPSPA


Ignore:
Timestamp:
Apr 13, 2015, 11:21:57 AM (11 years ago)
Author:
/C=FR/O=CNRS/OU=UMR8607/CN=Laurent Garnier/emailAddress=garnier@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InitialisationServeurPSPA

    v1 v1  
     1Dans ce cas 1. il va falloir :
     2
     3 * Installer stratus-lab ci besoin (étape 1 ci dessous)
     4 * Créer une nouvelle machine et y installer les packages nécessaires (étape 2 ci dessous)
     5 * Sauver cette machine sur le marketplace de stratus-lab en vue d'avoir une machine pré-configurée pour PSPA
     6
     7== 1.Installer StratusLab ==
     8Tout est écrit [http://stratuslab.readthedocs.org/en/latest/admin-tutorial/index.html ici] (''depuis le 8/7/14'')
     9
     10== 2.Créer une machine virtuelle pour héberger le serveur ==
     11Creation d'une image disque "PSPA" à partir d'une machine existante :
     12
     13{{{
     14stratus-create-image --author-email=garnier@lal.in2p3.fr \
     15                                 --author="Garnier Laurent" \
     16                                 --comment="CentOS V6.5 / PSPA Wep App." \
     17                                 --no-shutdown  \
     18                                 --image-version 1.0 \
     19                                 --title="CentOS V6.5 / PSPA Wep App"  \
     20                                KT8gOU8gve_k3UFL7p5Els57My2
     21
     22
     23 :::::::::::::::::::::::::::::
     24 :: Starting image creation ::
     25 :::::::::::::::::::::::::::::
     26 :: Checking that base image exists
     27 :: Retrieving image manifest
     28 :: Starting base image
     29  [WARNING] Image availability check is disabled.
     30
     31 :::::::::::::::::::::::::
     32 :: Starting machine(s) ::
     33 :::::::::::::::::::::::::
     34 :: Starting 1 machine
     35 :: Machine 1 (vm ID: 4908)
     36        Public ip: 134.158.75.200
     37 :: Done!
     38 :: Waiting for machine to boot
     39............................
     40 :: Waiting for machine network to start
     41....
     42 :: Check if we can connect to the machine
     43 :: Executing user prerecipe
     44 :: Installing user packages
     45 :: Executing user recipe
     46 :: Executing user scripts
     47
     48 ::::::::::::::::::::::::::::::::::::::::
     49 :: Finished building image increment. ::
     50 ::::::::::::::::::::::::::::::::::::::::
     51
     52 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
     53 :: Please check garnier@lal.in2p3.fr for new image ID and instruction. ::
     54 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
     55 :: Machine ready for use
     56
     57        Machine IP: 134.158.75.200      Remember to stop the machine when finished
     58}}}
     59Installation des paquets essentiels à PSPA
     60
     61{{{
     62ssh -Y root@134.158.75.200
     63yum update yum
     64yum update -y
     65
     66# Jenkins (from https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions)
     67sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
     68sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
     69yum install jenkins -y
     70
     71# Compiler and others
     72yum install hg gcc-c++ boost-devel wt-devel make gcc-gfortran gdb subversion cmake \
     73                 xerces-c-devel Coin2 expat-devel  doxygen pango-devel GraphicsMagick-devel openssl-devel fcgi-devel httpd \
     74                 qt qt-devel \
     75                 openmotif-devel libX11-devel xorg-x11-server-Xvfb xorg-x11-xauth libXxf86dga xorg-x11-server-Xorg xorg-x11-xinit xterm \
     76                 zlib hg  daemonize
     77
     78# Wt (from )
     79rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
     80rpm --import https://fedoraproject.org/static/0608B895.txt
     81rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
     82yum update; yum upgrade -y
     83#
     84# Wt and Dependencies (source: http://redmine.webtoolkit.eu/boards/1/topics/6178)
     85yum install wt wt-devel wt-dbo wt-dbo-postgres wt-examples \
     86                 GraphicsMagick GraphicsMagick-devel \
     87                 jasper-libs fcgi lcms-libs libICE libSM libwmf-lite urw-fonts
     88
     89# Haru :
     90curl https://codeload.github.com/libharu/libharu/legacy.tar.gz/master -olibhpdf.tar.gz
     91tar -xzf libhpdf.tar.gz
     92mkdir libharu-libharu-build
     93cd libharu-libharu-build/
     94cmake ../libharu-libharu-ec89be4/
     95make -j
     96sudo make install
     97
     98# CMT
     99 curl http://www.cmtsite.net/v1r25/CMTv1r25Linux-i686.tar.gz -o CMTv1r25Linux-i686.tar.gz
     100tar -xvf CMTv1r25Linux-i686.tar.gz
     101rm CMTv1r25Linux-i686.tar.gz
     102mv CMT/ /usr/local/.
     103ln -sf v1r25/ /usr/local/CMT/current
     104cd /usr/local/CMT/current/mgr/
     105./INSTALL
     106
     107# Changement de cmake
     108rm /usr/bin/cmake
     109ln -sf /usr/bin/cmake28 /usr/bin/cmake
     110
     111# Installation de UAP
     112cd /usr/local/
     113svn checkout svn://svn.code.sf.net/p/accelerator-ml/code/ accelerator-ml-code
     114cd accelerator-ml-code/uap/trunk/
     115export UAP_FORTRAN_COMPILER=GFORTRAN
     116gmake
     117
     118# Installation de Java (pour Jenkins)
     119yum install java-1.6.0-openjdk
     120
     121# Lancement de jenkins
     122sudo service jenkins start
     123}}}
     124== 3.Mise à disposition de cette machine dans la market place ==
     125{{{
     126stratus-shutdown-instance 4908
     127}}}
     128 * Attendre le mail
     129 * Récupérer le manifest attaché au mail
     130 * Changer la date (<dcterms:valid>....</dcterms:valid>)
     131 * stratus-sign-metadata
     132 * uploder le manifest sur le market place : https://marketplace.stratuslab.eu/marketplace/upload