Rev 4003 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#-------------------------------------------------------------------------------# Documentation#=pod=for htmltoc CORE::=head1 NAMEPackage Storage Archives used by JATS=head1 SYNOPSISPackage archives are repositories for Packages that have been built by JATS.There are six types of package archive, as shown below together with thesearch order.=over=item 1L<sandbox_archive> (User current sandbox)=item 2L<local dpkg_archive|local_dpkg_archive> (User local store)=item 3L<dpkg_archive_cache> (Machine local cache)=item 4L<dpkg_archive_replica> (Site repository)=item 5L<dpkg_archive> (Master repository)=item 6L<deploy_archive> (Site repository)=item 7L<dpkg_archive_store> (Global repository)=backThese are detailed in the following sections.=over 4=item dpkg_archivedpkg_archive is the common package repository. This is on a shared network driveand as such affects the build speed. JATS supports several mechanisms to supplementdpkg_archive, as described below.This archive is mandatory. Its location if specified by the EnvVar L<GBE_DPKG>.=item deploy archivedeploy_archive is the common package repository for deployable packages andis similar to dpkg_archive.This archive is optional. Its location if specified by the EnvVar L<GBE_DPLY>.=for htmlclass NoteNote: Use of the deploy_archive has been deprecated. It is now the same asdpkg_archive.=item sandbox archivesandbox_archive is the common package repository for packages that arebeing built within a jats 'L<Sandbox|TOOLS::jats_sandbox>'. It is used to storethe packages generated by all builds within a sandbox.This archive location will be determined automatically by JATS. It is onlyused with the scope of a sandbox.=item local dpkg_archiveJATS supports a package archive that is local to a project or suite of buildsandboxes. This is the archive used by the L<install|TOOLS::jats/"item_install"> command.The user does not have to do anything to access this archive. The archive islocated by the JATS wrapper script by scanning up the directory tree for adirectory called "local_dpkg_archive". If it is found then it is used as thepreferred source for locating archives. This allows a component to be testedwith a "local" or "fixed" version of another package, before an officialrelease is made.A local archive may be shared by members of a team by setting the environmentvariable L<GBE_DPKG_LOCAL> to the location of a shared drive.=for htmlclass NoteNote: This type of archive is being deprecated for normal development in favourof the 'L<Sandbox|TOOLS::jats_sandbox>' Archive.=item dpkg_archive cacheJATS supports a package caching mechanism to reduce network utilization. Ifthe user specified L<GBE_DPKG_CACHE> exists then that archive is treated as acache archive. The various JATS tools work together to maintain the cache.This cache must be setup by the user.=item dpkg_archive storeJATS supports a global, read-only, package distribution mechanism. Ifthe user specified L<GBE_DPKG_STORE> exists then that archive is treated as aglobal store. The store archive will be searched after all other archives.A global store may be used by members of a global team, in a situation inwhich the store is rsync'ed from a central repository.=item dpkg_archive replicaJATS supports a global, read-only, package distribution mechanism. Ifthe user specified L<GBE_DPKG_REPLICA> exists then that archive is treated as aglobal store. The store archive will be searched before other site repository.A replica store is used to provide fast access to packages that have been replicated fromthe main package archive, which may be located remotely.=back