Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

IT Infrastructure Doc

Revision as of 17:46, 16 September 2008 by Karl.matthias.eclipse.org (Talk | contribs) (Manage UNIX groups for CVS access?)

Website

How do I setup my project website?

Project websites are hosted in a CVS repository separate from the actual project code. The repository path is dev.eclipse.org:/cvsroot/org.eclipse, in the www component. Once the webmaster adds a space for your project, files you commit to the website CVS are automatically checked out to www.eclipse.org/xyz, where xyz is your project's short name. You are free to use HTML and PHP on your website.
sting a project website is normally done when the project proposal has been approved. If you suspect your files are not being checked out to the www.eclipse.org website, simply commit a small change to one file. This is usually enough to trigger a website refresh.

How do I author web pages using the Phoenix method?

Please see <a href="phoenix.php">this document</a> for information on using Phoenix. You can also check out: <a href="http://wiki.eclipse.org/Using_Phoenix">Using Phoenix</a> and <a href="http://www.eclipse.org/phoenix/docs/sample_pages.php">Sample Pages</a>

Access the Bugzilla database using PHP?

Please see the section labeled "[tools]" in the Portal

Use a database for my website?

We currently do not offer projects with database support.

I need to put a large file on my website. How should I do this?

Large (1 MB+) ZIP and JAR files must be put in the downloads area, using the Find A Mirror script to link to them. However, small files (less than 1 MB) can be put on the www.eclipse.org/yourproject website directly without causing too much harm.

The Find A Mirror script supports transparent mirror use, so large screencasts and PDFs can be put in the downloads area as well without imposing the added step of selecting a mirror site for the file. Simply add &r=1 to the URL. For instance, http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.1-200506271435/eclipse-SDK-3.1-linux-gtk.tar.gz&r=1 will fetch you the Eclipse SDK 3.1 for Linux from a random mirror site without asking you which one.

Remember to allow our mirrors at least 24 hours to sync up before using a transparent mirror redirect.

Use PHP on my website?

PHP support is available on www.eclipse.org only. Simply commit files with the .php file extention to your website's CVS repository. Although some projects host PHP files on download.eclipse.org, we do not encourage or recommend it.

Eclipse.org is a high-traffic website. Please make sure your PHP code is optimized to run in this type of environment. See the next item.

Optimize my PHP code for large-scale use?

Eclipse.org is a high-traffic website. To improve PHP's functionality, we have set very liberal limits on how many resources PHP can consume. However. if if your project is very popular, bad PHP code can slow the entire site down.

Of course, we could harden PHP to protect our website, but that would cut some functionality. Some tips for you:

  • Never call the web service to include/open files - include("http://www.eclipse.org/somefile.html") and fopen("http://localhost/somefile.xml") are very costly to run, because they call the web service, and can lead to eclipse.org Denial-Of-Servicing itself under heavy load.
  • Never include/open remote files - include("http://www.someothersite.org/somefile.html") is forbidden, as someone could launch a Denial-Of-Service attack against a remote site. We don't allow you to establish remote connections from eclipse.org servers other than the build server.
  • Sanitize your incoming parameters - include($parameter) is particularly dangerous if $parameter is not sanitized. Someone could freely surf the web anonymously, hiding behind eclipse.org servers, or they could use your page to access local files, or launch Denial-Of-Service attacks against remote servers.
  • Cache aggregated, processor-intensive data - SQL aggregations, file system scans, Bugzilla lists can (and should) be cached to avoid redundant processor- and disk-intensive operations. For instance, scanning through download.eclipse.org directories to display the size of a build could be useful, but doesn't need to happen for each website visitor. Cache the results of this operation to a file, and update the file if the file is older than 12 hours.

There are many, many other security and PHP best-practices. These are just the basics.

CVS

Connect to Eclipse CVS?

Please see <a href="http://dev.eclipse.org/cvshowto.html">this page</a>.

Connect to Eclipse CVS when PSERVER and/or EXTSSH are firewalled?

Please see the Proxy configuration on <a href="http://wiki.eclipse.org/index.php/CVS_Howto">this page</a>.

Delete files from CVS?

Although you can use SSH and a terminal to delete files in your CVS repository, we recommend you open a Bugzilla bug, in Community CVS, requesting the files that need to be deleted.

Manage UNIX groups for CVS access?

The unix groups are essentially webmaster tools used to manage commit rights to CVS repositories and to the downloads area. For each project (Eclipse-Foundation-sanctioned project, such as Eclipse Platform, DSDP-DD, Mylar, CDT, etc) we typically create three groups:

  • project-dev: the group of accounts that can commit to the project's code repository
  • project-home: the group of accounts that can commit to the project'ss website
  • projectadmin: those who can store files in the downloads area.

For some projects, having all committers in one group with commit rights across the entire project is not adequate when some committers must be limited to a specific set of modules. In these cases, we create project-module groups that allow specific committers to only commit to that portion of CVS.

Bugzilla

Create a new Component/Version/Milestone/Target?

