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:
- Install Docker CE (Community Edition) use the mac installer here, which is complete with docker-compose.
- For Ubuntu, follow command line installation instructions here). Note: If you're using Ubuntu, you'll also need to install manually install docker-compose. If you have Pip installed on your system, you can do this with
pip install docker-compose
- For Ubuntu, follow command line installation instructions here). Note: If you're using Ubuntu, you'll also need to install manually install docker-compose. If you have Pip installed on your system, you can do this with
git clone https://github.com/codalab/codalab-competitions.git
cd codalab-competitions
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