Page History
...
Now if we run ‘docker-compose’, we should get the options list telling us how to use this command verifying it is installed and we can use it.
Step 2 - Get the Source Code
The latest and greatest code is located here: https://github.com/codalab/codalab-competitions. Both sets of instructions want you to clone this repo locally to the VM. Before we get started I want to say since we will be making our own customizations down the road we will fork the repo CodaLab has so generously provided and do two things:
...
...
- $ sudo groupadd docker (this may be done already)
...
- $ sudo usermod -aG docker $USER (now restart the VM)
...
- Now you should be able to run $ docker-compose up -d
By the way the The flag ‘-d’ means to run in detached mode. If you don’t use it you will notice your command prompt is in a live feed mode telling you everything that is going on with this docker.
Step 3 - Tweak The .env file and Azure Storage
Using this documentation( [2] from earlier): https://codalab-competitions.readthedocs.io/en/latest/
Create a Storage Account
Below is the blob storage section for Azure:
...
This is the BLOB settings:*Note: there is
Note |
---|
The CodaLab documentation leaves one final step |
...
out. We NEED to enable CORS. Click CORS in the above photo and add these settings (https://stackoverflow.com/questions/50785255/azure-storage-got-403-url-cors-not-enabled-or-no-matching-rule-found-for-thi): If you don’t, uploading a competition will give you CORS errors in the browser: Once applied uploading works: |
Customizations
Custom Logo
Codalab Instructions here: https://github.com/codalab/codalab-competitions/wiki/Customizing-your-self-hosted-instance
...