Meego Wiki
Views

User:Rolla/image-creation-notes

From MeeGo wiki
< User:Rolla
Revision as of 00:07, 14 December 2010 by Uhofemeier (Talk | contribs)
Jump to: navigation, search

!!! FIRST CHECK IF ALL REPOS HAVE FINISHED BUILDING AND NOTHING FAILS TOO BADLY !!!

ssh download.meego.com

sudo su repos

cd


  • AS USER repos


  • If Tuesday
    pushd /srv/www/vhosts/repo.m2.org/MeeGo
    cp -al builds/trunk/daily builds/trunk/{BUILDID}
    popd
    cd ./bin
    sh diff-trunk-repos {_LAST_BUILDID} {BUILDID}
    *check changelog to insure correct repos were are being used to diff
    ~repos/bin/sync-repos
  • Check repo.meego.com/MeeGo/ for expected change
  • If Trunk-Daily
    pushd /srv/www/vhosts/repo.m2.org/MeeGo
    cp -al builds/trunk/daily /srv/www/vhosts/trunk-daily/builds/trunk/{BUILDID}
    *copy sdk repo
    cd /srv/www/vhosts/repo.m2.org/MeeGo
    cp -al sdk/target/repos/meego/trunk /srv/www/vhosts/trunk-daily/builds/trunk/{BUILDID}/sdk
    popd
    cd ./bin
    sh ./diff-trunk-daily-repos {_LAST_BUILDID} {BUILDID}
    *check changelog to insure correct repos were are being used to diff
    cp ChangeLog-trunk-daily-* /srv/www/vhosts/trunk-daily/builds/trunk/{BUILDID}/.


  • Check download.meego.com/trunk-daily/ for expected change
  • If Testing-Daily
    pushd /srv/www/vhosts/testing
    cp -al trunk /srv/www/vhosts/testing-daily/builds/trunk/{BUILDID}
    *copy sdk repo
    cd /srv/www/vhosts/repo.m2.org/MeeGo
    cp -al sdk/target/repos/meego/trunk /srv/www/vhosts/testing-daily/builds/trunk/{BUILDID}/sdk
    popd
    cd ./bin
    sh ./diff-testing-daily-repos {_LAST_BUILDID} {BUILDID}
    *check changelog to insure correct repos were are being used to diff
    cp ChangeLog-trunk-daily-* /srv/www/vhosts/testing-daily/builds/trunk/{BUILDID}/.


  • Check download.meego.com/testing-daily/ for expected change

exit back to user

ssh 192.168.50.8 (AKA image server)

sudo su

cd




  • AS USER root

*using SCREEN is preferred

screen -r

pushd /root/images/image-configurations

  • For Tuesday Images

../../create-daily.sh {BUILDID} 1 Trunk

  • For trunk-daily Images

../../create-daily.sh {BUILDID} 4 Trunk

  • For testing-daily Images

../../create-daily.sh {BUILDID} 5 Trunk

(use cntrl-a-d to detach the screen, and screen -r <id> to reattach)

IF GENERATING THE IMAGES FAILS!!

Make sure no MIC processes are left running before you attempt running the script.

  • AS USER root

/usr/local/bin/cleanup-dead-mic

  • Check to insure all images are created

cd ./{BUILDID}/core/images/ cd ./{BUILDID}/IVI/images/ cd ./{BUILDID}/handset/images/ cd ./{BUILDID}/netbook/images/

  • RSYNC the images back to the download server

WEEKLY: rsync -avz <build_id> rsync://192.168.50.95/m2public/builds/<build_major_release_number>

TRUNK-DAILY: rsync -avz <build_id> rsync://192.168.50.95/trunk-daily/builds/<build_major_release_number>

TESTING-DAILY: rsync -avz <build_id> rsync://192.168.50.95/testing-daily/builds/<build_major_release_number>

   e.g.
   WEEKLY: rsync -avz 1.1.80.3.20101022.1 rsync://192.168.50.95/m2public/builds/1.1.80/
   TRUNK-DAILY: rsync -avz trunk-daily-1.1.80.9.20101206.1 rsync://192.168.50.95/trunk-daily/builds/1.1.80/
   TESTING-DAILY: rsync -avz testing-daily-1.1.80.9.20101206.1 rsync://192.168.50.95/testing-daily/builds/1.1.80/



  • If Weekly Tuesday, sync the repos and images back to external site

exit back to downloads.meego.com to sync to repo.meego.com

on download.meego.com

sudo su repos

cd /home/repos/bin

sync-repos


  • go though all bugs and features in change log and insure that the bugs

and features has been marked released.

Personal tools