Skip to content

Commit f608c6a

Browse files
authored
Merge branch 'master' into add-tomcat
2 parents ed92e61 + 5355848 commit f608c6a

28 files changed

Lines changed: 1105 additions & 270 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Laradock",
3+
"dockerComposeFile": ["../docker-compose.yml"],
4+
"runServices": ["nginx", "postgres", "pgadmin"],
5+
"service": "workspace",
6+
"workspaceFolder": "/var/www",
7+
"shutdownAction": "stopCompose",
8+
"postCreateCommand": "uname -a"
9+
}

.github/README.md

Lines changed: 0 additions & 98 deletions
This file was deleted.
128 KB
Loading
-69.9 KB
Binary file not shown.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
/nginx/ssl/*.key
1414
/nginx/ssl/*.csr
1515

16-
.DS_Store
16+
/.devcontainer/*
17+
!/.devcontainer/devcontainer.example.json
18+
19+
.DS_Store

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,29 @@ env:
1212
- PHP_VERSION=7.1 BUILD_SERVICE=workspace
1313
- PHP_VERSION=7.2 BUILD_SERVICE=workspace
1414
- PHP_VERSION=7.3 BUILD_SERVICE=workspace
15+
- PHP_VERSION=7.4 BUILD_SERVICE=workspace
1516

1617
- PHP_VERSION=5.6 BUILD_SERVICE=php-fpm
1718
- PHP_VERSION=7.0 BUILD_SERVICE=php-fpm
1819
- PHP_VERSION=7.1 BUILD_SERVICE=php-fpm
1920
- PHP_VERSION=7.2 BUILD_SERVICE=php-fpm
2021
- PHP_VERSION=7.3 BUILD_SERVICE=php-fpm
22+
- PHP_VERSION=7.4 BUILD_SERVICE=php-fpm
2123

2224
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
2325

2426
# - PHP_VERSION=5.6 BUILD_SERVICE=php-worker
25-
- PHP_VERSION=7.0 BUILD_SERVICE=php-worker
26-
- PHP_VERSION=7.1 BUILD_SERVICE=php-worker
27-
- PHP_VERSION=7.2 BUILD_SERVICE=php-worker
28-
- PHP_VERSION=7.3 BUILD_SERVICE=php-worker
27+
- PHP_VERSION=7.0 BUILD_SERVICE="php-worker laravel-horizon"
28+
- PHP_VERSION=7.1 BUILD_SERVICE="php-worker laravel-horizon"
29+
- PHP_VERSION=7.2 BUILD_SERVICE="php-worker laravel-horizon"
30+
- PHP_VERSION=7.3 BUILD_SERVICE="php-worker laravel-horizon"
31+
- PHP_VERSION=7.4 BUILD_SERVICE="php-worker laravel-horizon"
2932

3033
- PHP_VERSION=NA BUILD_SERVICE=solr
3134
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
3235
- PHP_VERSION=NA BUILD_SERVICE="blackfire minio percona nginx caddy apache2 mysql mariadb postgres postgres-postgis neo4j mongo redis cassandra"
3336
- PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin"
34-
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy"
37+
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy gearman"
3538
- PHP_VERSION=NA BUILD_SERVICE="kibana grafana laravel-echo-server"
3639
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller manticore"
3740
# - PHP_VERSION=NA BUILD_SERVICE="aws"

DOCUMENTATION/content/documentation/index.md

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ docker-compose exec mysql bash
7676
*Example: enter to MySQL prompt within MySQL container*
7777

7878
```bash
79-
docker-compose exec mysql mysql -u homestead -psecret
79+
docker-compose exec mysql mysql -udefault -psecret
8080
```
8181

8282
3 - To exit a container, type `exit`.
@@ -536,7 +536,7 @@ Note: Should add `--user=laradock` (example `docker-compose exec --user=laradock
536536
php artisan
537537
```
538538
```bash
539-
Composer update
539+
composer update
540540
```
541541
```bash
542542
phpunit
@@ -650,7 +650,7 @@ docker-compose up -d metabase
650650

651651
1) Boot the container `docker-compose up -d jenkins`. To enter the container type `docker-compose exec jenkins bash`.
652652

653-
2) Go to `http://localhost:8090/` (if you didn't chanhed your default port mapping)
653+
2) Go to `http://localhost:8090/` (if you didn't change your default port mapping)
654654

655655
3) Authenticate from the web app.
656656

@@ -1044,6 +1044,7 @@ _Note: You can customize the port on which beanstalkd console is listening by ch
10441044

10451045
<br>
10461046
<a name="Use-Confluence"></a>
1047+
10471048
## Use Confluence
10481049

10491050
1 - Run the Confluence Container (`confluence`) with the `docker-compose up` command. Example:
@@ -1054,10 +1055,19 @@ docker-compose up -d confluence
10541055

10551056
2 - Open your browser and visit the localhost on port **8090**: `http://localhost:8090`
10561057

1057-
**Note:** You can you trial version and then you have to buy a licence to use it.
1058+
**Note:** Confluence is a licensed application - an evaluation licence can be obtained from Atlassian.
10581059

10591060
You can set custom confluence version in `CONFLUENCE_VERSION`. [Find more info in section 'Versioning'](https://hub.docker.com/r/atlassian/confluence-server/)
10601061

1062+
1063+
##### Confluence usage with Nginx and SSL.
1064+
1065+
1. Find an instance configuration file in `nginx/sites/confluence.conf.example` and replace sample domain with yours.
1066+
1067+
2. Configure ssl keys to your domain.
1068+
1069+
Keep in mind that Confluence is still accessible on 8090 anyway.
1070+
10611071
<br>
10621072
<a name="Use-ElasticSearch"></a>
10631073
## Use ElasticSearch
@@ -1575,7 +1585,7 @@ The default username and password for the root MySQL user are `root` and `root `
15751585

15761586
1 - Enter the MySQL container: `docker-compose exec mysql bash`.
15771587

1578-
2 - Enter mysql: `mysql -uroot -proot` for non root access use `mysql -uhomestead -psecret`.
1588+
2 - Enter mysql: `mysql -uroot -proot` for non root access use `mysql -udefault -psecret`.
15791589

15801590
3 - See all users: `SELECT User FROM mysql.user;`
15811591

@@ -1865,6 +1875,27 @@ To install GNU Parallel in the Workspace container
18651875

18661876

18671877

1878+
<br>
1879+
<a name="Install-Supervisor"></a>
1880+
## Install Supervisor
1881+
1882+
Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
1883+
1884+
(see http://supervisord.org/index.html)
1885+
1886+
To install Supervisor in the Workspace container
1887+
1888+
1 - Open the `.env` file
1889+
1890+
2 - Set `WORKSPACE_INSTALL_SUPERVISOR` and `WORKSPACE_INSTALL_PYTHON` to `true`.
1891+
1892+
3 - Re-build the container `docker-compose build workspace` Or `docker-composer up --build -d workspace`
1893+
1894+
1895+
1896+
1897+
1898+
18681899
<br>
18691900
<a name="Common-Aliases"></a>
18701901
<br>
@@ -1973,6 +2004,26 @@ YAML PHP extension allows you to easily parse and create YAML structured data. I
19732004
4 - Re-build the container `docker-compose build php-fpm`<br>
19742005

19752006

2007+
2008+
2009+
<br>
2010+
<a name="Install-AST"></a>
2011+
## Install AST PHP extension
2012+
AST exposes the abstract syntax tree generated by PHP 7+. This extension is required by tools such as `Phan`, a static analyzer for PHP.
2013+
2014+
1 - Open the `.env` file
2015+
2016+
2 - Search for the `WORKSPACE_INSTALL_AST` argument under the Workspace Container
2017+
2018+
3 - Set it to `true`
2019+
2020+
4 - Re-build the container `docker-compose build workspace`
2021+
2022+
**Note** If you need a specific version of AST then search for the `WORKSPACE_AST_VERSION` argument under the Workspace Container and set it to the desired version and continue step 4.
2023+
2024+
2025+
2026+
19762027
<br>
19772028
<a name="phpstorm-debugging"></a>
19782029
## PHPStorm Debugging Guide

DOCUMENTATION/content/guides/index.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ If you want to only execute some command and don't want to enter bash, you can e
7070
docker-compose run workspace php artisan migrate
7171
```
7272

73+
### Prepare for Visual Studio Code remote development
74+
75+
If you want to use Visual Studio Code for [remote development](https://code.visualstudio.com/docs/remote/containers) directly on your `workspace` container, copy file `devcontainer.example.json` to `devcontainer.json` and customize it (see [devcontainer.json reference](https://code.visualstudio.com/docs/remote/containers#_devcontainerjson-reference) for more options):
76+
```
77+
cd .devcontainer
78+
cp devcontainer.example.json devcontainer.json
79+
```
80+
81+
Then open your `laradock` folder in Visual Studio Code and click on popup button **Reopen in Container**.
82+
7383
### Install and configure Laravel
7484

7585
Let's install Laravel's dependencies, add the `.env` file, generate the key and give proper permissions to the cache folder.
@@ -345,7 +355,7 @@ You could choose to use either:
345355
1. Chrome Driver shipped with Laravel Dusk. (Default)
346356
2. Chrome Driver installed in `workspace` container. (Required tweak on DuskTestCase class)
347357

348-
For Laravel 2.x, you need to update `DuskTestCase#prepare` method if you wish to go with option #2.
358+
For Laravel Dusk 2.x, you need to update `DuskTestCase#prepare` method if you wish to go with option #2.
349359

350360
```
351361
@@ -365,7 +375,7 @@ abstract class DuskTestCase extends BaseTestCase
365375
}
366376
```
367377

368-
For Laravel 1.x, you need to add `DuskTestCase#buildChromeProcess` method if you wish to go with option #2.
378+
For Laravel Dusk 1.x, you need to add `DuskTestCase#buildChromeProcess` method if you wish to go with option #2.
369379

370380
```
371381
<?php

0 commit comments

Comments
 (0)