Commit ea4d2ebc authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Branchement de postgres et début d'ajout des droits et utilisateurs

parent b3c7c15b
Loading
Loading
Loading
Loading
+7 −3
Changes for Dockerfile.php7.dev: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line

###########################################################################################
#
#                               Image pour le dev.
@@ -7,12 +6,13 @@
#
###########################################################################################

FROM php:7-apache
FROM php:7.0-apache

LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"

# Mise à niveau de la distrib et installation des packages requis.
RUN apt-get update && apt-get install -y \
RUN apt-get update
RUN apt-get install -y \
        ghostscript \
        git \
        libaio1 \
@@ -33,6 +33,8 @@ RUN apt-get update && apt-get install -y \
        vim \
        wget \
        zlib1g-dev
RUN apt-get install -y \
        libpq-dev
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && \
    docker-php-ext-configure opcache --enable-opcache && \
    docker-php-ext-install -j$(nproc) \
@@ -48,6 +50,8 @@ RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && \
        pdo_mysql \
        soap \
        zip
RUN docker-php-ext-install -j$(nproc) \
        pdo_pgsql
RUN rm -rf /var/lib/apt/lists/*

# Installation d'extensions PECL
+1 −1
Changes for config/application.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
<?php

$modules = [
    'Application',
    'ZfcBase', 'DoctrineModule', 'DoctrineORMModule', 'ZfcUser', 'ZfcUserDoctrineORM',
    'BjyAuthorize', 'AssetManager',
    'UnicaenApp', 'UnicaenAuth',
    'Application',
];

if ( 'development' == getenv('APPLICATION_ENV') ?: 'production' ) {
+46 −2
Changes for module/Application/config/module.config.php: 46 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,10 @@

namespace Application;

use Application\Controller\FicheMetierController;
use Application\Controller\IndexController;
use Application\Controller\FicheMetier\FicheMetierController;
use Application\Controller\Utilisateur\UtilisateurController;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\ORM\Mapping\Driver\XmlDriver;
use UnicaenAuth\Guard\PrivilegeController;
use Zend\Mvc\Router\Http\Literal;
use Zend\Mvc\Router\Http\Segment;
@@ -21,6 +23,37 @@ return [
                    'roles' => [
                    ],
                ],
                [
                    'controller' => UtilisateurController::class,
                    'action' => [
                        'index',
                    ],
                    'roles' => [
                    ],
                ],
            ],
        ],
    ],

    'doctrine' => [
        'driver' => [
            'orm_default' => [
                'class' => MappingDriverChain::class,
                'drivers' => [
                    'Application\Entity\Db' => 'orm_default_xml_driver',
                ],
            ],
            'orm_default_xml_driver' => [
                'class' => XmlDriver::class,
                'cache' => 'apc',
                'paths' => [
                    __DIR__ . '/../src/Application/Entity/Db/Mapping',
                ],
            ],
        ],
        'cache' => [
            'apc' => [
                'namespace' => 'PREECOG__' . __NAMESPACE__,
            ],
        ],
    ],
@@ -62,6 +95,16 @@ return [
                    ],
                ],
            ],
            'utilisateur-preecog' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/utilisateur',
                    'defaults' => [
                        'controller' => UtilisateurController::class,
                        'action' => 'index',
                    ],
                ],
            ],
        ],
    ],
    'service_manager' => [
@@ -83,6 +126,7 @@ return [
        'invokables' => [
            'Application\Controller\Index' => Controller\IndexController::class,
            FicheMetierController::class => FicheMetierController::class,
            UtilisateurController::class => UtilisateurController::class,
        ],
    ],
    'view_manager'    => [

Empty file added.

−19

File deleted.

Loading