# Обновление

* [**Вариант 1: Используя контейнеры**](#user-content-using-the-containers)**:**
  * Ручное обновление
* [**Вариант 2: Для окружения Kubernetes**](#user-content-update-in-kubernetes-environment):
  * Обновление с помощью Helm

Чтобы обновить Auditor до последней версии, выполните следующие действия:

## Используя  контейнеры: <a href="#user-content-using-the-containers" id="user-content-using-the-containers"></a>

### Ручное обновление <a href="#user-content-manual-update" id="user-content-manual-update"></a>

1. Остановите приложение:

```
docker compose down -v
```

Это остановит все службы и удалит связанные тома, что приведет к очистке среды.

2. Извлеките последние изменения из репозитория с помощью команды:

```
git pull
```

Это гарантирует, что у вас будет самая актуальная версия приложения.

3. Измените версию приложения скорректировав переменную `IMAGE_VERSION` в файле **`.env`**. Актуальный тег Вы можете найти на странице [репозитория](https://gitlab.cybercodereview.ru/cybercodereview/auditor).
4. Запустите приложение:

```
docker compose up -d
```

## Обновление в среде Kubernetes: <a href="#user-content-update-in-kubernetes-environment" id="user-content-update-in-kubernetes-environment"></a>

1. Для обновления выполните следующую команду:

```
helm upgrade auditor <путь_к_директории_helm>
```

Укажите путь к директории, содержащей Helm-чарт для приложения.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cybercodereview.ru/auditor/install/update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
