I’ve used Gitify from a Docker image a couple of months ago, and now it does not work anymore. The error says:
“Could not scan for classes inside “/opt/Gitify/vendor/kbjr/git.php/git.php” which does not appear to be a file nor a folder”
That is correct, that file is called Git.php (with a capital G), so it exits with a non-zero status.
I see that something is fixed 21 days ago in the master branch, but it does not work for me.
My Dockerfile:
FROM maki/modx
#MAINTAINER Stefaan Loehers
COPY gitify /var/www/html/.gitify
RUN apt-get update && \
apt-get install -qy git mysql-client libzip-dev && \
rm -rf /var/lib/apt/lists/* && \
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('SHA384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
chmod +x composer.phar && \
mv composer.phar /usr/bin/composer && \
cd /opt && \
git clone -b fix/php8_compatibility https://github.com/modmore/Gitify.git Gitify && \
cd Gitify && \
composer install && \
ln -s /opt/Gitify/vendor/kbjr/git.php/Git.php /opt/Gitify/vendor/kbjr/git.php/git.php && \
composer install && \
chmod +x Gitify && \
cd /var/www/html/ && \
mkdir -pm777 _data _backup assets && \
docker-php-ext-install zip
CMD [“apache2-foreground”]