Skip to content

Commit 765f4c1

Browse files
authored
Merge pull request #21 from ushahidi/mysql-php-update-201909
update running env to mysql 5.7 and php 7.1
2 parents bbe4a17 + a3b2fb9 commit 765f4c1

File tree

9 files changed

+9
-195
lines changed

9 files changed

+9
-195
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ushahidi/php-fpm-nginx:php-7.0
1+
FROM ushahidi/php-fpm-nginx:php-7.1
22

33
WORKDIR /var/www
44

@@ -17,7 +17,7 @@ COPY build_env.sh /build_env.sh
1717
COPY dist/ /dist
1818

1919
ENV SERVER_FLAVOR=nginx \
20-
PHP_FPM_CONFIG=/etc/php/7.0/fpm \
21-
PHP_FPM_PATH=/usr/sbin/php-fpm7.0
20+
PHP_FPM_CONFIG=/etc/php/7.1/fpm \
21+
PHP_FPM_PATH=/usr/sbin/php-fpm7.1
2222

2323
ENTRYPOINT [ "/bin/bash", "/run.sh" ]

Dockerfile.apache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.0.32-apache
1+
FROM php:7.1-apache
22

33
RUN apt-get update && apt-get install -y \
44
libfreetype6-dev \

docker-compose.apache.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ services:
1717
MYSQL_USER: ushahidi
1818
MYSQL_PASSWORD: ushahidi
1919
mysql:
20-
build:
21-
context: ./docker/mysql
22-
dockerfile: Dockerfile
20+
image: mysql:5.7
2321
environment:
22+
MYSQL_ROOT_PASSWORD: root
2423
MYSQL_DATABASE: ushahidi
2524
MYSQL_USER: ushahidi
2625
MYSQL_PASSWORD: ushahidi
27-

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ services:
1515
MYSQL_USER: ushahidi
1616
MYSQL_PASSWORD: ushahidi
1717
mysql:
18-
build:
19-
context: ./docker/mysql
20-
dockerfile: Dockerfile
18+
image: mysql:5.7
2119
environment:
20+
MYSQL_ROOT_PASSWORD: root
2221
MYSQL_DATABASE: ushahidi
2322
MYSQL_USER: ushahidi
2423
MYSQL_PASSWORD: ushahidi

docker/mysql/Dockerfile

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

docker/mysql/README.md

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

docker/mysql/my.cnf

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

docker/mysql/run.sh

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

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ stderr_logfile_maxbytes=0
248248
249249
[program:tail-phpfpm]
250250
autorestart=false
251-
command=tail -f /var/log/php7.0-fpm.log
251+
command=tail -f /var/log/php7.1-fpm.log
252252
stdout_logfile=/dev/fd/1
253253
stdout_logfile_maxbytes=0
254254
stderr_logfile=/dev/fd/2

0 commit comments

Comments
 (0)