Installing NGIAB Locally
To install NGIAB locally, you'll want to use the NGIAB-CloudInfra distribution of NGIAB.
NGIAB is designed to run on Unix systems, which means that it's a bit easier to run on Mac and Linux computers. However, Windows users can still make full use of NGIAB using Windows Subsystem for Linux (WSL).
Installing Prerequisites
Windows
- Install WSL: Head over to Microsoft's official documentation and follow their comprehensive guide on installing WSL: https://learn.microsoft.com/en-us/windows/wsl/install
- Install Docker Desktop: Begin by downloading and installing Docker Desktop from the official website: https://docs.docker.com/desktop/install/windows-install/#install-docker-desktop-on-windows
- Start Docker Desktop: After installation, launch the Docker Desktop application.
- Open WSL as Admin: Right-click on the WSL icon and select "Run as Administrator".
- Verify Installation: In the WSL window, type the command docker ps -a to check if Docker is running correctly. This command should display a list of Docker containers.
If you've installed WSL before as a part of Docker, be sure to create a second WSL distribution that isn't tied to Docker. NextGen In A Box shell commands can't be run from within Docker's dedicated WSL environment.
Mac
- Install Docker Desktop: Download and install Docker Desktop for Mac from: https://docs.docker.com/desktop/install/mac-install/
- Start Docker Desktop: Launch the Docker Desktop application once the installation is complete.
- Open Terminal: Open the Terminal application on your Mac.
- Verify Installation: Similar to Windows, use the command docker ps -a in the Terminal to verify Docker is functioning as expected.
Linux
- Install Docker: The installation process for Linux varies depending on your distribution. Refer to the official documentation for detailed instructions: https://docs.docker.com/desktop/install/linux-install/
- Start Docker and Verify: Follow the same steps as described for Mac to start Docker and verify its installation using the docker ps -a command in the terminal.
Installing NGIAB-CloudInfra
- Input Data:
- Download Sample Data: Use the provided commands to download sample data for the Sipsey Fork case study.
- To generate your own data: Refer to the NGIAB-datapreprocessor for instructions on generating custom input data.
- To generate your own data and run using NGIAB: Refer to the ngen-datastream repository for instructions on generating custom input data.
This section guides you through downloading and preparing the sample input data for the NextGen In A Box project.
Step 1: Create Project Directory
- Windows users: WSL (Right click and run as Admin): For ease of access, you may want to store NGIAB's files in your Windows directories. To move there, run the following in your WSL CLI:
cd /mnt/c/Users/<Folder>
- From there, navigate to the directory where you'd like to store NGIAB and its associated data.
mkdir -p NextGen
cd NextGen
Step 2: Download Sample Data
While this step isn't strictly necessary, it'll be useful for verifying that NGIAB is working properly on your system.
- Within your project directory, create the
ngen-data
folder to hold the sample data.
mkdir -p ngen-data
cd ngen-data
- Use wget to download the compressed data file. Then, extract it.
wget https://ciroh-ua-ngen-data.s3.us-east-2.amazonaws.com/AWI-009/AWI_16_10154200_009.tar.gz
tar -xf AWI_16_10154200_009.tar.gz
- Then, return to the root of the project directory.
cd ..
Step 3: Clone and Run NGIAB
For WSL users: Before pulling NGIAB, ensure that Git is configured to pull with LF line breaks instead of CRLF line breaks. Failing to do so will prevent NGIAB's shell scripts from correctly running. Information on triaging this issue is available in the NGIAB 101 training module.
- Clone the NGIAB-CloudInfra repository.
git clone https://github.com/CIROH-UA/NGIAB-CloudInfra.git
cd NGIAB-CloudInfra
- At this point, everything you need to install NGIAB has been installed!
- To test your installation, try running the interactive guide script, which will help you navigate your first model run:
./guide.sh
For a broader introduction to using the NGIAB ecosystem, please see the NGIAB 101 training module.