- Provide information on storage usage, akin to running the Linux command
du -h -d 1
- Have different methods of querying the data
- Provide suggestions for improving storage usage.
- Use the MD5 hash of files to determine file duplication
You and user both have copies of file1.bam totalling 1.5GB. Consider a shared resource
- Use the file type to identify files to compress
You have 21 “.bam” files totalling 30GB, which can be compressed by running this command: gzip etc.
- Use the MD5 hash of files to determine file duplication
- Provide a dashboard to allow for more detailed representations of the data
Environment variables need to be set to access the database and authorise the app with Slack. The Slack variables can be found by going to the app's page, under "Basic Information" (Signing Secret) and under "OAuth & Permissions" (Bot User OAuth Access Token).
export URL=<Database URL>
export USR=<Database user>
export PW=<Database password>
export DB=<Database name>
export SLACK_BOT_TOKEN=<Slack Bot User OAuth Access Token>
export SLACK_SIGNING_SECRET=<Slack Signing Secret>
Set up a conda environment with node.js:
conda install nodejs
Then enable localtunnel:
npx localtunnel --port 3000 -h 'http://serverless.social'
This will give you a URL from which your port is available:
your url is: https://massive-dodo-83.serverless.social
Set up the conda environment:
conda env create -f space_analyser/environment.yml
conda activate space-util
Then run the app with:
python slack_app/app.py
The URL from localtunnel, with /slack/events
appended to the end (e.g. https://massive-dodo-83.serverless.social/slack/events
), needs to be copied into your app's page in two locations.
- Event Subscriptions > Request URL
- Slash Commands > Edit the command > Request URL
Your Slack app should now work.
If you encounter a ssl_cacert
error, using http
rather than https
in the localtunnel URL seemed to fix things.