Commit 4834c893 authored by Manuel Munz's avatar Manuel Munz
Browse files

add build for codeception 4

parent 0a2226fc
Pipeline #45456 passed with stage
in 5 minutes and 46 seconds
FROM php:7.4-cli
MAINTAINER Manuel Munz munz@team23.de
# Install required system packages
RUN apt-get update && \
apt-get -y install --no-install-recommends \
ca-certificates \
git \
zlib1g-dev \
libssl-dev \
libzip-dev \
nano \
openssh-client \
unzip && \
apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install php extensions
RUN docker-php-ext-install \
bcmath \
zip \
&& rm -rf /tmp/* /var/tmp/*
# Install pecl extensions
RUN pecl install xdebug-2.9.6 && \
docker-php-ext-enable xdebug && \
rm -rf /tmp/* /var/tmp/*
# Configure php
RUN echo "date.timezone = \"Europe/Berlin\"" >> /usr/local/etc/php/php.ini
# Install composer
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN curl -sS https://getcomposer.org/installer | php -- \
--filename=composer \
--install-dir=/usr/local/bin
RUN composer global require --prefer-dist --no-interaction --optimize-autoloader --apcu-autoloader \
"hirak/prestissimo"
# Prepare application
RUN mkdir /opt/codeception
WORKDIR /opt/codeception
RUN composer init --no-interaction --name team23/codeception --require codeception/codeception:^4 \
&& composer config repositories.markupvalidator git https://github.com/mmunz/codeception-markup-validator.git \
&& composer config minimum-stability dev \
&& composer config prefer-stable true
RUN if [ -n "${GITHUB_CI_TOKEN}" ]; then composer config --global github.accesstoken ${GITHUB_CI_TOKEN}; fi
RUN composer require kolyunya/codeception-markup-validator:dev-add-support-for-codeception-4 captbaritone/mailcatcher-codeception-module \
&& composer install --no-interaction --optimize-autoloader --apcu-autoloader
ENV PATH /opt/codeception/vendor/bin:${PATH}
RUN rm -rf /tmp/*
WORKDIR /app
CMD tail -f /dev/null
# codeception
codeception container based on php 7.3 and cpodeception 3 with some useful modules enabled:
codeception containers with some useful modules enabled:
- codeception-markup-validator
- captbaritone/mailcatcher-codeception-module
## Supported tags and respective Dockerfile links
* `4.0-php7.4`: [Dockerfile](4.0-php7.4/Dockerfile)
* `3.0-php7.3`: [Dockerfile](3.0-php7.3/Dockerfile)
* `latest`: see `3.0-php7.3`
* `latest`: see `4.0-php7.4`
......@@ -2,8 +2,8 @@
# Configuration
VERSIONS="3.0-php7.3"
LATEST_VERSION="3.0-php7.3"
VERSIONS="3.0-php7.3 4.0-php7.4"
LATEST_VERSION="4.0-php7.4"
# Let's do it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment