Skip to contents

MIRA installation

MIRA runs inside Docker containers. Containers have all of the code and dependencies necessary to run MIRA and only have access to user defined folders or sockets on your computer.


  1. Open a terminal (Ubuntu if you installed WSL2 with these instructions, Terminal if you are using a Mac or Linux OS). Create a folder to store your sequence run data and change to that directory. This folder was previously called FLU_SC2_SEQUENCING in documentation predating September 2024:

     mkdir ~/MIRA_NGS
     cd ~/MIRA_NGS
  2. Download the installation script from the internet:

     curl https://raw.githubusercontent.com/CDCgov/MIRA/prod/docker-compose-cdcgov.yml | sed "s%/path/to/data%$(pwd)/%g" > docker-compose.yml
  3. Run the install script with docker-compose:

     docker compose up -d

If this command returns an error relating to permissions, try again with sudo before the docker compose call

  1. The download should begin and a lot of information will begin to appear in your terminal such as:

     ⠿ mira Warning                                                                                                                                                                                                                                          2.2s
    
    ⠿ 3b65ec22a9e9 Pull complete                                                                                                                                                                                                                         16.9s
    ⠿ 4f4fb700ef54 Download complete                                                                                                                                                                                                                     35.4s
    ⠿ 1c1f5954eb75 Pull complete                                                                                                                                                                                                                         18.7s
    ⠿ 09b185cd9896 Pull complete                                                                                                                                                                                                                         18.9s
    ⠿ 45c1caf84255 Pull complete                                                                                                                                                                                                                         19.0s
    ⠼ e8372b04cf6b Downloading [===================================>               ]  68.14MB/97.25MB                                                                                                                                                    35.4s
    ⠼ fcce5f3f42f5 Download complete                                                                                                                                                                                                                     35.4s
    ⠼ d897b2636a18 Download complete                                                                                                                                                                                                                     35.4s
    ⠼ 2d6fb277dca0 Download complete                                                                                                                                                                                                                     35.4s
    ⠼ c5227e837167 Download complete                                                                                                                                                                                                                     35.4s
    ⠼ 4b4467648e29 Download complete                                                                                                                                                                                                                     35.4s
    ⠸ 675920708c8b Extracting [========================>                          ]  14.16MB/28.57MB                                                                                                                                                     35.4s
    ⠸ e69b9363318d Downloading [==========================>                        ]  14.48MB/27.07MB                                                                                                                                                    35.4s
    ⠸ 59f3820cb75a Download complete                                                                                                                                                                                                                     35.4s
    ⠸ 96523e405125 Downloading [=====>                                             ]  1.286MB/11.16MB                                                                                                                                                    35.4s
    ⠸ b6da8f73ba02 Waiting                                                                                                                                                                                                                               35.4s
    ⠸ f85e87677f9a Waiting                                                                                                                                                                                                                               35.4s
    ⠸ 5ceb0311151f Waiting                                                                                                                                                                                                                               35.4s
    ⠸ ae01c60d8873 Waiting                                                                                                                                                                                                                               35.4s

    MIRA is about 800 MB in total size and may take a long time to download depending on your internet speed, ie:

    Internet Speed Download Time
    500 Kbps 3 hour 33 minutes
    10 Mbps 11 minutes
    25 Mbps 4 minutes
    100 Mpbs 1 minute
  2. A successful installation will end with your terminal showing:

    [+] Running 1/1
     ⠿ Container mira    Started     

Test your MIRA Setup

Upon successful installation, you can proceed to running MIRA with Oxford Nanopore data or Illumina data