docs: add Astra package installation and build instructions
This commit is contained in:
1 parent
e5c6a2fc0e
commit
ee5f6f580e
1 file changed
+68
-1
@@ -11,6 +11,73 @@ checklists with append-only observation history, HTML/JSON export, access
|
|||||||
restoration records and a native Qt desktop shell. It does not claim that ALD
|
restoration records and a native Qt desktop shell. It does not claim that ALD
|
||||||
replicates AD DS or preserves SIDs, passwords, Windows profiles or GPO effects.
|
replicates AD DS or preserves SIDs, passwords, Windows profiles or GPO effects.
|
||||||
|
|
||||||
|
## Установка пакетов на тестовой Astra
|
||||||
|
|
||||||
|
Команды выполняются на тестовой ВМ из штатных репозиториев выбранной Astra
|
||||||
|
или с одобренного локального носителя. Для сборки нужны C++17, CMake >= 3.13,
|
||||||
|
Qt **5.15.2–5.15.x**, плагин SQLite и Python >= 3.7. ALD Pro для самой сборки
|
||||||
|
не требуется. Зависимости действующего КД отдельно сверяются с допустимым
|
||||||
|
составом ПО его поставки.
|
||||||
|
|
||||||
|
При доступных репозиториях обновите индекс пакетов и проверьте версии:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo apt-get update
|
||||||
|
apt-cache policy cmake python3 qtbase5-dev qtbase5-dev-tools \
|
||||||
|
qt5-qmake libqt5sql5-sqlite
|
||||||
|
```
|
||||||
|
|
||||||
|
Сначала посмотрите предполагаемые изменения без установки:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
apt-get -s install --no-upgrade --no-remove \
|
||||||
|
build-essential cmake make python3 git ca-certificates \
|
||||||
|
qtbase5-dev qtbase5-dev-tools qt5-qmake libqt5sql5-sqlite
|
||||||
|
```
|
||||||
|
|
||||||
|
Если версии подходят и добавляются только недостающие пакеты, установите их:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo apt-get install --no-upgrade --no-remove \
|
||||||
|
build-essential cmake make python3 git ca-certificates \
|
||||||
|
qtbase5-dev qtbase5-dev-tools qt5-qmake libqt5sql5-sqlite
|
||||||
|
```
|
||||||
|
|
||||||
|
Если доступен только Qt 5.11 или симуляция предлагает обновление установленного
|
||||||
|
ПО, сохраните вывод для разбора состава репозиториев. Не подключайте Kali/Debian
|
||||||
|
и не обновляйте Astra, Qt, Python или ALD ради сборки. `--no-upgrade` не заменяет
|
||||||
|
проверку изменений зависимостей. Без интернета используйте локальный источник
|
||||||
|
пакетов с их зависимостями для той же версии Astra. Git и `ca-certificates`
|
||||||
|
нужны для получения исходников по HTTPS; при переносе архива их можно исключить.
|
||||||
|
|
||||||
|
Проверьте установленные версии, затем из корня исходников запустите сборку
|
||||||
|
и тесты **без sudo**:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cmake --version
|
||||||
|
qmake -query QT_VERSION
|
||||||
|
python3 --version
|
||||||
|
python3 tools/build_astra_lab.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Для дополнительных проверок `tools/check_assets.py` и `tools/validate_local.py`
|
||||||
|
нужен пакет `python3-jsonschema` с `Draft7Validator` из того же разрешённого источника. Он не нужен
|
||||||
|
для `build_astra_lab.py`; при необходимости проверьте и установите его отдельно:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
apt-get -s install --no-upgrade --no-remove python3-jsonschema
|
||||||
|
sudo apt-get install --no-upgrade --no-remove python3-jsonschema
|
||||||
|
python3 -c "from jsonschema import Draft7Validator; print('Draft7Validator: OK')"
|
||||||
|
```
|
||||||
|
|
||||||
|
После успешной сборки обычный запуск с локальной диагностикой:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./build-astra/ald-transition-console --project ./astra-lab-project
|
||||||
|
```
|
||||||
|
|
||||||
|
Подробности и расположение отчёта — в [инструкции для стенда](docs/astra-lab.ru.md).
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
For the Astra test machine, follow the [Russian laboratory guide](docs/astra-lab.ru.md).
|
For the Astra test machine, follow the [Russian laboratory guide](docs/astra-lab.ru.md).
|
||||||
@@ -20,7 +87,7 @@ It uses the Python standard library, installs nothing and never authorizes a
|
|||||||
domain change or marks the release validated.
|
domain change or marks the release validated.
|
||||||
|
|
||||||
Use an approved toolchain with CMake >= 3.13, a C++17 compiler, Qt **5.15.x**
|
Use an approved toolchain with CMake >= 3.13, a C++17 compiler, Qt **5.15.x**
|
||||||
(API floor/ceiling used by this source: 5.15.2), Core, Gui, Widgets, Network, Sql,
|
(API baseline: 5.15.2), Core, Gui, Widgets, Network, Sql,
|
||||||
Test, the QSQLITE plugin, and Qt build tools. Russian Qt translations are used
|
Test, the QSQLITE plugin, and Qt build tools. Russian Qt translations are used
|
||||||
when available. Do not install upstream packages on an Astra DC to force this
|
when available. Do not install upstream packages on an Astra DC to force this
|
||||||
application to build. Validate the allowed software composition with the vendor.
|
application to build. Validate the allowed software composition with the vendor.
|
||||||
|
|||||||
Reference in new issue
Block a user