Commit 8340f1f5 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Docker: Corrections

parent ddbcf351
Loading
Loading
Loading
Loading
+5 −2
Changes for Dockerfile.php7.dev: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"

# Mise à niveau de la distrib.
RUN apt-get update && apt-get install -y \
        ghostscript \
        git \
        libaio1 \
        libcurl4-openssl-dev \
@@ -48,11 +49,13 @@ RUN unzip /tmp/instantclient-basiclite-linux.x64-12.2.0.1.0.zip -d /usr/local/ &
    ln -s /usr/local/instantclient/libclntsh.so.12.1 /usr/local/instantclient/libclntsh.so && \
    ln -s /usr/local/instantclient/sqlplus /usr/bin/sqlplus && \
    echo 'export LD_LIBRARY_PATH="/usr/local/instantclient"' >> /etc/apache2/envvars && \
    echo 'export LD_LIBRARY_PATH="/usr/local/instantclient"' >> /root/.bashrc && \
    echo 'umask 002' >> /root/.bashrc && \
#    echo 'export LD_LIBRARY_PATH="/usr/local/instantclient"' >> /root/.bashrc && \
#    echo 'umask 002' >> /root/.bashrc && \
    echo 'instantclient,/usr/local/instantclient' | pecl install oci8 && \
    echo "extension=oci8.so" > /usr/local/etc/php/conf.d/php-oci8.ini

ENV LD_LIBRARY_PATH /usr/local/instantclient

# Config PHP.
ADD docker/php.conf /usr/local/etc/php/conf.d/webapp.ini

+2
Changes for docker-compose.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ services:
     - "8000:80"
    volumes:
     - .:/sygal
    working_dir: /sygal
    network_mode: bridge

  sygal-import-ws:
@@ -21,4 +22,5 @@ services:
     - "8080:8080"
    volumes:
     - ../sygal-import-ws:/sygal-import-ws
    working_dir: /sygal-import-ws
    network_mode: bridge