Skip to content

Commit 3d7ad0c

Browse files
added docker and docker compose file to run tests and changed package name
1 parent 5ab28ca commit 3d7ad0c

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
/vendor
44
composer.lock
55
.phpstorm.meta.php
6-
phpunit.xml
6+
phpunit.xml
7+
/nbproject/private/
8+
/nbproject

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM php:7.1
2+
3+
RUN apt-get update && apt-get install -y libfreetype6-dev \
4+
libjpeg62-turbo-dev \
5+
libmcrypt-dev \
6+
libpng-dev \
7+
libpq-dev \
8+
git \
9+
zip \
10+
&& docker-php-ext-install zip \
11+
&& docker-php-ext-install pdo bcmath \
12+
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
13+
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
14+
&& docker-php-ext-install -j$(nproc) gd
15+
# Install xdebug
16+
RUN pecl install xdebug && docker-php-ext-enable xdebug
17+
18+
RUN apt-get install -y libssl-dev
19+
#PHP Composer
20+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
21+
22+
23+
#COPY . /var/www/html
24+
WORKDIR /var/www/html

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "vladimir-yuldashev/laravel-queue-rabbitmq",
2+
"name": "filkhedma/laravel-queue-rabbitmq",
33
"description": "RabbitMQ driver for Laravel Queue",
44
"license": "MIT",
55
"authors": [
66
{
7-
"name": "Vladimir Yuldashev",
8-
"email": "misterio92@gmail.com"
7+
"name": "Mostafa Saeed",
8+
"email": "msaeed@filkhedma.com"
99
}
1010
],
1111
"require": {

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: '3.2'
2+
services:
3+
#--------------------------------------------------------------------------
4+
# PHP Service
5+
#--------------------------------------------------------------------------
6+
rabbitmq_php:
7+
container_name: rabbitmq_php
8+
build:
9+
context: .
10+
dockerfile: ./Dockerfile
11+
volumes:
12+
- type: bind
13+
source: .
14+
target: /var/www/html
15+
command: composer install

0 commit comments

Comments
 (0)