mirror of
https://github.com/bitnami/containers.git
synced 2026-03-05 16:17:21 +08:00
initialize php module at runtime
refer: https://github.com/bitnami/charts/pull/99#issuecomment-244235413
This commit is contained in:
@@ -7,8 +7,8 @@ ENV BITNAMI_APP_NAME=magento \
|
||||
PATH=/opt/bitnami/php/bin:/opt/bitnami/apache/bin:/opt/bitnami/magento/bin/:$PATH
|
||||
|
||||
# Additional modules required
|
||||
RUN bitnami-pkg install php-7.0.8-0 --checksum afc462c63a44a1abe5c130d1fdfad3ef88989b8b75d782c90538a0d1acaff4ee
|
||||
RUN bitnami-pkg unpack apache-2.4.20-0 --checksum ec415b0938e6df70327055c5be50f80b1307b785fa5bbd04c94a4077519e5dba
|
||||
RUN bitnami-pkg unpack php-7.0.8-0 --checksum afc462c63a44a1abe5c130d1fdfad3ef88989b8b75d782c90538a0d1acaff4ee
|
||||
RUN bitnami-pkg install libphp-7.0.6-0 --checksum ab1ae095760d5a5d45a232a6b22cca40d3a5fc9116ddc73cc535f740dbf99e46
|
||||
RUN bitnami-pkg install mysql-client-10.1.13-2 --checksum d82ac222dfc58f460aaba05a70260940e8c55ff0b24e4e3ed72dec5f2bfb37fd
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ ln -fs /opt/bitnami/magento/conf/cron /etc/cron.d/magento
|
||||
|
||||
|
||||
if [[ "$1" == "harpoon" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
|
||||
for module in apache magento; do
|
||||
for module in php apache magento; do
|
||||
initialize $module
|
||||
done
|
||||
echo "Starting application ..."
|
||||
|
||||
Reference in New Issue
Block a user