NIH | National Cancer Institute | NCI Wiki  

 Environment

Note: If you are upgrading from an older version of Codalab that doesn't use Docker, please make sure you remove your settings/local.py file!

On Mac/Linux

Clone the project and make a copy of .env_sample (or .env_production_sample if you're creating a production server) called .env in the root of the project directory:

  1. Install Docker CE (Community Edition) use the mac installer here, which is complete with docker-compose.
  2. git clone https://github.com/codalab/codalab-competitions.git
  3. cd codalab-competitions
  4. cp .env_sample .env

Editing project variables

Open .env in your preferred editor, you'll fill this in with your storage keys, SSL information, etc.

Be sure to replace passwords/secrets!

# Here are some important settings to consider:
# =============================================
# Always set the secret key!
DJANGO_SECRET_KEY=something-random

# For storage you'll want to choose AWS or S3, and comment out or delete the other one
# DEFAULT_FILE_STORAGE=storages.backends.s3boto.S3BotoStorage
# ... and rest of AWS settings
#
# or
# DEFAULT_FILE_STORAGE=codalab.azure_storage.AzureStorage 
# ... and rest of Azure storage settings

# Change the secrets, passwords, and ports if you're going to open up the rest, 
# but with just the default setup and port 80 open the only other thing you may have
# to worry about is SSL. The bottom of this doc has a section on SSL
  • No labels