Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. export BLOCKED_EXTENSIONS_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/blockedExtensions_simple.json"
  2. # export BLOCKED_EXTENSIONS_URIS=""
  3. # export ALLOWED_EXTENSIONS_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/allowedExtensions_only_jlab.json"
  4. export ALLOWED_EXTENSIONS_URIS=""
  5. export LISTINGS_REFRESH_SECONDS=120
  6. export LISTINGS_REQUEST_OPTS="{'timeout': 10}"
  7. listings-uris:
  8. @exec echo Using blockedExtensions URIs: ${BLOCKED_EXTENSIONS_URIS}
  9. @exec echo Using allowedExtensions URIs: ${ALLOWED_EXTENSIONS_URIS}
  10. @exec echo Refreshing lists every ${LISTINGS_REFRESH_SECONDS} seconds
  11. @exec echo Using ${LISTINGS_REQUEST_OPTS} for the HTTP requests
  12. dev: listings-uris
  13. @exec python main.py \
  14. --dev \
  15. --no-browser \
  16. --LabServerApp.blocked_extensions_uris=${BLOCKED_EXTENSIONS_URIS} \
  17. --LabServerApp.allowed_extensions_uris=${ALLOWED_EXTENSIONS_URIS} \
  18. --LabServerApp.listings_refresh_seconds=${LISTINGS_REFRESH_SECONDS} \
  19. --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}
  20. watch: listings-uris
  21. @exec python main.py \
  22. --dev \
  23. --no-browser \
  24. --watch \
  25. --LabServerApp.blocked_extensions_uris=${BLOCKED_EXTENSIONS_URIS} \
  26. --LabServerApp.allowed_extensions_uris=${ALLOWED_EXTENSIONS_URIS} \
  27. --LabServerApp.listings_refresh_seconds=${LISTINGS_REFRESH_SECONDS} \
  28. --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}