Skip to content
Snippets Groups Projects
Select Git revision
  • 613dbe9f3a0a1770f70f3b3def19deddf0f8cf7b
  • master default protected
  • 5.x
  • ll-php8-bs5
  • release_5_bs5
  • ll-php8
  • 4.x
  • laminas_migration
  • release_1.0.0.2
  • release_4.0.0
  • release_3.2.8
  • bootstrap4_migration
  • 1.0.0.3
  • 6.0.7
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 5.1.1
  • 6.0.0
  • 5.1.0
  • 5.0.0
  • 4.0.2
  • 3.2.11
  • 4.0.1
  • 3.2.10
  • 4.0.0
  • 1.0.0.2
  • 3.2.9
  • 3.2.8
32 results

configuration.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile-test 1.71 KiB
    ###########################################################################################
    #
    #                               Image pour le dev.
    #
    #         Montage des sources attendu dans le volume "/app" du container.
    #
    ###########################################################################################
    
    FROM unicaen-dev-php7.4-apache
    LABEL maintainer="Laurent LÉCLUSE <laurent.lecluse at unicaen.fr>"
    
    ENV APACHE_CONF_DIR=/etc/apache2 \
        PHP_CONF_DIR=/etc/php/${PHP_VERSION} \
        APPLICATION_HOSTNAME=ose-test.localhost \
        APPLICATION_ENV=test
    
    ## Installation de packages requis.
    RUN apt-get update -y
    RUN apt-get install -y unoconv
    
    # Nettoyage
    RUN apt-get autoremove -y && apt-get clean && rm -rf /tmp/* /var/tmp/*
    
    # Symlink apache access and error logs to stdout/stderr so Docker logs shows them
    RUN ln -sf /dev/stdout /var/log/apache2/access.log
    RUN ln -sf /dev/stdout /var/log/apache2/other_vhosts_access.log
    RUN ln -sf /dev/stderr /var/log/apache2/error.log
    
    # Lien pour l'exécutable interne de OSE
    RUN ln -sf /app/bin/ose /usr/local/bin/ose
    
    # Config PHP.
    ADD docker/${APPLICATION_ENV}/php.conf ${PHP_CONF_DIR}/fpm/conf.d/app.ini
    ADD docker/${APPLICATION_ENV}/php.conf ${PHP_CONF_DIR}/cli/conf.d/app.ini
    
    # Configuration Apache et FPM
    ADD docker/${APPLICATION_ENV}/apache-ports.conf    ${APACHE_CONF_DIR}/ports.conf
    ADD docker/${APPLICATION_ENV}/apache-site.conf     ${APACHE_CONF_DIR}/sites-available/app.conf
    ADD docker/${APPLICATION_ENV}/apache-site-ssl.conf ${APACHE_CONF_DIR}/sites-available/app-ssl.conf
    ADD docker/${APPLICATION_ENV}/fpm/pool.d/app.conf  ${PHP_CONF_DIR}/fpm/pool.d/app.conf
    
    COPY /docker/${APPLICATION_ENV}/entrypoint.d /entrypoint.d/
    
    RUN a2ensite app && \
        service php${PHP_VERSION}-fpm reload