Developers

Deploy is licensed under the GPL, version 2.

Viewing Deploy Source Code

Deploy source code is/ available for browsing at https://dev.azure.com/rosie-io/deploy/_git/deploy.

Running Deploy from Source Code

You can also check out Deploy and run it directly from source code using the steps below.

Deploy requires a 64-bit architecture system installed with CentOS or Red Hat Enterprise Linux (RHEL) version 6. A system with hardware virtualization support is recommended for testing using local virtual machines.

  1. Install Deploy dependencies.
  2. Working with Deploy directly from source code requires additional software packages to be installed on your system. You can install these packages as described below. Note that some may already be installed.

    First, download the repository release package from the link below:
    deploy-release-6.25.el6.noarch.rpm

    Next, install the downloaded package using the following command.

    rpm -Uvh path/to/downloaded/package
    

    Finally, install Deploy required packages using the following command. Installing the deploy-developer-config package automatically installs all required packages.

    # yum install deploy-developer-config
    
  3. Check out the sources to a folder of your choosing, referred to as $WORKSPACE below. Deploy source code is managed using Git.
  4. $ cd $WORKSPACE
    $ git clone https://dev.azure.com/rosie-io/deploy/_git/deploy
    
  5. Add the Deploy library location to Python site-packages.
  6. $ ln -s $WORKSPACE/deploy/deploy /usr/lib/python2.7/site-packages/deploy
    
  7. Create the Deploy configuration file.
  8. As root user, create a file named 'deploy.conf' in the '/etc/deploy/' folder

    # mkdir /etc/deploy
    # touch /etc/deploy/deploy.conf
    

    and add the following lines, again replacing $WORKSPACE:

    <deploy>
      <lib-path>$WORKSPACE/deploy</lib-path>
      <share-path>$WORKSPACE/deploy/share/deploy</share-path>
      <templates-path>$WORKSPACE/deploy/share/deploy/templates</templates-path>
    </deploy>
    
  9. Run Deploy
  10. To run Deploy, type the following at the command line, replacing $WORKSPACE with the correct location. Note that Deploy must be run as the root user because it mounts and modifies installation images during the system build process . See the Deploy Quick Start for information on creating a simple definition.

    # $WORKSPACE/bin/deploy path-to-definition