Blame Manuals/Repository/repository-html/repository_15.html

4c79b5
4c79b5
<html>
ccb7a3
4c79b5
4c79b5
Permission is granted to copy, distribute and/or modify this document
4c79b5
under the terms of the GNU Free Documentation License, Version 1.2 or
4c79b5
any later version published by the Free Software Foundation; with no
4c79b5
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
4c79b5
copy of the license is included in the section entitled GNU Free
4c79b5
Documentation License.  
4c79b5
-->
bf28e1
4c79b5
4c79b5
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
4c79b5
            Karl Berry  <karl@freefriends.org>
4c79b5
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
4c79b5
            and many others.
4c79b5
Maintained by: Many creative people <dev@texi2html.cvshome.org>
4c79b5
Send bugs and suggestions to <users@texi2html.cvshome.org>
4c79b5
4c79b5
-->
4c79b5
<head>
7e35dc
<title>CentOS Artwork Repository: 3.12 trunk/Identity/Models/Tpl/Promo/Web</title>
4c79b5
7e35dc
<meta name="description" content="CentOS Artwork Repository: 3.12 trunk/Identity/Models/Tpl/Promo/Web">
7e35dc
<meta name="keywords" content="CentOS Artwork Repository: 3.12 trunk/Identity/Models/Tpl/Promo/Web">
4c79b5
<meta name="resource-type" content="document">
4c79b5
<meta name="distribution" content="global">
4c79b5
<meta name="Generator" content="texi2html 1.76">
4c79b5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4c79b5
<style type="text/css">
4c79b5
1e9202
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
4c79b5
4c79b5
a.summary-letter {text-decoration: none}
4c79b5
pre.display {font-family: serif}
4c79b5
pre.format {font-family: serif}
4c79b5
pre.menu-comment {font-family: serif}
4c79b5
pre.menu-preformatted {font-family: serif}
4c79b5
pre.smalldisplay {font-family: serif; font-size: smaller}
4c79b5
pre.smallexample {font-size: smaller}
4c79b5
pre.smallformat {font-family: serif; font-size: smaller}
4c79b5
pre.smalllisp {font-size: smaller}
4c79b5
span.sansserif {font-family:sans-serif; font-weight:normal;}
4c79b5
ul.toc {list-style: none}
4c79b5
-->
4c79b5
</style>
4c79b5
4c79b5
4c79b5
</head>
4c79b5
4c79b5
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
4c79b5
4c79b5
af3979
[ < ]
af3979
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
af3979
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
af3979
[Index]
4c79b5
[ ? ]
4c79b5
7e35dc
af3979
7e35dc

3.12 trunk/Identity/Models/Tpl/Promo/Web

4c79b5
4c79b5
af3979
4c79b5

3.12.1 Goals

4c79b5
7e35dc

Organize scalable vector graphics (svg) to help describe the CentOS

7e35dc
web environment.
7e35dc

2dc146
af3979
7e35dc

3.12.2 The CentOS web environment

2dc146
7e35dc

Inside CentOS corporate identity, the CentOS web environment is

7e35dc
considered a promotion component. The CentOS web environment is formed
7e35dc
by a central web application --to cover base needs (e.g., per-major
7e35dc
release information like release notes, lifetime, downloads,
7e35dc
documentation, support, security advisories, bugs, etc.)-- and many
7e35dc
different free web applications --to cover specific needs (e.g.,
7e35dc
wiki, mailing lists, etc.)--. 
7e35dc

7e35dc

The CentOS web environment is addressed to solve the following issues:

7e35dc

