Commit 304c9697 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Migration vers Debien Buster

Proxy déclaré aussi en HTTPS
parent 9b47e55e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
#
###########################################################################################

FROM debian:stretch
FROM debian:buster
#FROM localhost:5000/stretch

LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
@@ -16,7 +16,8 @@ ARG OCI8_PACKAGE
ENV PHP_VERSION=${PHP_VERSION} \
    APACHE_CONF_DIR=/etc/apache2 \
    PHP_CONF_DIR=/etc/php/${PHP_VERSION} \
    HTTP_PROXY=${HTTP_PROXY}
    HTTP_PROXY=${HTTP_PROXY} \
    HTTPS_PROXY=${HTTP_PROXY}

# Mise à niveau de la distrib
RUN echo "Acquire::http::proxy \"${HTTP_PROXY}\";" > /etc/apt/apt.conf.d/proxy
+16 −0
Original line number Diff line number Diff line
@@ -93,6 +93,22 @@ docker build \
.
```

### PHP 7.4

```bash
HTTP_PROXY=http://proxy.unicaen.fr:3128 ; \
NO_PROXY=unicaen.fr ; \
PHP_VERSION=7.4 ; \
docker build \
--rm \
--build-arg PHP_VERSION=${PHP_VERSION} \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
--build-arg OCI8_PACKAGE="oci8" \
-f Dockerfile \
-t unicaen-dev-php${PHP_VERSION}-apache \
.
```

## Utilisation de l'image 

### Dans un `Dockerfile`