Dans ce cas 1. il va falloir :
- Installer stratus-lab ci besoin (étape 1 ci dessous)
- Créer une nouvelle machine et y installer les packages nécessaires (étape 2 ci dessous)
- Sauver cette machine sur le marketplace de stratus-lab en vue d'avoir une machine pré-configurée pour PSPA
1.Installer StratusLab
Tout est écrit ici (depuis le 8/7/14)
2.Créer une machine virtuelle pour héberger le serveur
Creation d'une image disque "PSPA" à partir d'une machine existante :
stratus-create-image --author-email=garnier@lal.in2p3.fr \ --author="Garnier Laurent" \ --comment="CentOS V6.5 / PSPA Wep App." \ --no-shutdown \ --image-version 1.0 \ --title="CentOS V6.5 / PSPA Wep App" \ KT8gOU8gve_k3UFL7p5Els57My2 ::::::::::::::::::::::::::::: :: Starting image creation :: ::::::::::::::::::::::::::::: :: Checking that base image exists :: Retrieving image manifest :: Starting base image [WARNING] Image availability check is disabled. ::::::::::::::::::::::::: :: Starting machine(s) :: ::::::::::::::::::::::::: :: Starting 1 machine :: Machine 1 (vm ID: 4908) Public ip: 134.158.75.200 :: Done! :: Waiting for machine to boot ............................ :: Waiting for machine network to start .... :: Check if we can connect to the machine :: Executing user prerecipe :: Installing user packages :: Executing user recipe :: Executing user scripts :::::::::::::::::::::::::::::::::::::::: :: Finished building image increment. :: :::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Please check garnier@lal.in2p3.fr for new image ID and instruction. :: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Machine ready for use Machine IP: 134.158.75.200 Remember to stop the machine when finished
Installation des paquets essentiels à PSPA
ssh -Y root@134.158.75.200 yum update yum yum update -y
# Jenkins (from https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions)
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key yum install jenkins -y
# Installation de Java (pour Jenkins)
yum install java-1.6.0-openjdk
# Lancement de jenkins
sudo service jenkins start
3.Mise à disposition de cette machine dans la market place
stratus-shutdown-instance 4908
- Attendre le mail
- Récupérer le manifest attaché au mail
- Changer la date (<dcterms:valid>....</dcterms:valid>)
- stratus-sign-metadata
- uploder le manifest sur le market place : https://marketplace.stratuslab.eu/marketplace/upload
Last modified 9 years ago
Last modified on Jun 23, 2015, 4:19:35 PM