diff --git a/Dockerfile b/Dockerfile index b8991bc..8e13742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM almalinux/9-base -ARG PHPVER=81 +ARG PHPVER=83 RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y RUN dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm RUN dnf update -y && dnf upgrade -y diff --git a/README.md b/README.md index e9a4118..20e597c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Cloud Apache Container # -This is the base container for running PHP based applications. Select the PHP version environment variables. PHP Version Defaults to PHP 8.1 +This is the base container for running PHP based applications. Select the PHP version environment variables. PHP Version Defaults to PHP 8.3 *__You mush have docker or compatable containerization software running.__* @@ -17,7 +17,7 @@ mkdir -p local-development/domain.tld cd local-development/domain.tld mkdir user mkdir -p user/logs/{apache,system} -docker run -d -it -p 80:80 -p 443:443 -e PHPVER=82 -e environment=DEV --mount type=bind,source="$(pwd)"/user,target=/home/myuser -v"$name-mysql":/var/lib/mysql -e uid=30001 -e user=myuser -e domain=localhost --name local-dev repo.anhonesthost.net/cloud-hosting-platform/cac:latest +docker run -d -it -p 80:80 -p 443:443 -e PHPVER=84 -e environment=DEV --mount type=bind,source="$(pwd)"/user,target=/home/myuser -v"$name-mysql":/var/lib/mysql -e uid=30001 -e user=myuser -e domain=localhost --name local-dev repo.anhonesthost.net/cloud-hosting-platform/cac:latest ``` *This will start the processes needed to run sites locally.* @@ -48,7 +48,8 @@ The database credentials are shown in the /home/```$user```/mysql_creds file, wh *80* - PHP 8.0 *81* - PHP 8.1 *82* - PHP 8.2 -*83* - PHP 8.3 +*83* - PHP 8.3 +*84* - PHP 8.4 ### Environment Variables ### __Required Tags__ diff --git a/configs/mariadb.repo b/configs/mariadb.repo index 2e31bca..b4a34c4 100644 --- a/configs/mariadb.repo +++ b/configs/mariadb.repo @@ -1,10 +1,10 @@ -# MariaDB 10.11 CentOS repository list - created 2023-04-03 23:52 UTC +# MariaDB 11.4.5 CentOS repository list - created 2023-04-03 23:52 UTC # https://mariadb.org/download/ [mariadb] name = MariaDB # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details. # baseurl = https://rpm.mariadb.org/10.11/centos/$releasever/$basearch -baseurl = https://mirrors.xtom.com/mariadb/yum/10.11/centos/$releasever/$basearch +baseurl = https://rpm.mariadb.org/mariadb/yum/11.4.5/centos/$releasever/$basearch module_hotfixes = 1 # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey = https://mirrors.xtom.com/mariadb/yum/RPM-GPG-KEY-MariaDB diff --git a/scripts/install-php84.sh b/scripts/install-php84.sh new file mode 100644 index 0000000..afd5a5c --- /dev/null +++ b/scripts/install-php84.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +dnf module enable php:remi-8.4 -y +dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \ +php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \ +php-mysqlnd php-mbstring php-intl php-gd libzip php-cli +exit 0 \ No newline at end of file