Медицина/Установка: различия между версиями

Материал из Medlogic
Строка 15: Строка 15:
* [https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository Ununtu]
* [https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository Ununtu]
* [https://docs.docker.com/engine/install/debian/#install-using-the-repository Debian]
* [https://docs.docker.com/engine/install/debian/#install-using-the-repository Debian]
* [https://redos.red-soft.ru/base/arm/arm-other/docker-install/ РЕД ОС]


== Настройка сервера РЕД ОС ==
== Настройка сервера РЕД ОС ==

Версия от 07:48, 7 мая 2024

Настройка сервера - Ubuntu, Debian

Все действия выполнять от пользователя root

Устанавливаем git, unzip, vim, openssl

sudo apt-get update && apt-get install --assume-yes git unzip vim openssl openssh-server

Устанавливаем автоматически Docker

curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh

Ручная установка Docker

Настройка сервера РЕД ОС

Все действия выполнять от пользователя root

Устанавливаем git, unzip, vim, openssl

dnf --assumeyes update && dnf install --assumeyes git unzip vim openssl openssh-server

Автозапуск Docker

systemctl enable docker --now

Установка системы

Клонируем репозиторий с настройками

cd /root && git clone https://git.med-logic.ru/ilya.muhortov/medicine-config.git

Устанавливаем базовые образы

. /root/medicine-config/bash_scripts/install-base.sh

Устанавливаем МИС Медицина

. /root/medicine-config/bash_scripts/install-medicine.sh

Устанавливаем РЭМД

. /root/medicine-config/bash_scripts/install-remd.sh

Автообновление

С помощью планировщика задач cron добавить следующие задачи

crontab -e
30 13 * * * /root/medicine-config/medicine-remd/update.sh
50 13 * * * /root/medicine-config/medicine-remd/backup_database.sh
20 13 * * * /root/medicine-config/medicine/update.sh
55 13 * * * /root/medicine-config/medicine/backup_database.sh