4c79b5
    7e35dc
  • One unique name and one unique visual style to all web
  • 7e35dc
    applications used inside the web environment.
    7e35dc
    7e35dc
  • One-step navigation to web applications inside the environment.
  • 7e35dc
    7e35dc
  • High degree of customization to change the visual style of all
  • 7e35dc
    web applications with few changes (e.g, updating just two or three
    7e35dc
    images plus common style sheet [CSS] definitions).
    4c79b5
    4c79b5
    7e35dc

    The CentOS project is attached to a monolithic corporate visual

    7e35dc
    identity (see section trunk/Identity), where all visual manifestations
    7e35dc
    have one unique name and one unique visual style. This way, the CentOS
    7e35dc
    web environment has one unique name (the CentOS brand) and one unique
    7e35dc
    visual style (the CentOS default theme) for all its visual
    7e35dc
    manifestations, the web applications in this case.
    7e35dc

    7e35dc

    Since a maintainance point of view, achiving the one unique visual

    7e35dc
    style inside CentOS web environment is not a simple task. The CentOS
    7e35dc
    web environment is built upon many different web applications which
    7e35dc
    have different visual styles and different internal ways to customize
    7e35dc
    their own visual styles. For example: MoinMoin, the web application
    7e35dc
    used to support the CentOS wiki (http://wiki.centos.org/) is
    7e35dc
    highly customizable but Mailman (in its 2.x.x serie), the web
    7e35dc
    application used to support the CentOS mailing list, doesn't
    7e35dc
    support(1) a customization system that separates
    7e35dc
    presentation from logic, similar to that used by MoinMoin.
    7e35dc

    7e35dc

    This visual style diversity complicates our goal of one unique visual

    7e35dc
    style for all web applications. So, if we want one unique visual style
    7e35dc
    for all web applications used, it is innevitable to modify the web
    7e35dc
    applications in order to implement the CentOS one unique visual style
    7e35dc
    customization in them. Direct modification of upstream applications is
    7e35dc
    not convenient because upstream applications come with their one
    7e35dc
    visual style and administrators take the risk of loosing all
    7e35dc
    customization changes the next time the application be updated (since
    7e35dc
    not all upstream web applications, used in CentOS web environment,
    7e35dc
    separate presentation from logic).
    7e35dc

    7e35dc

    To solve the "one unique visual style" issue, installation and

    7e35dc
    actualization of web applications --used inside CentOS web
    7e35dc
    environment-- need to be independent from upstream web applications
    7e35dc
    development line; in a way that CentOS web environment administrators
    7e35dc
    can install and update web applications freely without risk of loosing
    7e35dc
    the one unique visual style customization changes. 
    7e35dc

    7e35dc

    At the surface of this issue we can see the need of one specific yum

    7e35dc
    repository to store CentOS web environment customized web applications.
    7e35dc

    4c79b5
    af3979
    7e35dc

    3.12.2.1 Design model (without ads)

    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.2 Design model (with ads)

    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.3 HTML definitions

    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.4 Controlling visual style

    7e35dc
    7e35dc

    Inside CentOS web environment, the visual style is controlled by the

    7e35dc
    following compenents:
    7e35dc

    7e35dc
    7e35dc
    Webenv header background
    7e35dc
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Img/1024x250.png
    7e35dc
    7e35dc
    7e35dc
    CSS definitions
    7e35dc
    trunk/Identity/Themes/Models/Default/Promo/Web/CSS/stylesheet.css
    7e35dc
    7e35dc
    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.5 Producing visual style

    7e35dc
    7e35dc

    The visual style of CentOS web environment is defined in the following

    7e35dc
    files:
    7e35dc

    7e35dc
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Xcf/1024x250.xcf
    7e35dc
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Img/1024x250.png
    7e35dc
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Img/1024x250-bg.png
    7e35dc
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Tpl/1024x250.svg
    7e35dc
    7e35dc

    As graphic designer you use <tt>`1024x250.xcf'</tt> file to produce

    7e35dc
    <tt>`1024x250-bg.png'</tt> file. Later, inside <tt>`1024x250.svg'</tt> file,
    7e35dc
    you use the <tt>`1024x250-bg.png'</tt> file as background layer to draw
    7e35dc
    your vectorial design. When you consider you artwork ready, use the
    7e35dc
    centos-art.sh script, as described below, to produce the
    7e35dc
    visual style controller images of CentOS web environment.
    7e35dc

    7e35dc
    centos-art render --entry=trunk/Identity/Themes/Motifs/$THEME/Backgrounds --filter='1024x250'
    7e35dc
    7e35dc

    Once you have rendered required image files, changing the visual style

    7e35dc
    of CentOS web environment is a matter of replacing old image files
    7e35dc
    with new ones, inside webenv repository file system structure. The
    7e35dc
    visual style changes will take effect the next time customization line
    7e35dc
    of CentOS web applications be packaged, uploded, and installed from
    7e35dc
    [webenv] or [webenv-test] repositories.
    7e35dc

    7e35dc
    af3979
    7e35dc

    3.12.2.6 Navigation

    7e35dc
    7e35dc

    Inside CentOS web environment, the one-step navegation between web

    7e35dc
    applications is addressed using the web environment navigation bar.
    7e35dc
    The web environment navigation bar contains links to main applications
    7e35dc
    and is always visible no matter where you are inside the web
    7e35dc
    environment.
    7e35dc

    7e35dc
    af3979
    7e35dc

    3.12.2.7 Development and release cycle

    7e35dc
    7e35dc

    The CentOS web environment development and relase cycle is described

    7e35dc
    below: 
    7e35dc

    7e35dc
    7e35dc
    Download
    7e35dc
    7e35dc

    The first action is download the source code of web applications we

    7e35dc
    want to use inside CentOS web environment.
    7e35dc

    7e35dc
    Important

    Important

    The source location from which web application are

    7e35dc
    downloaded is very important. Use SRPMs from CentOS [base]
    7e35dc
    and [updates] repositories as first choise, and third party
    7e35dc
    repositories (e.g. RPMForge, EPEL, etc.) as last resource.
    7e35dc

    7e35dc
    7e35dc
    7e35dc
    Prepare
    7e35dc
    7e35dc

    Once web application source code has been downloaded, our duty is

    7e35dc
    organize its files inside <samp>`webenv'</samp> version controlled repository.
    7e35dc

    7e35dc

    When preparing the structure keep in mind that different web

    7e35dc
    applications have different visual styles, and also different ways to
    7e35dc
    implement it. A convenient way to organize the file system structure
    7e35dc
    would be create one development line for each web application we use
    7e35dc
    inside CentOS web environment. For example, consider the following
    7e35dc
    file system structure:
    7e35dc

    7e35dc
    https://projects.centos.org/svn/webenv/trunk/
    7e35dc
    |-- WebApp1/
    7e35dc
    |   |-- Sources/
    7e35dc
    |   |   `-- webapp1-0.0.1/
    7e35dc
    |   |-- Rpms/
    7e35dc
    |   |   `-- webapp1-0.0.1.rpm
    7e35dc
    |   |-- Srpms/
    7e35dc
    |   |   `-- webapp1-0.0.1.srpm
    7e35dc
    |   `-- Specs/
    7e35dc
    |       `-- webapp1-0.0.1.spec
    7e35dc
    |-- WebApp2/
    7e35dc
    `-- WebAppN/
    7e35dc
    7e35dc
    7e35dc
    Customize
    7e35dc
    7e35dc

    Once web applications have been organized inside the version

    7e35dc
    controlled repository file system, use subversion to create the CentOS
    7e35dc
    customization development line of web applications source code.  For
    7e35dc
    example, using the above file system structure, you can create the
    7e35dc
    customization development line of <tt>`webapp1-0.0.1/'</tt> with the
    7e35dc
    following command:
    7e35dc

    7e35dc
    svn cp trunk/WebApp1/Sources/webapp1-0.0.1 trunk/WebApp1/Sources/webapp1-0.0.1-webenv
    7e35dc
    7e35dc

    The command above creates the following structure:

    7e35dc

    7e35dc
    https://projects.centos.org/svn/webenv/trunk/
    7e35dc
    |-- WebApp1/
    7e35dc
    |   |-- Sources/
    7e35dc
    |   |   |-- webapp1-0.0.1/
    7e35dc
    |   |   `-- webapp1-0.0.1-webenv/
    7e35dc
    |   |-- Rpms/
    7e35dc
    |   |   `-- webapp1-0.0.1.rpm
    7e35dc
    |   |-- Srpms/
    7e35dc
    |   |   `-- webapp1-0.0.1.srpm
    7e35dc
    |   `-- Specs/
    7e35dc
    |       `-- webapp1-0.0.1.spec
    7e35dc
    |-- WebApp2/
    7e35dc
    `-- WebAppN/
    7e35dc
    7e35dc

    In the above structure, the <tt>`webapp1-0.0.1-webenv/'</tt> directory is

    7e35dc
    the place where you customize the visual style of
    7e35dc
    <tt>`webapp1-0.0.1/'</tt> web application. 
    7e35dc

    7e35dc
    Info

    Tip

    Use the diff command of Subversion between

    7e35dc
    CentOS customization and upstream development lines to know what you
    7e35dc
    are changing exactly.
    7e35dc

    7e35dc
    7e35dc
    7e35dc
    Build packages
    7e35dc
    7e35dc

    When web application has been customized, build the web application

    7e35dc
    RPM and SRPM using the source location with <samp>`-webenv'</samp> prefix. 
    7e35dc

    7e35dc
    https://projects.centos.org/svn/webenv/trunk/
    7e35dc
    |-- WebApp1/
    7e35dc
    |   |-- Sources/
    7e35dc
    |   |   |-- webapp1-0.0.1/
    7e35dc
    |   |   `-- webapp1-0.0.1-webenv/
    7e35dc
    |   |-- Rpms/
    7e35dc
    |   |   |-- webapp1-0.0.1.rpm
    7e35dc
    |   |   `-- webapp1-0.0.1-webenv.rpm
    7e35dc
    |   |-- Srpms/
    7e35dc
    |   |   |-- webapp1-0.0.1.srpm
    7e35dc
    |   |   `-- webapp1-0.0.1-webenv.srpm
    7e35dc
    |   `-- Specs/
    7e35dc
    |       |-- webapp1-0.0.1.spec
    7e35dc
    |       `-- webapp1-0.0.1-webenv.spec
    7e35dc
    |-- WebApp2/
    7e35dc
    `-- WebAppN/
    7e35dc
    7e35dc
    7e35dc
    Release for testing
    7e35dc
    7e35dc

    When the customized web application has been packaged, make packages

    7e35dc
    available for testing and quality assurance. This can be achives using
    7e35dc
    a [webenv-test] yum repository. 
    7e35dc

    7e35dc
    info

    Note

    The [webenv-test] repository is not shipped inside

    7e35dc
    CentOS distribution default yum configuraiton. In order to use
    7e35dc
    [webenv-test] repository you need to configure it first.
    7e35dc

    7e35dc
    7e35dc

    If some problem is found to install/update/use the customized version

    7e35dc
    of web application, the problem is notified somewhere (a bugtracker
    7e35dc
    maybe) and the customization face is repated in order to fix the
    7e35dc
    problem. To release the new package add a number after <samp>`-webenv'</samp>
    7e35dc
    prefix. For example, if some problem is found in
    7e35dc
    <tt>`webapp1-0.0.1-webenv.rpm'</tt>, when it be fixed the new package will
    7e35dc
    be named <tt>`webapp1-0.0.1-webenv-1.rpm'</tt>. If a problem is found in
    7e35dc
    <tt>`webapp1-0.0.1-webenv-1.rpm'</tt>, when it be fixed the new package
    7e35dc
    will be named <tt>`webapp1-0.0.1-webenv-2.rpm'</tt>, and so on.
    7e35dc

    7e35dc

    The "customization -- release for testing" process is repeated

    7e35dc
    until CentOS quality assurance team considers the package is ready for
    7e35dc
    production.
    7e35dc

    7e35dc
    7e35dc
    Release for production
    7e35dc
    7e35dc

    When customized web application packages are considered ready for

    7e35dc
    production they are moved from [webenv-test] to [webenv] repository.
    7e35dc
    This action is commited by CentOS quality assurance team.
    7e35dc

    7e35dc
    info

    Note

    The [webenv] repository is not shipped inside CentOS

    7e35dc
    distribution default yum configuraiton. In order to use [webenv]
    7e35dc
    repository you need to configure it first.
    7e35dc

    7e35dc
    7e35dc
    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.8 The [webenv-test] repository

    7e35dc
    7e35dc
    /etc/yum.repos.d/CentOS-Webenv-test.repo
    7e35dc
    7e35dc
    [webenv-test]
    7e35dc
    name=CentOS-$releasever - Webenv-test
    7e35dc
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=webenv-test
    7e35dc
    #baseurl=http://mirror.centos.org/centos/$releasever/webenv-test/$basearch/
    7e35dc
    gpgcheck=1
    7e35dc
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
    7e35dc
    enabled=1
    7e35dc
    priority=10
    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.9 The [webenv] repository

    7e35dc
    7e35dc
    /etc/yum.repos.d/CentOS-Webenv.repo
    7e35dc
    7e35dc
    [webenv]
    7e35dc
    name=CentOS-$releasever - Webenv
    7e35dc
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=webenv
    7e35dc
    #baseurl=http://mirror.centos.org/centos/$releasever/webenv/$basearch/
    7e35dc
    gpgcheck=1
    7e35dc
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
    7e35dc
    enabled=1
    7e35dc
    priority=10
    7e35dc
    7e35dc
    af3979
    7e35dc

    3.12.2.10 Priority configuration

    7e35dc
    7e35dc

    Both [webenv] and [webenv-test] repositories update packages inside

    7e35dc
    CentOS [base] and CentOS [updates] repositories.
    7e35dc

    7e35dc
    af3979
    4c79b5

    3.12.3 Usage

    4c79b5
    bc3531
      bc3531
    • ...
    • bc3531
      bc3531
      4c79b5
      af3979
      4c79b5

      3.12.4 See also

      4c79b5
      7e35dc
      af3979
      3.10 trunk/Identity/Models/Img/Promo/Web  
      7e35dc
      7e35dc
      4c79b5
      4c79b5
      4c79b5
      af3979
      [ < ]
      af3979
      [ > ]
      4c79b5
         
      4c79b5
      [ << ]
      af3979
      [ Up ]
      af3979
      [ >> ]
      4c79b5
      4c79b5

      4c79b5
       <font size="-1">
      bf28e1
        This document was generated on February, 27 2011 using texi2html 1.76.
      4c79b5
       </font>
      4c79b5
       
      4c79b5
      4c79b5

      4c79b5
      </body>
      4c79b5
      </html>