# 3.2. Development Commands, Tricks, and Hints (WORK IN PROGRESS)


## 3.2.1. Report the log of a specific TFS controller component
A number of scripts are pre-created to facilitate the inspection of the component logs. For instance, to dump the log
of the Context component, run the following command. You can avoid sourcing `my_deploy.sh` if it has been already done.

__Note__: these commands should be run on the VM, not in the Docker-based runtime environment.

```bash
source my_deploy.sh
./scripts/show_logs_context.sh
```

## Items to be addressed:
- pytest flags: --log-level=INFO --verbose -o log_cli=true -o log_file=my_log_file.log -o log_file_level=DEBUG
- code coverage
- nginx ingress grpc to enable access from external sources


# interesting Docker commands

Build by hand:
docker build -t "context:lgr-test" -f ./src/context/Dockerfile .

Run by hand:
docker run --rm --name lgr-test -it --env "DB_BACKEND=inmemory" --entrypoint /bin/bash context:lgr-test
