fix_mercure_in_containers (#23) refer #1717
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
Updates docker and nginx configuration in main to expose services behind nginx Reviewed-on: #23jenkins_upload_packages
parent
eb2c366e59
commit
b850940b43
|
@ -0,0 +1,49 @@
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
label 'jenkins-slave'
|
||||||
|
}
|
||||||
|
environment {
|
||||||
|
DEBIAN_FRONTEND = 'noninteractive'
|
||||||
|
}
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout()
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Prepare Workspace') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
env.BUILD_DIR = "${WORKSPACE}/ogcore"
|
||||||
|
sh "mkdir -p ${env.BUILD_DIR}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
dir("${env.BUILD_DIR}") {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
dir("${env.BUILD_DIR}") {
|
||||||
|
sh '''
|
||||||
|
composer require symfony/flex
|
||||||
|
dpkg-buildpackage -us -uc
|
||||||
|
mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/
|
||||||
|
ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo && mkdir -p /var/tmp/opengnsys/debian-repo"
|
||||||
|
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Publish to Debian Repository') {
|
||||||
|
agent { label 'debian-repo' }
|
||||||
|
steps {
|
||||||
|
sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,14 +1,53 @@
|
||||||
ogcore (1.0.5+develop20250310-1) unstable; urgency=medium
|
ogcore (0.9.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Modified changelog
|
* Added mercure service in docker compose file for deployments.
|
||||||
* Some improvements. Fixed multi select actions
|
|
||||||
* refs #1644. Cancel deployImage action
|
-- Manuel Aranda <maranda@qindel.com> Wed, 12 Mar 2025 14:00:00 +0200
|
||||||
* Updated test phunit.xml
|
|
||||||
* Updated test
|
ogcore (0.9.1-1) unstable; urgency=medium
|
||||||
* Merge branch 'main' into develop
|
|
||||||
* Fixed phpxml
|
* Corrección en la cancelación de transmisiones p2p.
|
||||||
* Fixed phpxml
|
|
||||||
* Changed test
|
-- Manuel Aranda <maranda@qindel.com> Wed, 12 Mar 2025 13:00:00 +0200
|
||||||
* Changed repoClient funcionality. New filters added
|
|
||||||
|
ogcore (0.9.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Nueva funcionalidad para tener notificaciones en tiempo real. Instalación de bundle "Mercure".
|
||||||
|
* Creación de EventListener en Symfony, para publicar mensajes en Mercure cuando se realicen cambios en la base de datos.
|
||||||
|
* Nuevo endpoint "backup image". Integración con ogRepository.
|
||||||
|
* Nuevo campo en "usuarios" para escoger la visualización por defecto de la vista "grupos".
|
||||||
|
* Nuevo campo "dns" en "subredes" para gestionar los servidores DNS.
|
||||||
|
* Integración de endpoint ogRepository para verificar la integridad de una imagen.
|
||||||
|
* Nueva funcionalidad para cancelar despliegues de imágenes.
|
||||||
|
* Añadido nuevo campo "cancelado" en trazas.
|
||||||
|
* Cambios en logs: salida redirigida de stderr a file.log.
|
||||||
|
* Modificación en módulo DHCP: gestión de equipos con una única llamada a la API.
|
||||||
|
* Cambios en las respuestas de acciones masivas en equipos para evitar fallos en peticiones parciales.
|
||||||
|
|
||||||
|
-- Manuel Aranda <maranda@qindel.com> Tue, 04 Mar 2025 15:00:00 +0200
|
||||||
|
|
||||||
|
ogcore (0.8.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Corrección de bug en el deploy de imágenes.
|
||||||
|
|
||||||
|
-- Manuel Aranda <maranda@qindel.com> Tue, 25 Feb 2025 10:00:00 +0200
|
||||||
|
|
||||||
|
ogcore (0.8.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Nuevos campos en "aulas" para la jerarquía en clientes.
|
||||||
|
* Nueva funcionalidad "imagen global". Integración con ogRepository.
|
||||||
|
* Limpieza en campos "name" y "date" de ogLive. Ahora se parsea el campo "filename" para mejorar la experiencia del usuario.
|
||||||
|
* Corrección de bug que impedía borrar un cliente si tenía una traza enlazada.
|
||||||
|
|
||||||
|
-- Manuel Aranda <maranda@qindel.com> Fri, 10 Jan 2025 12:00:00 +0200
|
||||||
|
|
||||||
|
ogcore (0.7.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Adaptados cambios en los endpoints para multiselección de clientes.
|
||||||
|
* Se agregó la funcionalidad de importar/exportar. Integración con ogRepository.
|
||||||
|
* Se agregó la funcionalidad de borrar imágenes. Integración con ogRepository.
|
||||||
|
* Se agregó el modo "TORRENT" y "UDPCAST" en el despliegue de imágenes.
|
||||||
|
* Refactorización del webhook de ogRepository.
|
||||||
|
|
||||||
|
-- Manuel Aranda <maranda@qindel.com> Fri, 03 Jan 2025 11:00:00 +0200
|
||||||
|
|
||||||
-- Tu Nombre <tuemail@example.com> Mon, 10 Mar 2025 10:59:14 +0000
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ services:
|
||||||
cors_origins *
|
cors_origins *
|
||||||
# Comment the following line to disable the development mode
|
# Comment the following line to disable the development mode
|
||||||
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile
|
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile
|
||||||
ports:
|
# ports:
|
||||||
- "3000:3000"
|
# - "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- mercure_data:/data
|
- mercure_data:/data
|
||||||
- mercure_config:/config
|
- mercure_config:/config
|
||||||
|
|
|
@ -15,16 +15,7 @@ server {
|
||||||
ssl_certificate /etc/nginx/certs/ogcore.uds-test.net.crt.pem;
|
ssl_certificate /etc/nginx/certs/ogcore.uds-test.net.crt.pem;
|
||||||
ssl_certificate_key /etc/nginx/certs/ogcore.uds-test.net.key.pem;
|
ssl_certificate_key /etc/nginx/certs/ogcore.uds-test.net.key.pem;
|
||||||
|
|
||||||
location /.well-known/mercure {
|
|
||||||
proxy_pass https://mercure:3000/.well-known/mercure;
|
|
||||||
proxy_read_timeout 24h;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection "";
|
|
||||||
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /opengnsys/rest/ous// {
|
location /opengnsys/rest/ous// {
|
||||||
rewrite ^/opengnsys/rest/ous//([0-9]+)/images /opengnsys/rest/ous/$1/images;
|
rewrite ^/opengnsys/rest/ous//([0-9]+)/images /opengnsys/rest/ous/$1/images;
|
||||||
|
@ -54,3 +45,27 @@ server {
|
||||||
error_log /var/log/nginx/error.log debug;
|
error_log /var/log/nginx/error.log debug;
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 3000 ssl http2;
|
||||||
|
listen [::]:3000 ssl http2;
|
||||||
|
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/certs/ogcore.uds-test.net.crt.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/ogcore.uds-test.net.key.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://ogcore-mercure:3000/;
|
||||||
|
proxy_read_timeout 24h;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Connection "";
|
||||||
|
|
||||||
|
# Enable fast reply in SSE
|
||||||
|
proxy_buffering off;
|
||||||
|
|
||||||
|
## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
|
@ -31,6 +31,20 @@ server {
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
location /mercure/ {
|
||||||
|
proxy_pass http://ogcore-mercure:3000/;
|
||||||
|
proxy_read_timeout 24h;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Connection "";
|
||||||
|
|
||||||
|
# Enable fast reply in SSE
|
||||||
|
proxy_buffering off;
|
||||||
|
|
||||||
|
## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
error_log /var/log/nginx/ogcore-error.log;
|
error_log /var/log/nginx/ogcore-error.log;
|
||||||
access_log /var/log/nginx/ogcore-access.log;
|
access_log /var/log/nginx/ogcore-access.log;
|
||||||
|
|
Loading…
Reference in New Issue