maintaina / deployments

Various premade deployments to develop or run Horde environments
1 stars 5 forks source link

deployments fail to setup because no installation of scripts in /srv/www/horde/web/horde/bin/ #13

Closed boekhorstb1 closed 1 year ago

boekhorstb1 commented 1 year ago

Maybe some error in the horde-isntaller?

Deployments are currently not working because this script /srv/www/horde/web/horde/bin/horde-sql-shell is not present. From within the container:

ls: cannot access '/srv/www/web/horde/bin': No such file or directory

Note: horde-sql-shell is present twice in the vendor file:

# find ./ -name horde-sql-shell
./vendor/bin/horde-sql-shell
./vendor/horde/horde/bin/horde-sql-shell

The script has to be run form within the base-image, but it cannot be run because it is not available. See entrypoint.sh on line 125:

## TODO: BACKGROUND THIS and everything besides making the main process pid 1
## Wait for DB connection to succeed
## TODO: Make this optional for No-DB scenarios
if [[ -n "$MYSQL_PASSWORD" ]]; then
    echo "SHOW DATABASES" >/root/conntest.sql
    echo "WAITING FOR DB CONNECTION TO SUCCEED"
    echo "For new setups, this may take some time. You may see error messages"
    until php /srv/www/horde/web/horde/bin/horde-sql-shell /root/conntest.sql &>/dev/null; do
        sleep 3
        echo "RETRYING"
    done
    echo "CONNECTION ESTABLISHED"
fi
boekhorstb1 commented 1 year ago

see following MR

ralflang commented 1 year ago

That's not really an error but intentional. Please use vendor/bin instead. I should have been more verbose about it when I introduced that.

It basically works this way:

@boekhorstb1 Can you change deployment to use vendor/bin/ instead or even better, check what composer config bin-dir says? (by default: vendor/bin)