bitnami-containers/.vib/phpmyadmin/goss/phpmyadmin.yaml

51 lines
1.3 KiB
YAML

# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
command:
check-app-version:
exec: grep '"version":' /opt/bitnami/phpmyadmin/package.json
exit-status: 0
stdout:
- '"version": "{{ .Env.APP_VERSION }}",'
check-enabled-modules:
exec: php -m
exit-status: 0
stdout:
{{ range $module := .Vars.phpmodules }}
- "{{ $module }}"
{{ end }}
file:
/opt/bitnami/php/etc/php.ini:
exists: true
filetype: file
contents:
- "post_max_size = 80M"
- "upload_max_filesize = 80M"
# HTTP vhost should have been properly rendered
/opt/bitnami/apache/conf/vhosts/phpmyadmin-vhost.conf:
exists: true
filetype: file
contents:
- /DocumentRoot.*/opt/bitnami/phpmyadmin/
# HTTPS vhost should have been properly rendered
/opt/bitnami/apache/conf/vhosts/phpmyadmin-https-vhost.conf:
exists: true
filetype: file
contents:
- "SSLEngine on"
- /DocumentRoot.*/opt/bitnami/phpmyadmin/
# Default phpMyAdmin configurations
/opt/bitnami/phpmyadmin/config.inc.php:
exists: true
filetype: file
contents:
- "$cfg['Servers'][$i]['host'] = 'mariadb';"
- "$cfg['AllowArbitraryServer'] = false;"
- "$cfg['Servers'][$i]['AllowNoPassword'] = true;"
group:
daemon:
exists: true
user:
daemon:
exists: true