Skip to content
Snippets Groups Projects
Select Git revision
  • c9af27084a3ca5bb7e100d2fce2b48b60bee5c0e
  • master default protected
  • main
  • update_github_actions
  • 144_rocky8_support
  • 195-update-pdk-to-300
  • 144-rocky8
  • add_test_github_test_workflow
  • pdk_2.4.0
  • fix_unclosed_let_block_in_defines_client_spec
  • validation_fixes
  • freeradius_3_0_21_config_updates
  • data_types
  • PrepareBuster
  • travis
  • 4.0.1
  • 4.0.0
  • 3.9.2
  • 3.9.1
  • 3.9.0
  • 3.8.2
  • 3.8.1
  • 3.8.0
  • 3.7.0
  • 3.6.0
  • 3.5.0
  • 3.4.3
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.3.1
35 results

cert.pp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 2.38 KiB
    ###########################################################################################
    #
    #                               Image pour le dev.
    #
    ###########################################################################################
    
    ARG PHP_VERSION
    
    FROM unicaen-dev-php${PHP_VERSION}-apache
    
    LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
    
    RUN echo $PHP_VERSION
    RUN php --version
    
    ## Installation de packages requis.
    #RUN apt-get update -qq && \
    #    apt-get install -y \
    #        ghostscript-x \
    #        php${PHP_VERSION}-imagick
    
    # 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
    
    # Configuration Apache, PHP et FPM
    ADD docker/apache-ports.conf     ${APACHE_CONF_DIR}/ports.conf
    ADD docker/apache-site.conf      ${APACHE_CONF_DIR}/sites-available/app.conf
    ADD docker/apache-site-ssl.conf  ${APACHE_CONF_DIR}/sites-available/app-ssl.conf
    ADD docker/fpm/pool.d/www.conf   ${PHP_CONF_DIR}/fpm/pool.d/
    ADD docker/fpm/conf.d/99-app.ini ${PHP_CONF_DIR}/fpm/conf.d/
    
    # Copie des scripts complémentaires à lancer au démarrage du container
    COPY docker/entrypoint.d/* /entrypoint.d/
    
    ## Package PHP Oracle OCI8
    ADD docker/resources/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip /tmp/
    ADD docker/resources/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip /tmp/
    ADD docker/resources/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip /tmp/
    RUN unzip -o /tmp/instantclient-basiclite-linux.x64-18.5.0.0.0dbru.zip -d /usr/local/ && \
        unzip -o /tmp/instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip -d /usr/local/ && \
        unzip -o /tmp/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip -d /usr/local/ && \
        ln -s /usr/local/instantclient_18_5 /usr/local/instantclient && \
        ln -s /usr/local/instantclient/sqlplus /usr/bin/sqlplus
    RUN echo 'instantclient,/usr/local/instantclient' | pecl install oci8
    RUN echo "extension=oci8.so" > ${PHP_CONF_DIR}/fpm/conf.d/30-php-oci8.ini
    RUN echo "extension=oci8.so" > ${PHP_CONF_DIR}/cli/conf.d/30-php-oci8.ini
    RUN echo "/usr/local/instantclient" > /etc/ld.so.conf.d/oracle-instantclient.conf
    RUN ldconfig
    
    RUN a2ensite app app-ssl && \
        service php${PHP_VERSION}-fpm reload