diff --git a/composer.json b/composer.json index 6a939e0..6b2852a 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,8 @@ { "name": "casco/amqp", + "license": "proprietary", "type": "library", + "description": "Library for easy integration with humus/amqp", "config": { "sort-packages": true }, @@ -8,8 +10,8 @@ "ext-pcntl": "^7.2", "php-amqplib/php-amqplib": "^2.8", "prolic/humus-amqp": "^1.4", - "symfony/console": "^4.3", - "symfony/http-kernel": "^4.3" + "symfony/console": "^4.3 || ^5.0", + "symfony/http-kernel": "^4.3 || ^5.0" }, "require-dev": { "phpunit/phpunit": "^8.0", diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index c8556eb..7c2b4e8 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -1,10 +1,26 @@ FROM php:7.2.11-cli-alpine3.7 +RUN apk add --no-cache \ + rabbitmq-c-dev + RUN docker-php-ext-install \ bcmath \ sockets \ pcntl +RUN apk add --virtual .build-dependencies --no-cache \ + autoconf \ +# g++ \ + gcc \ +# git \ + libc-dev \ + make \ + && pecl channel-update pecl.php.net \ + && pecl install amqp \ + && docker-php-ext-enable amqp \ + # cleanup + && apk del .build-dependencies + RUN curl -sS -o /tmp/composer-setup.php https://getcomposer.org/installer \ && curl -sS -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \ && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }" \