From e3a03b37069d4e3a980b347a386e3539b0bb3c05 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Wed, 30 Oct 2024 16:57:42 +0100 Subject: [PATCH] refs #964 install and provision the ogcore php container --- component-installer.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/component-installer.sh b/component-installer.sh index 44c4782..f50cf98 100644 --- a/component-installer.sh +++ b/component-installer.sh @@ -19,6 +19,9 @@ function install_docker() { } function install_ogcore_docker() { + docker compose -f repo/docker-compose-deploy.yml create + docker compose -f repo/docker-compose-deploy.yml up -d database + docker compose -f repo/docker-compose-deploy.yml run --rm php ./provision.sh cat < /etc/systemd/system/ogcore.service [Unit] Description=Servicio para ejecutar Docker Compose de ogCore @@ -28,14 +31,15 @@ Requires=docker.service [Service] WorkingDirectory=/opt/opengnsys/ogCore/repo/ ExecStart=/usr/bin/docker compose -f docker-compose-deploy.yml up -ExecStop=/usr/bin/docker compose down +ExecStop=/usr/bin/docker compose -f docker-compose-deploy.yml down Restart=always [Install] WantedBy=multi-user.target EOF - systemctl enable ogcore + systemctl daemon-reload + systemctl enable --now ogcore } @@ -83,7 +87,7 @@ OGBOOT_REPO="$OPENGNSYS_BASE_URL/ogboot.git" OGCORE_REPO="$OPENGNSYS_BASE_URL/ogcore.git" OGDHCP_REPO="$OPENGNSYS_BASE_URL/ogdhcp.git" OGGUI_REPO="$OPENGNSYS_BASE_URL/oggui.git" -OGREPOSITORY_REPO="$OPENGNSYS_BASE_URL/oggui.git" +OGREPOSITORY_REPO="$OPENGNSYS_BASE_URL/ogrepo.git" export GIT_SSL_NO_VERIFY=1 echo ======================================== > /etc/issue