CT's Nextcloud, Freshrss.heimdall & mailbackup: Refractored PHP Installation

Now using external `AlpinePHPTool`  script for installing/configuring php.
This wil make upgrading PHP on existing containers automaticaly plausible/easier.

Removed php packages from alpine.yaml and moved them to CT-Files `Config/php.pkglist`
Remove PHP configurations steps from CT's init.sh and integrated them in  ` AlpinePHPTool`
Removed PHP timezone configuration files and intergradeded them in `AlpinePHPTool`
Updated
This commit is contained in:
2024-07-21 15:21:16 +02:00
parent fd00751efa
commit a41c5bef3c
21 changed files with 222 additions and 123 deletions

View File

@@ -205,9 +205,9 @@ files:
- path: /var/lib/dbus/machine-id
generator: remove
- path: /etc/netplan/10-lxc.yaml
generator: dump
content: |-
#- path: /etc/netplan/10-lxc.yaml
# generator: dump
# content: |-
- path: /etc/network/interfaces
@@ -277,6 +277,17 @@ files:
- nginx
- heimdall
#PHP SetupScript
- path: /opt/Setup/Scripts/PHPTool.sh
generator: copy
source: Scripts/AlpinePHPTool.sh
variants:
- nextcloud
- mailbackup
# - elkarbackupALP
- heimdall
- freshrss
#FileForGitea
- path: /opt/Setup
generator: copy
@@ -472,39 +483,6 @@ packages:
#PKGS for nextcloud
- packages:
- php83-pdo_mysql
- php83-pecl-imagick
- php83-cli
- php83-pecl-apcu
- php83-pecl-redis
- php83-fpm
- php83-cgi
- php83-common
- php83-mbstring
- php83-curl
- php83-gd
- php83-intl
- php83-soap
- php83-xml
- php83-zip
- php83-pear
- php83-session
- php83-posix
- php83-pdo
- php83-dom
- php83-simplexml
- php83-xmlreader
- php83-xmlwriter
- php83-opcache
- php83-pcntl
- php83-fileinfo
- php83-bcmath
- php83-gmp
- php83-sysvsem
- php83-exif
- php83-bz2
- php83-sodium
- php83-ctype
- libpng
- zlib
- imagemagick
@@ -552,15 +530,7 @@ packages:
#PKGS for MailBackup
- packages:
- dovecot
- php83-xml
- php83-fpm
- php83-curl
- php83-dom
- php83-zip
- php83-mbstring
- php83-openssl
- php83-ctype
- offlineimap@CommunityEdge
- offlineimap
- sudo
- git
action: install
@@ -596,19 +566,6 @@ packages:
#PKGS for Heimdall
- packages:
- git
- php83
- php83-ctype
- php83-curl
- php83-pdo_sqlite
- php83-mbstring
- php83-json
- php83-zip
- php83-xml
- php83-fpm
- php83-session
- php83-openssl
- php83-tokenizer
- php83-fileinfo
action: install
variants:
- heimdall
@@ -623,31 +580,7 @@ packages:
#PKGS for FreshRSS
- packages:
- git
- php83
- php83-fpm
- php83-curl
- php83-gmp
- php83-intl
- php83-mbstring
- php83-xml
- php83-zip
- php83-ctype
- php83-dom
- php83-fileinfo
- php83-iconv
- php83-json
- php83-opcache
- php83-openssl
- php83-phar
- php83-session
- php83-simplexml
- php83-xmlreader
- php83-xmlwriter
- php83-xml
- php83-tokenizer
- php83-zlib
- php83-pdo_mysql
#- php83-pdo_sqlite
#- php-pdo_sqlite
action: install
variants:
- freshrss
@@ -671,7 +604,7 @@ packages:
http://dl-4.alpinelinux.org/alpine/v{{ image.release }}/community
#EndREPOS
{% if image.variant == "NoExist" %}@TestingEdge http://dl-4.alpinelinux.org/alpine/edge/testing{% endif %}
{% if image.variant == "mailbackup" %}@CommunityEdge http://dl-4.alpinelinux.org/alpine/edge/community{% endif %}
{% if image.variant == "NoExist" %}@CommunityEdge http://dl-4.alpinelinux.org/alpine/edge/community{% endif %}
{% if image.variant == "elkarbackupALP" %}@CommunityOldStable http://dl-4.alpinelinux.org/alpine/v3.15/community{% endif %}
actions: