Skip to content

Commit 4dd4074

Browse files
authored
Merge pull request laradock#1 from laradock/master
Synck fork
2 parents 0a253a3 + 719d1f7 commit 4dd4074

15 files changed

Lines changed: 219 additions & 86 deletions

File tree

.github/stale.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Configuration for probot-stale - https://github.com/probot/stale
1+
# Configuration for Github probot-stale - https://github.com/probot/stale
22

33
# Number of days of inactivity before an issue becomes stale
4-
daysUntilStale: 180
4+
daysUntilStale: 90
55
# Number of days of inactivity before a stale issue is closed
6-
daysUntilClose: 90
6+
daysUntilClose: 21
77
# Issues with these labels will never be considered stale
88
exemptLabels:
99
- 'Type: Feature Request'
1010
# Label to use when marking an issue as stale
11-
staleLabel: stale
11+
staleLabel: Stale
1212
# Comment to post when marking an issue as stale. Set to `false` to disable
1313
markComment: >
14-
This issue has been automatically marked as stale because it has not had
15-
recent activity. It will be closed if no further activity occurs. Thank you
16-
for your contributions.
14+
Hi 👋 this issue has been automatically marked as `stale` 📌 because it has not had recent activity 😴.
15+
It will be closed if no further activity occurs. Thank you for your contributions ❤️.
1716
# Comment to post when closing a stale issue. Set to `false` to disable
1817
closeComment: >
19-
This issue has been automatically closed because it had not recent activity during the stale period.
18+
Hi again 👋 we would like to inform you that this issue has been automatically `closed` 🔒 because it had not recent activity during the `stale` period.
19+
We really really appreciate your contributions, and looking forward for more in the future 🎈.
2020
# Limit to only `issues` or `pulls`
2121
only: issues

DOCUMENTATION/content/documentation/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,6 +2122,25 @@ AST exposes the abstract syntax tree generated by PHP 7+. This extension is requ
21222122

21232123

21242124

