Compare commits

..

No commits in common. "914e9b07660b89e4aedc39ce025e9b7399761abd" and "893a5a492aa0b5ed88d1b6ead2071601fd8fd338" have entirely different histories.

7 changed files with 50 additions and 16 deletions

View File

@ -2,6 +2,7 @@
set -x
set -e
PASSWD_FILE=/home/narenas/passwd
DIR=/ubuntu_scratch
CHROOT_DIR=$DIR/chroot
UBUNTU_CHROOT_DIR=$DIR/ubuntu_chroot

View File

@ -8,5 +8,3 @@ operations:
- git
- isc-dhcp-client
- jq
- network-manager
- openssh-server

View File

@ -0,0 +1,11 @@
---
dontChroot: false
verbose: true
script:
- /opengnsys-installer/component-installer.sh
timeout: 600
verbose: true

View File

@ -0,0 +1,9 @@
---
dontChroot: true
verbose: true
script:
- mkdir -p ${ROOT}/opengnsys-installer
- cp /tmp/opengnsys-installer-configs/* ${ROOT}/opengnsys-installer

View File

@ -218,7 +218,7 @@ set_pkg_configuration
install_mesa_repo
install_non_interactive
install_packages sudo ubuntu-standard sudo casper dbus-bin mesa-utils mesa-vulkan-drivers discover isc-dhcp-client laptop-detect unzip os-prober network-manager net-tools wireless-tools wpagui locales grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common grub-efi-amd64-signed shim-signed mtools binutils virtualbox-guest-utils virtualbox-guest-x11 python3-xdg
install_non_interactive sddm openbox plymouth calamares terminator pcmanfm yad qml-module*
install_non_interactive sddm openbox plymouth calamares terminator pcmanfm yad qml-modules*
install_no_recommends linux-image-generic auditd
set_root_passwd
configure_divert
@ -233,4 +233,3 @@ create_image
configure_grub_menu
create_image2
clean

View File

@ -19,6 +19,31 @@ function install_docker() {
}
function install_ogcore_docker() {
# Leer el JSON y extraer los valores con jq
user=$(jq -r '.username' /opt/opengnsys/ogCore/installer/config.json)
password=$(jq -r '.password' /opt/opengnsys/ogCore/installer/config.json)
ogcore_version=$(jq -r '.container_version' /opt/opengnsys/ogCore/installer/config.json)
# Exportar los valores como variables de entorno
export USER_NAME="$user"
export USER_PASSWORD="$password"
cd /opt/opengnsys/ogCore/repo
git checkout develop
docker compose up --build -d
docker exec ogcore-php composer install
docker exec ogcore-php php bin/console lexik:jwt:generate-keypair --overwrite
docker exec ogcore-php php bin/console doctrine:migrations:migrate --no-interaction
docker exec ogcore-php php bin/console doctrine:fixtures:load --no-interaction
curl -k -X 'POST' \
'https://localhost:8443/auth/login' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d "{
\"username\": \"$USER_NAME\",
\"password\": \"$USER_PASSWORD\"
}"
docker compose down
cat <<EOF > /etc/systemd/system/ogcore.service
[Unit]
Description=Servicio para ejecutar Docker Compose de ogCore
@ -27,7 +52,7 @@ Requires=docker.service
[Service]
WorkingDirectory=/opt/opengnsys/ogCore/repo/
ExecStart=/usr/bin/docker compose -f docker-compose-deploy.yml up
ExecStart=/usr/bin/docker compose up -d
ExecStop=/usr/bin/docker compose down
Restart=always
@ -36,10 +61,9 @@ WantedBy=multi-user.target
EOF
systemctl enable ogcore
}
function install_oggui_docker() {
# Leer el JSON y extraer los valores con jq
ogcore_ip=$(jq -r '.ogcore_ip' /opt/opengnsys/ogGui/installer/config.json)
@ -106,7 +130,7 @@ do
ogCore)
echo "Instalando ogCore..."
git clone "$OGCORE_REPO" "$component_dir/repo"
echo - ogCore >> /etc/issue
echo - ogCore >> /etc/issueq
install_docker
install_ogcore_docker
;;

View File

@ -1,8 +0,0 @@
#!/bin/bash
docker compose exec php composer install
docker compose exec php php bin/console lexik:jwt:generate-keypair --overwrite
docker compose exec php php bin/console doctrine:migrations:migrate --no-interaction
docker compose exec php php bin/console doctrine:fixtures:load --no-interaction