From 12d0a3f92765e50539b51c4a463d42a58d6e69f6 Mon Sep 17 00:00:00 2001 From: phantomlan Date: Sat, 21 Oct 2023 17:47:23 +0200 Subject: [PATCH] - prettier docker guide - update docker-compose to reflect 1 level higher config folder --- docker-compose.yml | 2 +- docs/INSTALL_DOCKER.md | 70 +++++++++++++++++++++++++++++++----------- 2 files changed, 53 insertions(+), 19 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6057c34..6a35355 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: . volumes: - ./aime:/app/aime - - ./config:/app/config + - ./configs/config:/app/config environment: CFG_DEV: 1 diff --git a/docs/INSTALL_DOCKER.md b/docs/INSTALL_DOCKER.md index 1ea9631..7011829 100644 --- a/docs/INSTALL_DOCKER.md +++ b/docs/INSTALL_DOCKER.md @@ -1,15 +1,18 @@ # ARTEMiS - Docker Installation Guide + This step-by-step guide will allow you to install a Contenerized Version of ARTEMiS inside Docker, some steps can be skipped assuming you already have pre-requisite components and modules installed. This guide assumes using Debian 12(bookworm-stable) as a Host Operating System for most of packages and modules. ## Pre-Requisites: + - Linux-Based Operating System (e.g. Debian, Ubuntu) - Docker (https://get.docker.com) - Python 3.9+ - (optional) Git ## Install Python3.9+ and Docker + ``` (if this is a fresh install of the system) sudo apt update && sudo apt upgrade @@ -26,6 +29,7 @@ sudo apt install git ``` ## Get ARTEMiS + If you installed git, clone into your choice of ARTEMiS git repository, e.g.: ``` git clone @@ -33,6 +37,7 @@ git clone If not, download the source package, and unpack it to the folder of your choice. ## Prepare development/home configuration + To build our Docker setup, first we need to create some folders and copy some files around - Create 'aime', 'configs', 'AimeDB', and 'logs' folder in ARTEMiS root folder (where all source files exist) - Inside configs folder, create 'config' folder, and copy all .yaml files from example_config to config (thats all files without nginx_example.conf) @@ -76,18 +81,23 @@ docker compose logs add '-f' to the end if you want to follow logs. ## Running commands + If you need to execute python scripts supplied with the application, use `docker compose exec app python3