Skip to main content

Update

Prerequisites

Before running the script for the first time, make sure it has execution permissions.
Run the following command in the project directory:

chmod +x update.sh

The script must also be located in the same directory as the docker-compose.yml file in order to correctly manage the services.


Description

The update.sh script automates the process of pulling the latest Docker images and restarting the GIFRÖST platform services.
It ensures smooth deployment of updates and automatically cleans up unused resources after the operation.

The script performs two main tasks:

  1. Update and Restart
    Pulls the latest image versions from the registry (docker compose pull) and starts containers in the background (up -d), minimizing service downtime.

  2. Resource Optimization
    After each update, the script automatically removes unused Docker images (so-called dangling images) to prevent disk space from filling up.


Usage

Interactive Mode

Running the script without additional parameters will display an interactive menu:

./update.sh

Available options:

  1. Update EVERYTHING --- Performs a full update of all containers defined in docker-compose.yml.
  2. Update apps only --- Updates only the GIFRÖST application microservices (skips base infrastructure).

Automatic Mode

The script supports startup flags, which allows it to be used in scheduled tasks.

Full update of the entire technology stack:

./update.sh all

Update only selected application microservices:

./update.sh app

Microservices Update Scope

When the application update option (app) is selected, the script limits its actions to the following services:

CategoryServices
Monitoringgrafana, prometheus, cdc-monitoring
Kafka & Managementjmx-kafka, cdc-kafka-management
Application Corecdc-backend, cdc-frontend, cdc-compare, cdc-wizzard