index.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="canonical" href="https://OLC-LOC-Bioinformatics.github.io/AzureStorage/install/">
  9. <link rel="shortcut icon" href="../img/favicon.ico">
  10. <title>Installation - OLC Bioinformatics Azure Storage</title>
  11. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700" />
  12. <link rel="stylesheet" href="../css/theme.css" />
  13. <link rel="stylesheet" href="../css/theme_extra.css" />
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" />
  15. <script>
  16. // Current page data
  17. var mkdocs_page_name = "Installation";
  18. var mkdocs_page_input_path = "install.md";
  19. var mkdocs_page_url = "/AzureStorage/install/";
  20. </script>
  21. <script src="../js/jquery-2.1.1.min.js" defer></script>
  22. <script src="../js/modernizr-2.8.3.min.js" defer></script>
  23. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
  24. <script>hljs.initHighlightingOnLoad();</script>
  25. </head>
  26. <body class="wy-body-for-nav" role="document">
  27. <div class="wy-grid-for-nav">
  28. <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
  29. <div class="wy-side-scroll">
  30. <div class="wy-side-nav-search">
  31. <a href=".." class="icon icon-home"> OLC Bioinformatics Azure Storage</a>
  32. <div role="search">
  33. <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
  34. <input type="text" name="q" placeholder="Search docs" title="Type search term here" />
  35. </form>
  36. </div>
  37. </div>
  38. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  39. <ul>
  40. <li class="toctree-l1"><a class="reference internal" href="..">Home</a>
  41. </li>
  42. </ul>
  43. <ul class="current">
  44. <li class="toctree-l1 current"><a class="reference internal current" href="./">Installation</a>
  45. <ul class="current">
  46. <li class="toctree-l2"><a class="reference internal" href="#conda">Conda</a>
  47. </li>
  48. <li class="toctree-l2"><a class="reference internal" href="#azurestorage">AzureStorage</a>
  49. <ul>
  50. <li class="toctree-l3"><a class="reference internal" href="#create-new-conda-environment">Create new conda environment</a>
  51. </li>
  52. <li class="toctree-l3"><a class="reference internal" href="#install-in-existing-python-385-environment">Install in existing Python 3.8.5 environment</a>
  53. </li>
  54. </ul>
  55. </li>
  56. <li class="toctree-l2"><a class="reference internal" href="#credentials">Credentials</a>
  57. </li>
  58. <li class="toctree-l2"><a class="reference internal" href="#tests">Tests</a>
  59. </li>
  60. </ul>
  61. </li>
  62. </ul>
  63. <ul>
  64. <li class="toctree-l1"><a class="reference internal" href="../credentials/">Credentials</a>
  65. </li>
  66. </ul>
  67. <ul>
  68. <li class="toctree-l1"><a class="reference internal" href="../upload/">Upload</a>
  69. </li>
  70. </ul>
  71. <ul>
  72. <li class="toctree-l1"><a class="reference internal" href="../sas_url/">SAS URL</a>
  73. </li>
  74. </ul>
  75. <ul>
  76. <li class="toctree-l1"><a class="reference internal" href="../move/">Move</a>
  77. </li>
  78. </ul>
  79. <ul>
  80. <li class="toctree-l1"><a class="reference internal" href="../download/">Download</a>
  81. </li>
  82. </ul>
  83. <ul>
  84. <li class="toctree-l1"><a class="reference internal" href="../set_tier/">Set Tier</a>
  85. </li>
  86. </ul>
  87. <ul>
  88. <li class="toctree-l1"><a class="reference internal" href="../delete/">Delete</a>
  89. </li>
  90. </ul>
  91. <ul>
  92. <li class="toctree-l1"><a class="reference internal" href="../automate/">Automate</a>
  93. </li>
  94. </ul>
  95. <ul>
  96. <li class="toctree-l1"><a class="reference internal" href="../list/">List</a>
  97. </li>
  98. </ul>
  99. </div>
  100. </div>
  101. </nav>
  102. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  103. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  104. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  105. <a href="..">OLC Bioinformatics Azure Storage</a>
  106. </nav>
  107. <div class="wy-nav-content">
  108. <div class="rst-content">
  109. <div role="navigation" aria-label="breadcrumbs navigation">
  110. <ul class="wy-breadcrumbs">
  111. <li><a href="..">Docs</a> &raquo;</li>
  112. <li>Installation</li>
  113. <li class="wy-breadcrumbs-aside">
  114. <a href="https://github.com/OLC-LOC-Bioinformatics/AzureStorage/edit/main/docs/install.md"
  115. class="icon icon-github"> Edit on GitHub</a>
  116. </li>
  117. </ul>
  118. <hr/>
  119. </div>
  120. <div role="main">
  121. <div class="section">
  122. <h2 id="installation">Installation</h2>
  123. <p>AzureStorage is available as a conda package, so conda must be installed on your system.</p>
  124. <h3 id="conda">Conda</h3>
  125. <p>Skip this step if you have already installed conda</p>
  126. <pre><code>wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
  127. bash miniconda.sh -b -p $HOME/miniconda
  128. conda update -q conda
  129. </code></pre>
  130. <h3 id="azurestorage">AzureStorage</h3>
  131. <h4 id="create-new-conda-environment">Create new conda environment</h4>
  132. <p><code>conda create -n azure_storage -c olcbioinformatics azure_storage</code></p>
  133. <h4 id="install-in-existing-python-385-environment">Install in existing Python 3.8.5 environment</h4>
  134. <p>Install the AzureStorage package:</p>
  135. <p><code>conda install -c olcbioinformatics azure_storage</code></p>
  136. <h3 id="credentials">Credentials</h3>
  137. <p>You must enter your Azure storage connection string and account name into the system keyring before running any of the other scripts</p>
  138. <p><a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#:~:text=You%20can%20find%20your%20storage,primary%20and%20secondary%20access%20keys.">Find your connection string</a></p>
  139. <p><a href="https://www.zenko.io/blog/how-to-find-keys-and-account-info-for-aws-azure-and-google/#:~:text=Azure%20Account%20Name%C2%A0%3D%20the%20name%20of%20your%20Azure%20storage%20account%20located%20on%20the%20top%20of%20the%20Azure%20Portal%20(screenshot%20below%20%E2%80%93%20%E2%80%9Cscalitydemo%E2%80%9D%20is%20Azure%20Account%20Name).">Find your account key</a></p>
  140. <p>Once you know your account key and connection string, run:</p>
  141. <p><code>AzureCredentials store</code></p>
  142. <p>Your credentials will be securely stored in the system keyring</p>
  143. <h3 id="tests">Tests</h3>
  144. <p>If you encounter issues with the AzureStorage package, tests are available to ensure that the installation was successful and your credentials are valid.</p>
  145. <p>You will need to clone this repository and run the tests with pytest</p>
  146. <p><code>git clone https://github.com/OLC-LOC-Bioinformatics/AzureStorage.git</code></p>
  147. <p><code>cd AzureStorage</code></p>
  148. <p><code>python -m pytest tests/ --cov=azure_storage --cov-config=.coveragec</code></p>
  149. </div>
  150. </div>
  151. <footer>
  152. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  153. <a href="../credentials/" class="btn btn-neutral float-right" title="Credentials">Next <span class="icon icon-circle-arrow-right"></span></a>
  154. <a href=".." class="btn btn-neutral" title="Home"><span class="icon icon-circle-arrow-left"></span> Previous</a>
  155. </div>
  156. <hr/>
  157. <div role="contentinfo">
  158. <!-- Copyright etc -->
  159. </div>
  160. Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  161. </footer>
  162. </div>
  163. </div>
  164. </section>
  165. </div>
  166. <div class="rst-versions" role="note" aria-label="versions">
  167. <span class="rst-current-version" data-toggle="rst-current-version">
  168. <a href="https://github.com/OLC-LOC-Bioinformatics/AzureStorage/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
  169. <span><a href=".." style="color: #fcfcfc;">&laquo; Previous</a></span>
  170. <span style="margin-left: 15px"><a href="../credentials/" style="color: #fcfcfc">Next &raquo;</a></span>
  171. </span>
  172. </div>
  173. <script>var base_url = '..';</script>
  174. <script src="../js/theme.js" defer></script>
  175. <script src="../search/main.js" defer></script>
  176. <script defer>
  177. window.onload = function () {
  178. SphinxRtdTheme.Navigation.enable(true);
  179. };
  180. </script>
  181. </body>
  182. </html>