Skip to content

Commit 696814a

Browse files
authored
Merge pull request #4 from andrewmy/add-php-7.4
Add PHP 7.4, remove older
2 parents 3813efb + 5d9f6ec commit 696814a

20 files changed

+27
-273
lines changed

7.2/base/entrypoint.sh

Lines changed: 0 additions & 65 deletions
This file was deleted.

7.2/base/php-fpm.conf.tpl

Lines changed: 0 additions & 17 deletions
This file was deleted.

7.2/build-images.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

7.2/php-all-exts/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

7.3/base/Dockerfile

Lines changed: 0 additions & 39 deletions
This file was deleted.

7.3/base/defaults.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.

7.3/base/nginx.conf.tpl

Lines changed: 0 additions & 54 deletions
This file was deleted.

7.3/base/nginx_ssl.conf.tpl

Lines changed: 0 additions & 44 deletions
This file was deleted.

7.3/build-images.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

7.3/php-all-exts/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

7.3/push-images.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

7.2/base/Dockerfile renamed to 7.4/base/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:20.04
22

33
MAINTAINER Maksim Kotliar <kotlyar.maksim@gmail.com>
44

55
ENV LC_ALL=C.UTF-8
66

77
RUN apt-get update && \
8-
apt-get -y --no-install-recommends --no-install-suggests install software-properties-common python-software-properties && \
8+
apt-get -y --no-install-recommends --no-install-suggests install software-properties-common && \
99
add-apt-repository ppa:ondrej/php && \
1010
add-apt-repository ppa:ondrej/pkg-gearman && \
1111
rm -rf /var/lib/apt/lists/*
1212

1313
RUN apt-get update && \
14-
apt-get remove php7.0 && \
15-
apt-get install -y --no-install-recommends --no-install-suggests nginx php7.2 php7.2-fpm php7.2-cli php7.2-common ca-certificates gettext && \
14+
apt-get install -y --no-install-recommends --no-install-suggests nginx php7.4 php7.4-fpm php7.4-cli php7.4-common ca-certificates gettext && \
1615
rm -rf /var/lib/apt/lists/*
1716

1817
# forward request and error logs to docker log collector
1918
RUN ln -sf /dev/stderr /var/log/nginx/access.log \
2019
&& ln -sf /dev/stderr /var/log/nginx/error.log \
21-
&& ln -sf /dev/stderr /var/log/php7.2-fpm.log \
20+
&& ln -sf /dev/stderr /var/log/php7.4-fpm.log \
2221
&& ln -sf /dev/stderr /var/log/php-fpm.log
2322

2423
RUN rm -f /etc/nginx/sites-enabled/*
2524

2625
COPY nginx.conf.tpl /nginx.conf.tpl
2726
COPY nginx_ssl.conf.tpl /nginx_ssl.conf.tpl
2827
COPY php-fpm.conf.tpl /php-fpm.conf.tpl
29-
COPY defaults.ini /etc/php/7.2/cli/conf.d/defaults.ini
30-
COPY defaults.ini /etc/php/7.2/fpm/conf.d/defaults.ini
28+
COPY defaults.ini /etc/php/7.4/cli/conf.d/defaults.ini
29+
COPY defaults.ini /etc/php/7.4/fpm/conf.d/defaults.ini
3130

32-
RUN mkdir -p /run/php && touch /run/php/php7.2-fpm.sock && touch /run/php/php7.2-fpm.pid
31+
RUN mkdir -p /run/php && touch /run/php/php7.4-fpm.sock && touch /run/php/php7.4-fpm.pid
3332

3433
COPY entrypoint.sh /entrypoint.sh
3534
RUN chmod 755 /entrypoint.sh
File renamed without changes.
File renamed without changes.

7.2/base/nginx.conf.tpl renamed to 7.4/base/nginx.conf.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ http {
5050
location ~ \.php$ {
5151
return 404;
5252
}
53-
}
53+
}
5454
}
File renamed without changes.
File renamed without changes.

7.4/build-images.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
set -e
5+
6+
(cd 7.4/base && docker build --rm --pull -t makasim/nginx-php-fpm:7.4 .)
7+
(cd 7.4/php-all-exts && docker build --rm -t makasim/nginx-php-fpm:7.4-all-exts .)

7.4/php-all-exts/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM makasim/nginx-php-fpm:7.4
2+
3+
# exts
4+
RUN apt-get update && \
5+
apt-get install -y --no-install-recommends --no-install-suggests \
6+
php7.4-mongodb php7.4-curl php7.4-intl php7.4-soap php7.4-xml php7.4-bcmath \
7+
php7.4-mysql php7.4-amqp php7.4-gearman php7.4-mbstring php7.4-ldap php7.4-zip php7.4-gd php7.4-xdebug php7.4-imagick && \
8+
rm -f /etc/php/7.4/cli/conf.d/*xdebug.ini && \
9+
rm -f /etc/php/7.4/fpm/conf.d/*xdebug.ini && \
10+
rm -rf /var/lib/apt/lists/*

7.2/push-images.sh renamed to 7.4/push-images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ set -x
44
set -e
55

66
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
7-
docker push makasim/nginx-php-fpm:7.2
8-
docker push makasim/nginx-php-fpm:7.2-all-exts
7+
docker push makasim/nginx-php-fpm:7.4
8+
docker push makasim/nginx-php-fpm:7.4-all-exts

0 commit comments

Comments
 (0)