btw this is how far I got with a Dockerfile that could be used for maybe running it as a container job:
# Use Ubuntu 20.04 so PHP 7.4 is still available
FROM ubuntu:20.04
RUN apt update
RUN DEBIAN_FRONTEND="noninteractive" apt install -yq \
git \
php \
php-pgsql \
vim \
curl \
php-curl
RUN git clone https://github.com/pondersource/prejournal
RUN curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
RUN php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN apt install -yq php7.4-mbstring php7.4-xml
WORKDIR prejournal
RUN composer update
RUN composer install
RUN DB_USER= DB_PASSWORD= DB_DRIVER=pdo_pgsql DB_HOST=localhost ./vendor/phpunit/phpunit/phpunit tests
but in the end I got it working with phpunit on the host and postgres as a docker service. :)
btw this is how far I got with a Dockerfile that could be used for maybe running it as a container job:
but in the end I got it working with phpunit on the host and postgres as a docker service. :)