Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Dec 11, 2024
1 parent 05a5839 commit adc7813
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions openshift/drupal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ RUN set -eux; \
RUN \
touch /etc/bash/ps1.sh && \
echo 'export PS1="[${APP_ENV:-env}] \[\e[1;31m\][${HOSTNAME:-hostname}] \[\e[1;33m\]\w\[\e[0m\] $ "' | tee /etc/profile /etc/bash/ps1.sh
ENV ENV="/etc/profile"

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/
COPY --from=amazeeio/envplate:v1.0.3 /usr/local/bin/ep /usr/local/bin/ep

ENV PATH=${PATH}:/app/vendor/bin:/var/www/html/vendor/bin
ENV COMPOSER_HOME=/.composer
ENV ENV="/etc/profile"

# Fetch the required certificate for the Azure MySQL flexible server service
ENV AZURE_SQL_SSL_CA_PATH=/usr/local/share/ca-certificates/DigiCertGlobalRootCA.crt.pem
Expand Down Expand Up @@ -172,5 +172,8 @@ COPY php-fpm-pool.conf /etc/php${PHP_SHORT_VERSION}/php-fpm.d/www.conf
FROM final AS test
COPY tests/ /tests
WORKDIR /tests
RUN composer install && \
# Make sure all envplate substitutions are executed before
# running tests.
RUN /entrypoints/20-prepare-nginx.sh && \
composer install && \
vendor/bin/phpunit

0 comments on commit adc7813

Please sign in to comment.