Made the Docker image Alpine-based. Should work better when running Async in a Cron environment.
Also removed compatibility with PHP 7.2.
This commit is contained in:
parent
72cd7637b5
commit
8bcebfc1c3
18
Dockerfile
18
Dockerfile
|
@ -1,11 +1,17 @@
|
|||
FROM php:7.3-cli-buster
|
||||
FROM php:7.3-alpine
|
||||
|
||||
RUN apt-get update &&\
|
||||
apt-get install --no-install-recommends --assume-yes --quiet procps ca-certificates curl git unzip &&\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
# FOR ALPINE
|
||||
# Install git and bash and procps
|
||||
RUN apk add git bash procps
|
||||
RUN apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS
|
||||
|
||||
# Install Redis
|
||||
RUN pecl install redis-5.1.1 && docker-php-ext-enable redis
|
||||
# FOR DEBIAN/UBUNTU
|
||||
#RUN apt-get update &&\
|
||||
# apt-get install --no-install-recommends --assume-yes --quiet procps ca-certificates curl git unzip &&\
|
||||
# rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Redis and XDebug
|
||||
RUN pecl install redis && docker-php-ext-enable redis
|
||||
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||
|
||||
# Install Composer
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.2.0",
|
||||
"php": ">=7.3.0",
|
||||
"fuzeworks/core": "~1.2.0",
|
||||
"ext-json": "*",
|
||||
"ext-redis": "*"
|
||||
|
|
|
@ -64,7 +64,6 @@ class ParallelSuperVisorTest extends TestCase
|
|||
public function setUp(): void
|
||||
{
|
||||
// Load the TaskStorage so temporary tasks can be stored
|
||||
// Tasks shall NOT be reset between individual tests automatically
|
||||
$tasks = new Tasks();
|
||||
$this->taskStorage = $tasks->getTaskStorage();
|
||||
$this->taskStorage->reset();
|
||||
|
|
Loading…
Reference in New Issue