Merge branch 'main' into develop
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
commit
50f2fff71e
|
@ -22,7 +22,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Build Environment') {
|
stage('Build Environment') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
||||||
docker.build("${DOCKER_IDENTITY}", '-f docker/Dockerfile-jenkins-php .')
|
docker.build("${DOCKER_IDENTITY}", '-f docker/Dockerfile-jenkins-php .')
|
||||||
docker.build("${DOCKER_IDENTITY_NGINX}", '-f docker/Dockerfile-nginx .')
|
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.withRegistry('https://index.docker.io/v1/', 'docker-hub-credentials') {
|
||||||
docker.image("${DOCKER_IDENTITY}").push()
|
docker.image("${DOCKER_IDENTITY}").push()
|
||||||
docker.image("${DOCKER_IDENTITY_NGINX}").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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:
|
|
@ -95,9 +95,7 @@ class OrganizationalUnitController extends AbstractController
|
||||||
|
|
||||||
$images = $this->entityManager
|
$images = $this->entityManager
|
||||||
->getRepository(Image::class)
|
->getRepository(Image::class)
|
||||||
->findBy([
|
->findAll();
|
||||||
'organizationalUnit' => $parent,
|
|
||||||
], ['name' => 'ASC']);
|
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue