3. Tutorial for users of WC models and WC modeling tools

Users of WC models and WC modeling tools should follow these steps to use wc_env_manager to use WC models and WC modeling tools

  1. Use wc_env_manager to pull existing computing environments for WC modeling (Docker images)
  2. Use wc_env_manager to create Docker containers for WC modeling
  3. Run models and tools inside the Docker containers created by wc_env_manager

3.1. Pulling existing Docker images

First, use the following command to pull existing WC modeling Docker images. This will pull both the base image with third part dependencies, wc_env_dependencies, and the image with WC models and modeling tools, wc_env.:

wc_env_manager pull

The following commands can also be used to pull the individual images.:

wc_env_manager base-image pull
wc_env_manager image pull

3.2. Building containers for WC modeling

Second, use the following command to use wc_env to construct a Docker container.:

wc_env_manager container build

This will print out the id of the created container.

3.3. Using containers to run WC models and WC modeling tools

Third, use the following command to log in the container.:

cd /path/to/wc_env_manager
docker-compose up -d
docker-compose exec wc_env bash

Fourth, use the integrated WC modeling command line program, *wc*, to run WC models and WC modeling tools. For example, the following command illustrates how to get help for the wc program. See the *wc* documentation for more information.:

container >> wc --help

3.4. Using WC modeling computing environments with an external IDE such as PyCharm

The Docker images created with wc_env_manager can be used with external integrated development environments (IDEs) such as PyCharm. See the links below for instructions on how to use these tools with Docker images created with wc_env_manager.