Commit 1467e30d authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Ajout des variables d'environnement PROXY

parent 9c324e8a
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -34,6 +34,15 @@ RUN apt-get install -y\
RUN if [ "$proxy_environnement" != "noProxy" ]; \
    then \
      echo "http_proxy = $proxy_environnement"  >> /etc/wgetrc && echo "https_proxy = $proxy_environnement" >> /etc/wgetrc; \
      echo "http_proxy=$proxy_environnement" >> /etc/environment; \
      echo "https_proxy=$proxy_environnement" >> /etc/environment; \
      echo "HTTP_PROXY=$proxy_environnement" >> /etc/environment; \
      echo "HTTPS_PROXY=$proxy_environnement" >> /etc/environment; \
    else \
      echo "http_proxy=" >> /etc/environment; \
      echo "https_proxy=" >> /etc/environment; \
      echo "HTTP_PROXY=" >> /etc/environment; \
      echo "HTTPS_PROXY=" >> /etc/environment; \
    fi
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.3.list
@@ -107,6 +116,9 @@ COPY run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run
RUN a2enmod rewrite && a2enmod ssl

RUN echo "no_proxy=127.0.0.1,localhost,${service_oscar_name},${service_gearman_name},${service_elastic_search_name}" >> /etc/environment
RUN echo "NO_PROXY=127.0.0.1,localhost,${service_oscar_name},${service_gearman_name},${service_elastic_search_name}" >> /etc/environment

#SUPERVISOR FICHIERS DE CONFIG POUR MULTIPLES SERVICES IN CONTAINER DOCKER
COPY supervisor /etc/supervisor/conf.d/oscar.conf
EXPOSE 80