<a href="http://wiki.eclipse.org/index.php/Webmaster_FAQ#I_need_to_add.2Fremove.change_a_version.2Fmilestone.2Fcomponent_in_Bugzilla._How_do_I_do_this.3F">Please see the documentation here</a>

Downloads

Put files on the download server?

Downloadable files must be placed on the download.eclipse.org server so they can be mirrored to our mirror sites worldwide. Please refer to the <a href="paths.php">File Paths</a> document to see where your files should go.

Please ensure only pertinent, current files are in the downloads area, as we cannot store an eternity of nightly, integration and stable builds. Production releases can be kept forever; however, we ask that you move archived releases to archive.eclipse.org (see below).

To transfer your files, use an SCP(committers,release engineers) or SFTP(build engineers only) client and connect to download1.eclipse.org using your committer account. Transfer files to your project's directory in the downloads area (Typically ~/downloads/toplevel/yourproject). Your project's downloads directory is typically communicated to the Project Lead upon project provisionning.

arge projects with frequent builds can request an RSYNC configuration to push files into the download server. Please contact the WebMaster for this.

Once your files are on the download.eclipse.org server, it will take anywhere from 5 minutes to 2 hours (30 minutes typical) for them to be available to the general public. You may also get Access Forbidden errors during this time. This is due to cluster replication delay times, so we ask that you allow for 2 hours before linking to the download files. Also, it typically takes a day or two for all the mirror sites to synchronize with us and get new files.

To make your downloads available to the general public, please do not link directly to download.eclipse.org. Instead, use the Find a Mirror script. Using this script allows you to view download statistics and allows users to pick a nearby mirror site for their download.

Please note that although we tolerate PHP, HTML and JPG/GIF files on download.eclipse.org, we encourage you to put such files on www.eclipse.org. Those files are not mirrored to public mirror servers.

To save disk space on our mirror servers, and to reclaim some quota space, we recommend you move old release builds to archive.eclipse.org.


Move files to archive.eclipse.org?

Because our mirror sites don't have as much disk space for Eclipse file as we do, we have created an http://archive.eclipse.org site for you to store older release builds.

The archive.eclipse.org structure is similar to that of download.eclipse.org. To move your files, we recommend using the SSH prompt as below. If you are

not comfortable with the SSH prompt, you can ask WebMaster to move the files for you.

ssh yourcommitterid@dev.eclipse.org

mv ~/downloads/your/project/oldrelease/ /home/data/httpd/archive.eclipse.org/your/project/oldrelease/

See which mirror sites are mirroring my files?

You can use the Find a Mirror script to see which mirror sites have your files. The Find a Mirror script is here: http://www.eclipse.org/downloads/download.php Parameters: file (Required): specify the filename, relative to the downloads home, starting with a "/". This file or directory must exist in the downloads area. format (Optional): specify html (default) or xml. Useful for building the mirrors.xml for Update sites. protocol (Optional): ftp or http: list only ftp or http mirrors only (both are the default) r (Optional): specify 1 to automatically redirect to a random mirror without asking the user to choose. nf (Optional): specify 1 to get an actual 404 Not Found error if the file doesn't exist (instead of a lovely page saying so). Examples: All mirrors of the Lepido project, in XML format: http://www.eclipse.org/downloads/download.php?file=/technology/lepido/M1/&format=xml Get a file from a random mirror, without prompting: http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.1-200506271435/eclipse-SDK-3.1-win32.zip&r=1 PLEASE NOTE: We have a list of excluded file patterns -- files that are *not* sent to our mirrors. Nightly and Integration builds are typically very large and don't get many downloads, therefore it's typically more costly (in terms of bandwidth) to mirror them than to support the few client downloads they generate. At time of writing, our exclusion list is: drops/I* drops/N* drops/M* webtools/committers/ *.jpg *.gif callisto/staging/ callisto/testUpdates/ eclipse/testUpdates/ eclipse/updates/3.2milestones dev/TPTP*


Use the Find a Mirror script?

Mirror sites are polled every hour to determine the freshness of the mirror site. The Find a Mirror site will determine which mirrors have the file a user requested and will display the list. To use it, simply link to the following URL:

http://www.eclipse.org/downloads/download.php?file=/toplevel/yourproject/yourfile.zip

Parameters: file (Required): specify the filename, relative to the downloads home, starting with a "/". This file or directory must exist in the downloads area. format (Optional): specify html (default) or xml. Useful for building the mirrors.xml for Update sites. protocol (Optional): ftp or http: list only ftp or http mirrors only (both are the default) r (Optional): specify 1 to automatically redirect to a random mirror without asking the user to choose. nf (Optional): specify 1 to get an actual 404 Not Found error if the file doesn't exist (instead of a lovely page saying so).


For instance: A file in the BIRT project: http://www.eclipse.org/downloads/download.php?file=/birt/1.0/chart/someFile.zip

A file in the Technology project, http mirrors only, don't prompt the user for a mirror: http://www.eclipse.org/downloads/download.php?r=1&protocol=http&file=/technology/cme/R-1.2.4-200105211245/someFile.zip

