Management Script Usage
The manage.sh script is a utility for controlling the lifecycle of the Calyntro Docker containers. It provides simple commands for common operations like starting, stopping, and updating the application.
Usage
To use the script, run it from the root of the project with one of the available commands.
./manage.sh [command]
Available Commands
Here is a list of the commands supported by the manage.sh script:
- up
Builds the Docker images and starts all services in detached mode.
./manage.sh up- down
Stops and removes all running containers, networks, and volumes defined in the
docker-compose.ymlfile../manage.sh down- import [path]
Runs the full data import process for a local repository. This command takes the path to the repository on your host machine, mounts it into the container, and runs both the configuration and analysis import steps.
If the path is omitted, the script reads the
repo_pathfromconfig/config.yaml.Note: After the import is complete, the generated DuckDB database files will be located in the ``data/update_data/`` directory (or as defined by ``db_update_path`` in your ``config.yaml``). Reference the ``config.yaml`` or :ref:`calyntro_config` for more details.
./manage.sh import /path/to/your/local/repo
- refresh
Automatically swaps the staging database files (from
db_update_path) into the production environment (db_path). This command requires theyqutility to be installed on your host machine to parse the configuration file../manage.sh refreshThe script stops the backend, creates a backup of the current production databases, moves the new files from the staging area to the production area, and restarts the backend. Configuration values (
db_path,db_update_path,db_basename) are read directly fromconfig/config.yaml— no additional utilities required.- update
Rebuilds the Docker images and restarts all services. This is useful when you have made changes to the source code.
./manage.sh update- logs
Streams the logs from all running containers into a file in the
./logsdirectory. The command runs in the background../manage.sh logs- pull-latest
Pulls the latest Docker images from the GitHub Container Registry (GHCR) and restarts the services. This is the standard update path for self-hosted installations.
./manage.sh pull-latest- pull-gitlab
Pulls
:devimages from the GitLab registry and retags them to match thedocker-compose.ymlimage names. Intended for testing pre-release builds. RequiresGL_REGISTRY_IMAGEandGL_REGISTRY_TOKENenvironment variables (or an activedocker loginto the registry).GL_REGISTRY_IMAGE=registry.gitlab.com/youruser/calyntro ./manage.sh pull-gitlab
- debug-path
A debugging utility that prints the Python search path (
sys.path) and lists the contents of the/app/srcdirectory inside theimportercontainer. This is useful for diagnosing module import errors../manage.sh debug-path