X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/b899d0cbe7820f3cc775cb78d0424befeaadaf0d:/doc/repository-conversion.rst..a7c6283e1153e45e6cd35bc536b49906f1d94f75:/doc/create.rst diff --git a/doc/repository-conversion.rst b/doc/create.rst similarity index 93% rename from doc/repository-conversion.rst rename to doc/create.rst index b770aed..cea861e 100644 --- a/doc/repository-conversion.rst +++ b/doc/create.rst @@ -1,29 +1,32 @@ -Repository conversion +Creating a repository ===================== .. highlight:: sh -One of Wizard's goals is to replace the previous autoinstaller infrastructure. -Pre-wizard autoinstalls live in :file:`/mit/scripts/deploy` and consist of a -tarball from upstream, possibly a scripts patch, and possibly some post-install -munging (such as the creation of a :file:`php.ini` file and appropriate -symlinks). - -Conversion to use Wizard involves placing :term:`pristine` versions of the source -code (from the upstream tarballs) and appropriately patched scripts -versions into a Git repository, as well as writing a :mod:`wizard.app` -module for the application that implements application specific logic, such -as how to install, upgrade or backup the installation. - -Here is a tutorial for performing a conversion, using Wordpress as -an example. We will implement only the functions necessary for installing -an application--upgrades and backups are not described here. - -.. todo:: - - This guide duplicates a lot of what would be covered if you were - discussing how to create a new application from scratch. Those - bits should be separated out and put in their own document. +Adding Wizard support for a web application requires some glue code +and a specially prepared repository. Creating a new repository for an +application in Wizard involves placing :term:`pristine` versions of the source +code (from the upstream tarballs) and appropriately patched scripts versions +into a Git repository, as well as writing a :mod:`wizard.app` module for the +application that implements application specific logic, such as how to install, +upgrade or backup the installation. + +Here is a tutorial for creating such a repository, using an old version of +Wordpress as an example. We will implement only the functions necessary for +installing an application--upgrades and backups are not described here. + +.. supplement:: Conversions + + One of Wizard's goals is to replace the previous autoinstaller infrastructure. + These boxes will explain extra steps that you must perform in order to carry + out a conversion of old-style autoinstalls to a Wizard autoinstall. + In brief, pre-wizard autoinstalls live in :file:`/mit/scripts/deploy` and + consist of a tarball from upstream, possibly a scripts patch, and possibly + some post-install munging (such as the creation of a :file:`php.ini` file + and appropriate symlinks). Performing a conversion means that we will + recreate these changes in our Wizard autoinstall, and you will start you + repository with the *earliest* version of the application extant on our + servers. Setup -----