Skip to content
Snippets Groups Projects
Commit 86362da4 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Docker: même Dockerfile.php7.dev que sygal

parent b03f40ad
No related branches found
No related tags found
No related merge requests found
###########################################################################################
#
# Image pour le dev.
#
# Montage des sources attendu dans le volume "/webapp" du container.
#
###########################################################################################
FROM php:7-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
# Mise à niveau de la distrib.
RUN apt-get update && apt-get install -y \
git \
libaio1 \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libldap2-dev \
libmcrypt-dev \
libssl-dev \
libxml2-dev \
make \
netcat-openbsd \
subversion \
unzip \
vim \
wget \
zlib1g-dev \
&& docker-php-ext-install -j$(nproc) iconv gettext gd soap curl intl zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && docker-php-ext-install ldap \
&& rm -rf /var/lib/apt/lists/*
# Installation d'extensions PECL
RUN pear config-set http_proxy "$HTTP_PROXY" && \
pecl install xdebug && docker-php-ext-enable xdebug
# Package PHP Oracle OCI8
ADD docker/instantclient-basiclite-linux.x64-12.2.0.1.0.zip /tmp/
ADD docker/instantclient-sdk-linux.x64-12.2.0.1.0.zip /tmp/
ADD docker/instantclient-sqlplus-linux.x64-12.2.0.1.0.zip /tmp/
RUN unzip /tmp/instantclient-basiclite-linux.x64-12.2.0.1.0.zip -d /usr/local/ && \
unzip /tmp/instantclient-sdk-linux.x64-12.2.0.1.0.zip -d /usr/local/ && \
unzip /tmp/instantclient-sqlplus-linux.x64-12.2.0.1.0.zip -d /usr/local/ && \
ln -s /usr/local/instantclient_12_2 /usr/local/instantclient && \
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 'instantclient,/usr/local/instantclient' | pecl install oci8 && \
echo "extension=oci8.so" > /usr/local/etc/php/conf.d/php-oci8.ini
# Config PHP.
ADD docker/php.conf /usr/local/etc/php/conf.d/webapp.ini
# Configuration et activation du site Apache
ADD docker/apache.conf /etc/apache2/sites-available/webapp.conf
ADD docker/ports.conf /etc/apache2/ports.conf
RUN a2enmod rewrite && a2ensite webapp
# Install Composer.
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
version: "2"
services:
sygal-import-ws:
container_name: sygal-import-ws-container
build:
context: .
dockerfile: Dockerfile
args:
http_proxy: http://10.14.128.99:3128
https_proxy: http://10.14.128.99:3128
no_proxy: localhost,127.0.0.1,.unicaen.fr
dockerfile: Dockerfile.php7.dev
ports:
- "8080:8080"
volumes:
- .:/var/www
- .:/sygal-import-ws
network_mode: bridge
dns: 10.14.128.125
dns_search: unicaen.fr
<VirtualHost *:8080>
ServerName localhost
DocumentRoot /sygal-import-ws/public
RewriteEngine On
AllowEncodedSlashes On
<Directory /sygal-import-ws/public>
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
#LogLevel debug
</VirtualHost>
\ No newline at end of file
File added
File added
File added
date.timezone = Europe/Paris
#error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
#display_startup_errors = 1
display_errors = 0
#
#upload_max_filesize = 51M
#post_max_size = 60M
#
#xdebug.remote_enable = 1
#xdebug.remote_connect_back = 1
#xdebug.profiler_enable_trigger = 1
#xdebug.max_nesting_level = 250
Listen 8080
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment