Remove extra commands no longer needed in install php scripts, add content to README.md
This commit is contained in:
parent
95b9397067
commit
07dabd4375
35
README.md
35
README.md
@ -1 +1,34 @@
|
|||||||
//ToDO
|
# Cloud Apache Container #
|
||||||
|
This is the base container for running PHP based applications. Select the PHP version with the tags
|
||||||
|
|
||||||
|
You can pull this image locally by running:
|
||||||
|
|
||||||
|
```console
|
||||||
|
docker pull registry.dnspegasus.net/cac:81
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then run a development version of the server by running the following commands:
|
||||||
|
|
||||||
|
```console
|
||||||
|
mkdir -p local-development/domain.tld
|
||||||
|
cd local-development/domain.tld
|
||||||
|
mkdir web
|
||||||
|
mkdir db
|
||||||
|
docker run -it --rm -p 80:80 -p 443:443 -e environment=DEV --mount type=bind,source="$(pwd)"/web,target=/home/myuser/public_html --mount type=bind,source="$(pwd)"/db,target=/var/lib/mysql -e uid=30001 -e user=myuser -e domain=domain.tld -e serveralias=www.domain.tld --name local-dev cac:81
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tags ###
|
||||||
|
*74* - PHP 7.4
|
||||||
|
*80* - PHP 8.0
|
||||||
|
*81* - PHP 8.1
|
||||||
|
*82* - PHP 8.2
|
||||||
|
|
||||||
|
### Environment Variables ###
|
||||||
|
__Required Tags__
|
||||||
|
*uid* - User ID for File Permissions
|
||||||
|
*user* - Username for File Permissions
|
||||||
|
*domain* - Primary Domain for configuration
|
||||||
|
|
||||||
|
__Optional Tags__
|
||||||
|
*environment* - Set to DEV to start memcached and mysql locally for development purposes
|
||||||
|
*serveralias* - Set to allow alternative hostnames for a site.
|
@ -3,7 +3,4 @@ dnf module enable php:remi-7.4 -y
|
|||||||
dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-xmlrpc \
|
dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-xmlrpc \
|
||||||
php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \
|
php-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \
|
||||||
php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli
|
php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli
|
||||||
sed -i 's/^php_value\[session\.save_handler\] = files$/;php_value[session.save_handler] = files/' /etc/php-fpm.d/www.conf
|
|
||||||
sed -i 's/^php_value\[session\.save_path\] *= *\/*var\/lib\/php\/session$/;php_value[session.save_path] = \/var\/lib\/php\/session/' /etc/php-fpm.d/www.conf
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
@ -3,7 +3,4 @@ dnf module enable php:remi-8.0 -y
|
|||||||
dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \
|
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-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \
|
||||||
php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli
|
php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli
|
||||||
sed -i 's/^php_value\[session\.save_handler\] = files$/;php_value[session.save_handler] = files/' /etc/php-fpm.d/www.conf
|
|
||||||
sed -i 's/^php_value\[session\.save_path\] *= *\/*var\/lib\/php\/session$/;php_value[session.save_path] = \/var\/lib\/php\/session/' /etc/php-fpm.d/www.conf
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
@ -3,7 +3,4 @@ dnf module enable php:remi-8.1 -y
|
|||||||
dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \
|
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-pecl-redis5 php-pecl-memcached php-pecl-memcache php-pecl-ip2location php-pecl-imagick php-pecl-geoip \
|
||||||
php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli
|
php-mysqlnd php-mbstring php-ioncube-loader php-intl php-gd libzip php-cli
|
||||||
sed -i 's/^php_value\[session\.save_handler\] = files$/;php_value[session.save_handler] = files/' /etc/php-fpm.d/www.conf
|
|
||||||
sed -i 's/^php_value\[session\.save_path\] *= *\/*var\/lib\/php\/session$/;php_value[session.save_path] = \/var\/lib\/php\/session/' /etc/php-fpm.d/www.conf
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
@ -3,7 +3,4 @@ dnf module enable php:remi-8.2 -y
|
|||||||
dnf install -y php php-fpm php-mysqlnd php-xml php-pecl-zip php-sodium php-soap php-pecl-xmlrpc \
|
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-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
|
php-mysqlnd php-mbstring php-intl php-gd libzip php-cli
|
||||||
sed -i 's/^php_value\[session\.save_handler\] = files$/;php_value[session.save_handler] = files/' /etc/php-fpm.d/www.conf
|
|
||||||
sed -i 's/^php_value\[session\.save_path\] *= *\/*var\/lib\/php\/session$/;php_value[session.save_path] = \/var\/lib\/php\/session/' /etc/php-fpm.d/www.conf
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user