NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to Windows Azure Management Portal.
  2. Go to VM Screen, select "+ NEW" from the lower left corner of the screen.
  3. On the pane that appears select, Compute > Virtual Machine > Quick Create.

    DNS Name: pick something unique and memorable
    Image: Ubuntu Server 13.04
    New Password/Confirm: provide a good password for the azureuser
    Region/Affinity Group: West US
    
  4. Click Create a virtual machine.

  5. Once your virtual machine is created, select it from the VM screen.

  6. Go to the Endpoints menu.

    (+ Add) an Endpoint at the bottom of the screen.

    Provide the following information
        Name: HTTP
        Public Port: 80
        Private Port: 8000
    
  7. Restart the VM from the management console.

    Troubleshooting note: You may get a message that Endpoint was successfully created but restart failed. In this case, go back to Dashboard (Management Console) and click Restart. In some cases, multiple attempts may be required.

    At this point, it appears that a restart is not mandatory to continue with configuration.

  8. Now you can login to it and start configuring things.

  9. Login to your VM via ssh as: azureuser <password provided at vm build - Step 3)
  10. Things to do once you're in Ubuntu.

    1. sudo apt-get update
      1. enter password (azureuser password from Step 3)
    2. sudo apt-get upgrade -y
    3. sudo apt-get install git python-pip -y
    4. sudo pip install virtualenv

...

Installation Prerequisites

  1. Install Python 2.7. For current Debian-based Linux distributions (such as Ubuntu), BSD and Mac Python 2.7 is usually installed. However Redhat-based Linux distributions, such as RHEL and CentOS, are sometimes behind the curve and do not have Python 2.7. As of this writing, CentOS 6.4 is at Python 2.6, which is well on its way to EOL. Python 2.6 may work, but code will be written with 2.7 and 3.3+ in mind. Below are instructions for Ubuntu Linux 13.04+.

    sudo apt-get install python2.7 python2.7-dev python-virtualenv

  2. Install PIP.

    sudo apt-get install python-pip

  3. Install virtualenv.

    sudo apt-get install python-virtualenv

  4. Install Git.

    sudo apt-get install git

  5. Install the prerequisites for MySQL-Python.

    sudo apt-get install build-essential python-dev libmysqlclient-dev

Create storage containers

...

In order to test uploading and running bundles in CodaLab, you will need to have a Windows Azure storage account. Once you have set up your Azure account, log on to the Azure Portal and follow the steps in this section.

  1. Log on to the Azure Portal.
  2. In the left pane, click Storage.
  3. Select your storage account.
  4. At the bottom of the dashboard, click Manage Access Keys. Copy your access keys, you'll need them later.
  5. At the top of the dashboard page, click Containers.
  6. At the bottom of the Containers page click Add.
  7. Create a new container named "bundles". Set the Access to "Private".
  8. Add another container named "public". Set the Access to "Public Blob".

Add a service bus namespace

  1. Install azure-cli.

    In Ubuntu it can be installed using the following command:

    sudo apt-get install nodejs-legacy
    sudo apt-get install npm
    sudo npm install -g azure-cli

    To login run the following command:

    azure login

    Copy the code offered to you, above, and open a browser to http://aka.ms/devicelogin. Enter the code, and then you are prompted to enter the username and password for the identity you want to use. When that process completes, the command shell completes the log in process.

  2. From command line azure sb namespace create <name> <location> where <location> can be "East US"

  3. Log on to the Azure Portal.
  4. In the left pane, click Service Bus.
  5. Select the service bus you just created.
  6. At the top of the screen click Queues.
  7. Click Create a new queue.
  8. Click Quick Create and create a new queue named "compute".
  9. Click Create A New Queue.
  10. At the bottom of the screen, click New, and create another queue named "response".
  11. In the left pane, click Service Bus.
  12. At the bottom of the page, click Connection Information.
  13. Copy the following connection information:
    • Namespace name
    • Default issuer
    • Default key

...

Install CodaLab-CLI

  1. Make sure you have the dependencies (Python 2.7 and virtualenv). If you're running Ubuntu:

    sudo apt-get install python2.7 python2.7-dev python-virtualenv
    
  2. Clone the CodaLab repository:

    git clone https://github.com/codalab/codalab-cli
    cd codalab-cli
    
  3. Run the setup script (will install things into a Python virtual environment):

    ./setup.sh
    
  4. Set your path to include CodaLab (add this line to your .bashrc):

    export PATH=$PATH:<path to codalab-cli>/codalab/bin
    
  5. Optional: include some handy macros (add this line to your .bashrc):

    . <path to codalab-cli>/rc
    

...

Install CodaLab

  1. Fork the CodaLab repo from GitHub.

  2. Clone your fork.

...