Page History
...
Create a Windows Azure Ubuntu Virtual Machine
- Login Log in to Windows Azure Management Portal.
- Go to VM Screen, select "+ NEW" from the lower left corner of the screen.
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
Click Create a virtual machine.
Once your virtual machine is created, select it from the VM screen.
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
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.
Now you can login to it and start configuring things.
- Login to your VM via ssh as: azureuser <password provided at vm build - Step 3)
Things to do once you're in Ubuntu.
- sudo apt-get update
- enter password (azureuser password from Step 3)
- sudo apt-get upgrade -y
- sudo apt-get install git python-pip -y
- sudo pip install virtualenv
- sudo apt-get update
...
Run the following commands to initialize the database.
Windows
cd codalab python manage.py validate python manage.py syncdb --migrate python scripts\initialize.py
Linux
cd codalab python manage.py validate python manage.py syncdb --migrate python scripts/initialize.py
Run tests to verify that everything is working.
python manage.py test
Optional: Populate the site with some sample data.
Windows
python scripts\users.py python scripts\competitions.py
Linux
python scripts/users.py python scripts/competitions.py
Configure the Bundle Service to run
...
locally
This note will explain how to run the CodaLab Django web site and the CodaLab bundle service (cl server) side-by-side on a single machine. This setup is useful for people doing development, especially when working at the interface between the two systems.
...