A file in the Tools project: http://www.eclipse.org/downloads/download.php?file=/tools/cdt/R-1.2.4-200105211245/someFile.zip

Create an Update Site?

Project update sites are currently not integrated to the Platform update site, and therefore you must provide Update instructions on your website.

# In your downloads directory, create a directory called update-site # in update-site/, put your features in a features/ subdirectory, your plugins in a plugins/ subdirectory, and your site.xml file in the update-site/ directory. # Use the mirrorsURL tag with the Find A Mirror script to prompt the users for a mirror site. See a sample site.xml file below. # Provide instructions on your download pages that tell the user to add a remote Update site, and indicate the url to your update-site/ directory

Sample site.xml file (from Lepido project):

<?xml version="1.0" encoding="UTF-8"?>
<site mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/technology/lepido/update-site/site.xml&amp;format=xml">
   <description url="http://download.eclipse.org/technology/lepido/update-site/">
      Lepido, Tools for Apache Cocoon
   </description>
   <feature url="features/org.eclipse.lepido_0.1.0.jar" id="org.eclipse.lepido" version="0.1.0">
      <category name="lepido"/>
   </feature>
   <category-def name="lepido" label="Lepido, Tools for Apache Cocoon"/>
</site>

See download statistics?

The Find a Mirror script tracks download requests once the user has picked a mirror site (or the main Eclipse download site). To view these statistics, use the Live Download Statistics tool in the Committer Tools.

View my disk space quota?

Because the downloads content is mirrored worldwide, Eclipse.org imposes disk space quotas to not overburden our mirror sites. There are no quotas on mail, CVS or www.eclipse.org website content. New projects are configured with

We appreciateotas. If this is insufficient, we can increase the quota to suit your needs. However, before increasing a quota, we will make sure that your downloads area doesn't contain old or stale files.

your keeping the downloads areas as lean and clean as possible.

You can view your project's download.eclipse.org disk usage and quota <a href="../committertools/diskspace.php">here</a>.

Increase my disk space quota?

Before requesting your quota be increased, please delete any old files that are no longer required, and move older release builds to archive.eclipse.org (instructions above). If you are confident that your download.eclipse.org footprint is as small as it can be and that you're still running out of space, simply send an e-mail to the WebMaster with your request, stating which project you're on.

Sign my plugins/ZIP files?

The Eclipse Foundation will allow one or two committers on each project to sign JAR and ZIP files on its behalf. Signing is done on the build.eclipse.org server, using your CVS userid and an SSH command line. To sign, simply get your PMC or Project Lead to contact the webmaster@eclipse.org to indicate the committers (max. 2) that should have signing privilege. Typically, the release engineers, build teams or whoever puts the files on download.eclipse.org should be the signers.


Builds

Access/use the Eclipse Build Server?

Committers can use the build.eclipse.org server to run builds and tests for their project. Unlike the other eclipse.org servers, committers are permitted to run software on this server, and to maintain running software in the background. If you need to run cron jobs, please contact the webmaster, stating the time and frequency at which these jobs are to run, and for how long they typically run. Server details: host: build.eclipse.org username: use your committer account server: IBM P5 550 quad-cpu, 16G of RAM architecture: PPC64

You can use an SSH client to connect to the server. Here are some directories that are of interest: /cvsroot -> the CVS repositories, connected to eclipse.org via a Gigabit connection. Your Build account cannot write to these files directly

/home/data/httpd/download.eclipse.org -> the download.eclipse.org root, connected to eclipse.org via Gigabit connection.

/shared -> a shared disk to store your build files and applications. Please note, however, that we do not maintain backups of this directory. This path is structured like the downloads area, and is accessible via http://build.eclipse.org/

/shared/common -> a common location to store applications. Ant and JDK 5.0 are located there.

If you have any questions, please contact the webmaster.


Mailing Lists

Setup a new mailing list?

Because Mailing Lists are subject to SPAM and can adversely affect eclipse.org performance (imaging sending 200 e-mails to a list that contains 3000 members), proper care is taken in configuring each list. New mailing lists are set up by the WebMaster for this reason. Also, the webmaster creates an HTML view (called mailing list archives) of mailing list postings for archive and search purposes.

View list members?

Because mailing lists contain private information, such as a member's e-mail address, name and surname, we cannot publicly display this information. However, the PMC or Project Lead can become the list administrator, which would allow you to view the membership information for your lists. The PMC/Project lead can inquire about list administration to the WebMaster, stating which lists they would like to manage.


Eclipse Wiki

Create a new page in the Eclipse Wiki

To create a new page, simply type the page name at the end of "index.php/" in the URL. The name can contain spaces. For instance,

                   http://wiki.eclipse.org/index.php/Some_Page will allow you to create and edit this new page.

Eclipse Servers

When you become committer, your default shell allows only CVS and SVN commands. If you need a 'real' shell for dealing with distribution files or working with automated builds, you'll need to have your project lead or the project PMC file a bug requesting the upgrade.


This page is moderated by Anne Jacko and Bjorn Freeman-Benson (Eclipse Foundation)

Back to the top