mirror of
https://github.com/bitnami/containers.git
synced 2026-03-27 15:27:48 +08:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
command:
|
|
check-app-version:
|
|
# The 'sed' expression converts the version to be format used by APP_VERSION
|
|
exec: grep -Eo "'VERSION', '[^']*'" /opt/bitnami/opencart/index.php | sed -E 's/([0-9]+\.[0-9]+\.[0-9]+)\.([0-9]+)/\1-\2/'
|
|
exit-status: 0
|
|
stdout:
|
|
- "{{ .Env.APP_VERSION }}"
|
|
check-enabled-modules:
|
|
exec: php -m
|
|
exit-status: 0
|
|
stdout:
|
|
{{ range $module := .Vars.phpmodules }}
|
|
- "{{ $module }}"
|
|
{{ end }}
|
|
file:
|
|
# HTTP vhost should have been properly rendered
|
|
/opt/bitnami/apache/conf/vhosts/opencart-vhost.conf:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- /DocumentRoot.*/opt/bitnami/opencart/
|
|
# HTTPS vhost should have been properly rendered
|
|
/opt/bitnami/apache/conf/vhosts/opencart-https-vhost.conf:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- "SSLEngine on"
|
|
- /DocumentRoot.*/opt/bitnami/opencart/
|
|
group:
|
|
daemon:
|
|
exists: true
|
|
user:
|
|
daemon:
|
|
exists: true
|