Skip to content

Commit 2ae38e8

Browse files
committed
update centos 8 docker
1 parent 74a0ffc commit 2ae38e8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ I am testing mainly on Ubuntu and I have the following test setups:
13971397
- (Docker) Ubuntu 18.04 with PHP 7.2, MySQL 5.7, PostgreSQL 10.4 (PostGIS 2.4) and SQLite 3.22
13981398
- (Docker) Debian 10 with PHP 7.3, MariaDB 10.3, PostgreSQL 11.4 (PostGIS 2.5) and SQLite 3.27
13991399
- (Docker) Ubuntu 20.04 with PHP 7.4, MySQL 8.0, PostgreSQL 12.2 (PostGIS 3.0) and SQLite 3.31
1400-
- (Docker) CentOS 8 with PHP 8.1, MariaDB 10.6, PostgreSQL 12.8 (PostGIS 3.0) and SQLite 3.26
1400+
- (Docker) CentOS 8 with PHP 8.1, MariaDB 10.7, PostgreSQL 12.10 (PostGIS 3.0) and SQLite 3.26
14011401
- (Docker) Debian 11 with PHP 7.4, MariaDB 10.5, PostgreSQL 13.4 (PostGIS 3.1) and SQLite 3.34
14021402

14031403
This covers not all environments (yet), so please notify me of failing tests and report your environment.

docker/centos8/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
FROM centos:8
22

3+
# centos has reached EOL on December 31st, 2021 use vault:
4+
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
5+
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
6+
RUN yum update -y
7+
38
# add this to avoid locale warnings
49
RUN dnf -y install glibc-locale-source glibc-langpack-en
510
RUN localedef -i en_US -f UTF-8 en_US.UTF-8

docker/centos8/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
echo "================================================"
33
echo " CentOS 8 (PHP 8.1)"
44
echo "================================================"
5-
echo -n "[1/4] Starting MariaDB 10.6 ..... "
5+
echo -n "[1/4] Starting MariaDB 10.7 ..... "
66
# initialize mysql
77
mysql_install_db > /dev/null
88
chown -R mysql:mysql /var/lib/mysql
@@ -21,7 +21,7 @@ FLUSH PRIVILEGES;
2121
EOF
2222
echo "done"
2323

24-
echo -n "[2/4] Starting PostgreSQL 12.8 .. "
24+
echo -n "[2/4] Starting PostgreSQL 12.10 .. "
2525
# initialize postgresql
2626
su - -c "/usr/pgsql-12/bin/initdb --auth-local peer --auth-host password -D /var/lib/pgsql/data" postgres > /dev/null
2727
# run postgres server

0 commit comments

Comments
 (0)