Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
Update composer setup
Browse files Browse the repository at this point in the history
  • Loading branch information
babenkoivan committed Jan 19, 2020
1 parent 2dcb620 commit 9095b89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Scout Elasticsearch Driver

:exclamation: **If you are interested in being a collaborator, please fill in [this form](https://goo.gl/forms/hcB8LPQCyDpNRt9u2).** :exclamation:
# Scout Elasticsearch Driver

---

Expand All @@ -10,8 +8,6 @@
[![Donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://www.paypal.me/babenkoi)

:beer: If you like my package, it'd be nice of you [to buy me a beer](https://www.paypal.me/ivanbabenko).

:octocat: The project has a [chat room on Gitter](https://gitter.im/scout-elasticsearch-driver/Lobby)!

---

Expand Down Expand Up @@ -48,7 +44,7 @@ Check out its [features](#features)!
The package has been tested in the following configuration:

* PHP version >=7.1.3, <=7.3
* Laravel Framework version 5.8
* Laravel Framework version >=5.8, <=6
* Elasticsearch version >=7

## Installation
Expand Down
13 changes: 10 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ version: '3.7'

services:
php:
image: babenkoivan/scout-elasticsearch-driver-php-cli:php7.2-laravel5.8
image: babenkoivan/scout-elasticsearch-driver-php-cli:php7.3-laravel6
command: >
sh -c 'check-connection mysql 3306 &&
sh -c 'composer config --no-interaction repositories.driver "{\"type\":\"path\",\"url\":\"../driver\",\"options\":{\"symlink\":true}}" &&
composer require --no-interaction --prefer-dist babenkoivan/scout-elasticsearch-driver:@dev &&
check-connection mysql 3306 &&
check-connection elastic 9200 &&
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider" &&
php artisan vendor:publish --provider="ScoutElastic\ScoutElasticServiceProvider" &&
php artisan migrate --no-interaction --seed &&
php -a'
volumes:
- .:/app/vendor/babenkoivan/scout-elasticsearch-driver
- .:/driver
depends_on:
- mysql
- elastic
Expand Down

0 comments on commit 9095b89

Please sign in to comment.