File tree Expand file tree Collapse file tree 6 files changed +27
-16
lines changed
fs/magento/etc/services.d Expand file tree Collapse file tree 6 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,10 @@ STOPSIGNAL SIGHUP
5353CMD ["/usr/local/bin/entrypoint" ]
5454
5555RUN <<FIXUP_BASH
56- rm ~/.bashrc ~/.profile || true
57- ln -s /etc/profile ~/.bashrc
58- ln -s /etc/profile ~/.profile
56+ rm /root/.bashrc /root/.profile /home/app/.bashrc /home/app/.profile || true
57+ ln -s /etc/profile /root/.bashrc
58+ ln -s /etc/profile /root/.profile
59+ ln -s /etc/profile /home/app/.bashrc
60+ ln -s /etc/profile /home/app/.profile
5961sed -i 's|/bin/ash|/bin/bash|' /etc/passwd
60- FIXUP_BASH
61-
62+ FIXUP_BASH
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ source $( dirname " $0 " ) /../common.sh
3+ (
4+ # wait until /etc/services.d/magento/done exists
5+ if [ ! -f /etc/services.d/magento/done ]; then
6+ echo " Waiting for Magento to be ready ..."
7+ while [ ! -f /etc/services.d/magento/done ]; do
8+ sleep 1
9+ done
10+ fi
11+ # Run once first to populate cron lists
12+ chpst -u app magento cron:run
13+ # Start running cron
14+ while true ; do
15+ chpst -u app magento cron:run
16+ sleep 60
17+ done
18+ ) 2>&1 | (while IFS= read -r; do echo " ${COLOR_RESET} [${DIR} ] $REPLY " ; done)
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ function runStartupTasks() {
3333
3434touch /etc/services.d/magento/starting
3535fixCachePerms
36- # if " magento" is executable
37- if [ ! -x magento ] ; then
36+ if [ $( which magento | wc -l ) -eq 0 ] ; then
37+ rm /etc/services.d/ magento/starting
3838 echo " [$DIR ] Error: '${COLOR_YELLOW} magento${COLOR_RESET} ' utility binary is not detectable!"
3939 echo " [$DIR ] You may need to add it to your ${COLOR_YELLOW} PATH${COLOR_RESET} ."
4040 echo " [$DIR ] PATH: ${COLOR_GREY}${PATH}${COLOR_RESET} "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ DIR="magento-images"
33source $( dirname " $0 " ) /common
44(
55 echo " Generating Magento Catalog Images"
6- magento catalog:image:resize --async --skip_hidden_images
6+ magento catalog:image:resize --async --quiet -- skip_hidden_images
77) 2>&1 | (while IFS= read -r; do echo " ${COLOR_RESET} [${DIR} ] $REPLY " ; done)
Original file line number Diff line number Diff line change @@ -64,4 +64,3 @@ if [ "$(whoami)" != "app" ]; then
6464 exec su -s /bin/bash -c " $0 " app
6565 exit 0
6666fi
67- echo " Running as $( whoami) in $( pwd) "
You can’t perform that action at this time.
0 commit comments