2125+
<br>
2126+
<a name="Install-Bash-Git-Prompt"></a>
2127+
## Install Git Bash Prompt
2128+
A bash prompt that displays information about the current git repository. In particular the branch name, difference with remote branch, number of files staged, changed, etc.
2129+
2130+
1 - Open the `.env` file
2131+
2132+
2 - Search for the `WORKSPACE_INSTALL_GIT_PROMPT` argument under the Workspace Container
2133+
2134+
3 - Set it to `true`
2135+
2136+
4 - Re-build the container `docker-compose build workspace`
2137+
2138+
**Note** You can configure bash-git-prompt by editing the `workspace/gitprompt.sh` file and re-building the workspace container.
2139+
For configuration information, visit the [bash-git-prompt repository](https://github.com/magicmonty/bash-git-prompt).
2140+
2141+
2142+
2143+
21252144
<br>
21262145
<a name="phpstorm-debugging"></a>
21272146
## PHPStorm Debugging Guide

DOCUMENTATION/themes/hugo-material-docs/layouts/partials/head.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@
1212
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
1313
{{ .Hugo.Generator }}
1414

15-
{{ with .Site.Params.description }}
16-
<meta name="description" content="{{ . }}">
17-
{{ end }}
15+
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
1816
<link rel="canonical" href="{{ .Permalink }}">
19-
{{ with .Site.Params.author }}
20-
<meta name="author" content="{{ . }}">
21-
{{ end }}
17+
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
2218

2319
<meta property="og:url" content="{{ .Permalink }}">
20+
<meta property="og:type" content="website">
21+
{{ with .Site.Title }}<meta property="og:site_name" content="{{ . }}">{{ end }}
22+
{{ with .Site.Params.description }}<meta property="og:description" content="{{ . }}">{{ end }}
2423
{{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
2524
{{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
25+
26+
<meta name="twitter:card" content="summary">
27+
<meta name="twitter:site" content="@Mahmoud_Zalt">
28+
{{ with .Site.Title }}<meta name="twitter:title" content="{{ . }}">{{ end }}
29+
{{ with .Site.Params.description }}<meta name="twitter:description" content="{{ . }}">{{ end }}
30+
{{ with .Site.Params.logo }}<meta name="twitter:image" content="{{ . | absURL }}">{{ end }}
31+
2632
{{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
2733
<meta name="apple-mobile-web-app-capable" content="yes">
2834
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

docker-compose.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ services:
6464
- LARADOCK_PHP_VERSION=${PHP_VERSION}
6565
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
6666
- INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
67+
- INSTALL_BZ2=${WORKSPACE_INSTALL_BZ2}
68+
- INSTALL_GMP=${WORKSPACE_INSTALL_GMP}
6769
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
6870
- INSTALL_PCOV=${WORKSPACE_INSTALL_PCOV}
6971
- INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
7072
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
7173
- INSTALL_SSH2=${WORKSPACE_INSTALL_SSH2}
72-
- INSTALL_GMP=${WORKSPACE_INSTALL_GMP}
7374
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
7475
- INSTALL_XSL=${WORKSPACE_INSTALL_XSL}
7576
- INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
@@ -125,6 +126,7 @@ services:
125126
- INSTALL_AST=${WORKSPACE_INSTALL_AST}
126127
- INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
127128
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
129+
- INSTALL_GIT_PROMPT=${WORKSPACE_INSTALL_GIT_PROMPT}
128130
- PUID=${WORKSPACE_PUID}
129131
- PGID=${WORKSPACE_PGID}
130132
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
@@ -167,6 +169,8 @@ services:
167169
- CHANGE_SOURCE=${CHANGE_SOURCE}
168170
- LARADOCK_PHP_VERSION=${PHP_VERSION}
169171
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
172+
- INSTALL_BZ2=${PHP_FPM_INSTALL_BZ2}
173+
- INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
170174
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
171175
- INSTALL_PCOV=${PHP_FPM_INSTALL_PCOV}
172176
- INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
@@ -182,7 +186,6 @@ services:
182186
- INSTALL_GEARMAN=${PHP_FPM_INSTALL_GEARMAN}
183187
- INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL}
184188
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
185-
- INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
186189
- INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS}
187190
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
188191
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
@@ -248,8 +251,10 @@ services:
248251
context: ./php-worker
249252
args:
250253
- CHANGE_SOURCE=${CHANGE_SOURCE}
251-
- PHP_VERSION=${PHP_VERSION}
254+
- LARADOCK_PHP_VERSION=${PHP_VERSION}
252255
- PHALCON_VERSION=${PHALCON_VERSION}
256+
- INSTALL_BZ2=${PHP_WORKER_INSTALL_BZ2}
257+
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
253258
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
254259
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
255260
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
@@ -263,7 +268,6 @@ services:
263268
- INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
264269
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
265270
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
266-
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
267271
- INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
268272
- PUID=${PHP_WORKER_PUID}
269273
- PGID=${PHP_WORKER_PGID}
@@ -282,7 +286,9 @@ services:
282286
context: ./laravel-horizon
283287
args:
284288
- CHANGE_SOURCE=${CHANGE_SOURCE}
285-
- PHP_VERSION=${PHP_VERSION}
289+
- LARADOCK_PHP_VERSION=${PHP_VERSION}
290+
- INSTALL_BZ2=${LARAVEL_HORIZON_INSTALL_BZ2}
291+
- INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP}
286292
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
287293
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
288294
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
@@ -469,7 +475,10 @@ services:
469475

470476
### PostgreSQL ###########################################
471477
postgres:
472-
build: ./postgres
478+
build:
479+
context: ./postgres
480+
args:
481+
- POSTGRES_VERSION=${POSTGRES_VERSION}
473482
volumes:
474483
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
475484
- ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
@@ -775,7 +784,10 @@ services:
775784

776785
### ElasticSearch ########################################
777786
elasticsearch:
778-
build: ./elasticsearch
787+
build:
788+
context: ./elasticsearch
789+
args:
790+
- ELK_VERSION=${ELK_VERSION}
779791
volumes:
780792
- elasticsearch:/usr/share/elasticsearch/data
781793
environment:
@@ -799,7 +811,10 @@ services:
799811

800812
### Logstash ##############################################
801813
logstash:
802-
build: ./logstash
814+
build:
815+
context: ./logstash
816+
args:
817+
- ELK_VERSION=${ELK_VERSION}
803818
volumes:
804819
- './logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml'
805820
- './logstash/pipeline:/usr/share/logstash/pipeline'
@@ -817,7 +832,10 @@ services:
817832

818833
### Kibana ##############################################
819834
kibana:
820-
build: ./kibana
835+
build:
836+
context: ./kibana
837+
args:
838+
- ELK_VERSION=${ELK_VERSION}
821839
ports:
822840
- "${KIBANA_HTTP_PORT}:5601"
823841
depends_on:

elasticsearch/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
FROM docker.elastic.co/elasticsearch/elasticsearch:7.1.1
1+
ARG ELK_VERSION=7.5.1
2+
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
23

34
EXPOSE 9200 9300

env-example

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ WORKSPACE_INSTALL_NPM_ANGULAR_CLI=false
100100
WORKSPACE_INSTALL_PHPREDIS=true
101101
WORKSPACE_INSTALL_WORKSPACE_SSH=false
102102
WORKSPACE_INSTALL_SUBVERSION=false
103+
WORKSPACE_INSTALL_BZ2=false
104+
WORKSPACE_INSTALL_GMP=false
103105
WORKSPACE_INSTALL_XDEBUG=false
104106
WORKSPACE_INSTALL_PCOV=false
105107
WORKSPACE_INSTALL_PHPDBG=false
106108
WORKSPACE_INSTALL_SSH2=false
107109
WORKSPACE_INSTALL_LDAP=false
108-
WORKSPACE_INSTALL_GMP=false
109110
WORKSPACE_INSTALL_SOAP=false
110111
WORKSPACE_INSTALL_XSL=false
111112
WORKSPACE_INSTALL_SMB=false
@@ -158,6 +159,7 @@ WORKSPACE_INSTALL_FFMPEG=false
158159
WORKSPACE_INSTALL_GNU_PARALLEL=false
159160
WORKSPACE_INSTALL_AST=true
160161
WORKSPACE_AST_VERSION=1.0.3
162+
WORKSPACE_INSTALL_GIT_PROMPT=false
161163

162164
### PHP_FPM ###############################################
163165

@@ -169,6 +171,8 @@ PHP_FPM_INSTALL_OPCACHE=true
169171
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
170172
PHP_FPM_INSTALL_PHPREDIS=true
171173
PHP_FPM_INSTALL_MEMCACHED=false
174+
PHP_FPM_INSTALL_BZ2=false
175+
PHP_FPM_INSTALL_GMP=false
172176
PHP_FPM_INSTALL_XDEBUG=false
173177
PHP_FPM_INSTALL_PCOV=false
174178
PHP_FPM_INSTALL_XHPROF=false
@@ -183,7 +187,6 @@ PHP_FPM_INSTALL_MSSQL=false
183187
PHP_FPM_INSTALL_SSH2=false
184188
PHP_FPM_INSTALL_SOAP=false
185189
PHP_FPM_INSTALL_XSL=false
186-
PHP_FPM_INSTALL_GMP=false
187190
PHP_FPM_INSTALL_EXIF=false
188191
PHP_FPM_INSTALL_AEROSPIKE=false
189192
PHP_FPM_INSTALL_OCI8=false
@@ -219,6 +222,8 @@ PHP_FPM_PGID=1000
219222

220223
### PHP_WORKER ############################################
221224

225+
PHP_WORKER_INSTALL_BZ2=false
226+
PHP_WORKER_INSTALL_GMP=false
222227
PHP_WORKER_INSTALL_PGSQL=false
223228
PHP_WORKER_INSTALL_BCMATH=false
224229
PHP_WORKER_INSTALL_PHALCON=false
@@ -230,7 +235,6 @@ PHP_WORKER_INSTALL_GHOSTSCRIPT=false
230235
PHP_WORKER_INSTALL_SWOOLE=false
231236
PHP_WORKER_INSTALL_TAINT=false
232237
PHP_WORKER_INSTALL_FFMPEG=false
233-
PHP_WORKER_INSTALL_GMP=false
234238
PHP_WORKER_INSTALL_CASSANDRA=false
235239
PHP_WORKER_INSTALL_GEARMAN=false
236240
PHP_WORKER_INSTALL_REDIS=false
@@ -250,6 +254,8 @@ NGINX_SSL_PATH=./nginx/ssl/
250254

251255
### LARAVEL_HORIZON ################################################
252256

257+
LARAVEL_HORIZON_INSTALL_BZ2=false
258+
LARAVEL_HORIZON_INSTALL_GMP=false
253259
LARAVEL_HORIZON_INSTALL_SOCKETS=false
254260
LARAVEL_HORIZON_INSTALL_YAML=false
255261
LARAVEL_HORIZON_INSTALL_PHPREDIS=true
@@ -316,6 +322,7 @@ MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
316322

317323
### POSTGRES ##############################################
318324

325+
POSTGRES_VERSION=alpine
319326
POSTGRES_DB=default
320327
POSTGRES_USER=default
321328
POSTGRES_PASSWORD=secret
@@ -850,3 +857,6 @@ GEARMAN_MYSQL_PASSWORD_FILE=
850857
GEARMAN_MYSQL_DB=Gearmand
851858
# Table to use by Gearman (Default: gearman_queue)
852859
GEARMAN_MYSQL_TABLE=gearman_queue
860+
861+
### ELK Stack ##################################################
862+
ELK_VERSION=7.5.1

kibana/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
FROM docker.elastic.co/kibana/kibana:7.1.1
1+
ARG ELK_VERSION=7.5.1
2+
FROM docker.elastic.co/kibana/kibana:${ELK_VERSION}
23

34
EXPOSE 5601

laravel-horizon/Dockerfile

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
#--------------------------------------------------------------------------
55
#
66

7-
ARG PHP_VERSION=${PHP_VERSION}
8-
FROM php:${PHP_VERSION}-alpine
7+
ARG LARADOCK_PHP_VERSION
8+
FROM php:${LARADOCK_PHP_VERSION}-alpine
99

1010
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
1111

12+
ARG LARADOCK_PHP_VERSION
13+
1214
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
1315

1416
ARG CHANGE_SOURCE=false
@@ -44,6 +46,20 @@ ENV PGID ${PGID}
4446
RUN addgroup -g ${PGID} laradock && \
4547
adduser -D -G laradock -u ${PUID} laradock
4648

49+
#Install BZ2:
50+
ARG INSTALL_BZ2=false
51+
RUN if [ ${INSTALL_BZ2} = true ]; then \
52+
apk --update add bzip2-dev; \
53+
docker-php-ext-install bz2 \
54+
;fi
55+
56+
#Install GMP package:
57+
ARG INSTALL_GMP=false
58+
RUN if [ ${INSTALL_GMP} = true ]; then \
59+
apk add --update --no-cache gmp gmp-dev; \
60+
docker-php-ext-install gmp \
61+
;fi
62+
4763
#Install BCMath package:
4864
ARG INSTALL_BCMATH=false
4965
RUN if [ ${INSTALL_BCMATH} = true ]; then \
@@ -63,12 +79,6 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
6379
&& docker-php-ext-install pdo_pgsql \
6480
;fi
6581

66-
# Install Cassandra drivers:
67-
ARG INSTALL_CASSANDRA=false
68-
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
69-
apk --update add cassandra-cpp-driver \
70-
;fi
71-
7282
# Install PhpRedis package:
7383
ARG INSTALL_PHPREDIS=false
7484
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
@@ -84,6 +94,12 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
8494
apk add ffmpeg \
8595
;fi
8696

97+
# Install Cassandra drivers:
98+
ARG INSTALL_CASSANDRA=false
99+
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
100+
apk --update add cassandra-cpp-driver \
101+
;fi
102+
87103
WORKDIR /usr/src
88104
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
89105
git clone https://github.com/datastax/php-driver.git \

logstash/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM docker.elastic.co/logstash/logstash:6.4.2
1+
ARG ELK_VERSION=7.5.1
2+
FROM docker.elastic.co/logstash/logstash:${ELK_VERSION}
23

34
USER root
45
RUN rm -f /usr/share/logstash/pipeline/logstash.conf

mysql/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG MYSQL_VERSION=latest
1+
ARG MYSQL_VERSION
22
FROM mysql:${MYSQL_VERSION}
33

44
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"

0 commit comments

Comments
 (0)