NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

Step 3 - Tweak The .env file and Azure Storage

Using this documentation( [2] from earlier): The following documentation explains this step: https://codalab-competitions.readthedocs.io/en/latest/

Create a Storage Account

Below is the blob storage section for Azure:

You may sign up for an Azure account here, then  then follow the directions below. You do not have to do this if you've already

...

set up S3

...

.

  1. Log on to the Azure Portal.
  2. From the Dashboard, click Storage accounts on the left.
  3. Click Add at the top of the page to create a new storage account.
  4. If you don't already have a subscription, create one now. The free trial requires a credit card, and deletes all your storage containers after 90 days, unless you upgrade to a different plan i.e. such as 'Pay as You Go'.
  5. Select the Classic storage account. Refer to the following image below for settings.

    medici - Blobs settings pageImage Added
  6. In the dashboard, click All Resources/All Subscriptions and then click on click  your username. Click Access Keys and Copy copy your account name and access key to .env under AZURE_ACCOUNT_NAME and AZURE_ACCOUNT_KEY.
  7. Within that same user account, click on Containers and Add a new container.
  8. Create a new container named "bundles". Set the Access to "Private".
  9. Add another container named "public". Set the Access to "Public Blob".
  10. Make sure the DEFAULT_FILE_STORAGE .env option is set to codalab.azure_storage.AzureStorage

This is the BLOB settings:

medici - Blobs settings pageImage Removed

  1. .


Note

The CodaLab documentation leaves one final step out. We NEED to enable CORS. Click CORS in the above image in the previous procedure 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 present a CORS errors in the browser:

Once applied, uploading works:

Custom Logo

...