refs #964 install and provision the ogcore php container
oginstaller/pipeline/head This commit looks good Details

move-to-docker
Natalia Serrano 2024-10-30 16:57:42 +01:00
parent 914e9b0766
commit e3a03b3706
1 changed files with 7 additions and 3 deletions

View File

@ -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 <<EOF > /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