Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Removed memory from phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Apr 22, 2018
1 parent 1c58d7d commit 593e7f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ RUN apk add --no-cache \

RUN if [${PHP_VERSION} == '5.6'] ; then pecl install mongo && docker-php-ext-install mongo && docker-php-ext-enable mongo && echo "extension=mongodb.so" >> /usr/local/etc/php/php.ini ; else pecl install mongodb && docker-php-ext-enable mongodb ; fi
RUN set -o pipefail && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN echo -e '#!/bin/sh' > /usr/local/bin/entrypoint.sh \
RUN echo -e '#!/bin/sh ' > /usr/local/bin/entrypoint.sh \
&& echo -e 'while ! nc -z ${MONGO_HOST:-mongo} ${MONGO_PORT:-27017}; do sleep 1; done' >> /usr/local/bin/entrypoint.sh \
&& echo -e 'exec "$@"' >> /usr/local/bin/entrypoint.sh \
&& chmod +x /usr/local/bin/entrypoint.sh
WORKDIR /docker
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["./vendor/bin/phpunit -d memory_limit=2G"]
CMD ["./vendor/bin/phpunit"]

0 comments on commit 593e7f5

Please sign in to comment.