This repository was archived by the owner on Nov 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +46
-42
lines changed Expand file tree Collapse file tree 5 files changed +46
-42
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ services:
22
22
version : v5.6.*
23
23
dockerfile : Dockerfile
24
24
volumes :
25
- - ./..:/app/driver
26
25
- laravel:/app/laravel
27
26
networks :
28
27
- default-net
@@ -35,7 +34,7 @@ services:
35
34
depends_on :
36
35
- laravel
37
36
- mysql
38
- # - elastic
37
+ - elastic
39
38
volumes :
40
39
- ./..:/app/driver
41
40
- laravel:/app/laravel
@@ -56,29 +55,29 @@ services:
56
55
- default-net
57
56
ports :
58
57
- 13306:3306
59
- # elastic:
60
- # build:
61
- # context: elastic
62
- # args:
63
- # version: 6.2.4
64
- # dockerfile: Dockerfile
65
- # volumes:
66
- # - ./elastic/data:/usr/share/elasticsearch/data
67
- # networks:
68
- # - default-net
69
- # ports:
70
- # - 19200:9200
71
- # kibana:
72
- # build:
73
- # context: kibana
74
- # args:
75
- # version: 6.2.4
76
- # dockerfile: Dockerfile
77
- # depends_on:
78
- # - elastic
79
- # environment:
80
- # ELASTICSEARCH_URL: http://elastic:9200
81
- # networks:
82
- # - default-net
83
- # ports:
84
- # - 15601:5601
58
+ elastic :
59
+ build :
60
+ context : elastic
61
+ args :
62
+ version : 6.2.4
63
+ dockerfile : Dockerfile
64
+ volumes :
65
+ - ./elastic/data:/usr/share/elasticsearch/data
66
+ networks :
67
+ - default-net
68
+ ports :
69
+ - 19200:9200
70
+ kibana :
71
+ build :
72
+ context : kibana
73
+ args :
74
+ version : 6.2.4
75
+ dockerfile : Dockerfile
76
+ depends_on :
77
+ - elastic
78
+ environment :
79
+ ELASTICSEARCH_URL : http://elastic:9200
80
+ networks :
81
+ - default-net
82
+ ports :
83
+ - 15601:5601
Original file line number Diff line number Diff line change @@ -20,8 +20,3 @@ COPY database/seeds/* database/seeds/
20
20
21
21
# Regenerate autoloader
22
22
RUN composer dump-autoload --no-interaction
23
-
24
- # Bootstrap
25
- COPY bootstrap /usr/local/bin/bootstrap
26
- RUN chmod 544 /usr/local/bin/bootstrap
27
- CMD ["bootstrap" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,10 +2,21 @@ ARG version
2
2
3
3
FROM php:${version}-cli
4
4
5
- # Install necessary php extensions
5
+ # Install system libraries
6
+ RUN apt-get update -y && apt-get install -y \
7
+ unzip \
8
+ zlib1g-dev \
9
+ git
10
+
11
+ # Install php extensions
6
12
RUN docker-php-ext-install \
13
+ zip \
7
14
pdo_mysql
8
15
16
+ # Install composer
17
+ RUN curl -sS https://getcomposer.org/installer | \
18
+ php -- --install-dir=/usr/bin/ --filename=composer
19
+
9
20
WORKDIR /app/laravel
10
21
11
22
# Bootstrap
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # Add driver repository
4
+ composer config --no-interaction repositories.scout-elasticsearch-driver \
5
+ ' {"type": "path", "url": "../driver", "options": {"symlink": true}}'
6
+
7
+ # Require driver package
8
+ composer require --no-interaction --prefer-dist babenkoivan/scout-elasticsearch-driver:@dev
9
+
3
10
# Clear application cache
4
11
php artisan cache:clear --no-interaction
5
12
You can’t perform that action at this time.
0 commit comments