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 network of Docker containers.:

wc-env-manager container build

This will print out the id of the WC container that was built. This is the main container that you should use to run WC models and WC modeling tools.

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

Third, use the following command to execute the container. This launches the container and runs an interactive bash shell inside the container.:

docker exec --interactive --tty <container_id> bash

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

container >> wc-cli --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.

3.5. Exiting and removing containers

Next, exit the container by executing exit or typing control-d. The container can be restarted using the following commands:

docker restart <container_id>
docker exec --interactive --tty <container_id> bash

Finally, remove the container by executing the following command:

wc-env-manager container remove