| | 1 | Dans 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 == |
| | 8 | Tout 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 == |
| | 11 | Creation d'une image disque "PSPA" à partir d'une machine existante : |
| | 12 | |
| | 13 | {{{ |
| | 14 | stratus-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 | }}} |
| | 59 | Installation des paquets essentiels à PSPA |
| | 60 | |
| | 61 | {{{ |
| | 62 | ssh -Y root@134.158.75.200 |
| | 63 | yum update yum |
| | 64 | yum update -y |
| | 65 | |
| | 66 | # Jenkins (from https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions) |
| | 67 | sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo |
| | 68 | sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key |
| | 69 | yum install jenkins -y |
| | 70 | |
| | 71 | # Compiler and others |
| | 72 | yum 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 ) |
| | 79 | rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm |
| | 80 | rpm --import https://fedoraproject.org/static/0608B895.txt |
| | 81 | rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms |
| | 82 | yum update; yum upgrade -y |
| | 83 | # |
| | 84 | # Wt and Dependencies (source: http://redmine.webtoolkit.eu/boards/1/topics/6178) |
| | 85 | yum 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 : |
| | 90 | curl https://codeload.github.com/libharu/libharu/legacy.tar.gz/master -olibhpdf.tar.gz |
| | 91 | tar -xzf libhpdf.tar.gz |
| | 92 | mkdir libharu-libharu-build |
| | 93 | cd libharu-libharu-build/ |
| | 94 | cmake ../libharu-libharu-ec89be4/ |
| | 95 | make -j |
| | 96 | sudo make install |
| | 97 | |
| | 98 | # CMT |
| | 99 | curl http://www.cmtsite.net/v1r25/CMTv1r25Linux-i686.tar.gz -o CMTv1r25Linux-i686.tar.gz |
| | 100 | tar -xvf CMTv1r25Linux-i686.tar.gz |
| | 101 | rm CMTv1r25Linux-i686.tar.gz |
| | 102 | mv CMT/ /usr/local/. |
| | 103 | ln -sf v1r25/ /usr/local/CMT/current |
| | 104 | cd /usr/local/CMT/current/mgr/ |
| | 105 | ./INSTALL |
| | 106 | |
| | 107 | # Changement de cmake |
| | 108 | rm /usr/bin/cmake |
| | 109 | ln -sf /usr/bin/cmake28 /usr/bin/cmake |
| | 110 | |
| | 111 | # Installation de UAP |
| | 112 | cd /usr/local/ |
| | 113 | svn checkout svn://svn.code.sf.net/p/accelerator-ml/code/ accelerator-ml-code |
| | 114 | cd accelerator-ml-code/uap/trunk/ |
| | 115 | export UAP_FORTRAN_COMPILER=GFORTRAN |
| | 116 | gmake |
| | 117 | |
| | 118 | # Installation de Java (pour Jenkins) |
| | 119 | yum install java-1.6.0-openjdk |
| | 120 | |
| | 121 | # Lancement de jenkins |
| | 122 | sudo service jenkins start |
| | 123 | }}} |
| | 124 | == 3.Mise à disposition de cette machine dans la market place == |
| | 125 | {{{ |
| | 126 | stratus-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 |