Compare commits

...

5 Commits

Author SHA1 Message Date
Manuel Aranda Rosales 50f2fff71e Merge branch 'main' into develop
testing/ogcore-api/pipeline/head This commit looks good Details
2024-10-29 17:48:26 +01:00
Manuel Aranda Rosales 738dc55503 Fixed UDS API bug
testing/ogcore-api/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/tag This commit looks good Details
2024-10-29 17:29:09 +01:00
Nicolas Arenas 9e4eebb38c Creates compose to deploy with installer
testing/ogcore-api/pipeline/head This commit looks good Details
2024-10-29 17:05:31 +01:00
Nicolas Arenas 0908f1bbe9 Fixes latest tag problem
testing/ogcore-api/pipeline/head This commit looks good Details
2024-10-25 11:58:05 +02:00
Manuel Aranda Rosales 3ee70ef7e6 Merge pull request 'develop' (#12) from develop into main
testing/ogcore-api/pipeline/head This commit looks good Details
Reviewed-on: #12
2024-10-25 11:05:19 +02:00
3 changed files with 58 additions and 4 deletions

7
Jenkinsfile vendored
View File

@ -22,7 +22,8 @@ pipeline {
}
stage('Build Environment') {
steps {
script {
script {
docker.build("${DOCKER_IDENTITY}", '-f docker/Dockerfile-jenkins-php .')
docker.build("${DOCKER_IDENTITY_NGINX}", '-f docker/Dockerfile-nginx .')
}
@ -67,6 +68,10 @@ pipeline {
docker.withRegistry('https://index.docker.io/v1/', 'docker-hub-credentials') {
docker.image("${DOCKER_IDENTITY}").push()
docker.image("${DOCKER_IDENTITY_NGINX}").push()
if (env.BRANCH_NAME == 'main') {
docker.image("${DOCKER_IDENTITY}").push("latest")
docker.image("${DOCKER_IDENTITY_NGINX}").push("latest")
}
}
}
}

View File

@ -0,0 +1,51 @@
services:
database:
container_name: ogcore-database
image: mariadb:10.11
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ogcore
MYSQL_PASSWORD: root
MYSQL_USER: admin
ports:
- 3336:3306
volumes:
- database_data:/var/lib/mysql
networks:
- ogcore-network
nginx:
container_name: ogcore-nginx
build:
context: .
dockerfile: ./docker/Dockerfile-nginx
depends_on:
- php
ports:
- 8080:80
volumes:
- ./public:/var/www/html/public:cached
networks:
- ogcore-network
image: opengnsys/ogcore-nginx:static
php:
container_name: ogcore-php
build:
context: .
dockerfile: ./docker/Dockerfile-jenkins-php
depends_on:
- database
environment:
XDEBUG_CLIENT_HOST: 127.17.0.1
XDEBUG_CLIENT_PORT: 9003
PHP_IDE_CONFIG: serverName=ogcore
networks:
- ogcore-network
image: opengnsys/ogcore-php:static
volumes:
database_data:
networks:
ogcore-network:

View File

@ -95,9 +95,7 @@ class OrganizationalUnitController extends AbstractController
$images = $this->entityManager
->getRepository(Image::class)
->findBy([
'organizationalUnit' => $parent,
], ['name' => 'ASC']);
->findAll();
$data = [];