Compare commits
62 Commits
Author | SHA1 | Date | |
---|---|---|---|
96e82d4115 | |||
6d4a2c4cc4 | |||
f8e5f73e18 | |||
cdc2811d7b | |||
32d26c3e10 | |||
b482d4d901 | |||
ad00284a22 | |||
a835c9e709 | |||
cdb456a9b5 | |||
714902d12a | |||
657d8535a6 | |||
0594681760 | |||
f5478cfef5 | |||
e10217c64d | |||
f91def64d7 | |||
f991123545 | |||
86ebbfbdd3 | |||
a35287b367 | |||
ddabb4620e | |||
b86211d2d8 | |||
0b414813aa | |||
7dbe65e5f8 | |||
ef38dd1532 | |||
4b91fb1212 | |||
80a60d58cf | |||
1257f8830a | |||
8ed8bfdc2a | |||
042eb9e5e8 | |||
15cac480fe | |||
02e867c17d | |||
d51cd31ebc | |||
ea354cf035 | |||
0d4bacecd8 | |||
86197c9b62 | |||
f8fd92fb0a | |||
61b038e0d9 | |||
5b60b7ffb8 | |||
6e1911bdd5 | |||
d376074936 | |||
64b985f005 | |||
cc50339bcb | |||
8820501644 | |||
07021b01f4 | |||
13891a52dd | |||
a1bbe23800 | |||
2b5fdc00ee | |||
68ff573904 | |||
3a62814fdc | |||
da043ee0c4 | |||
5cd6ea41f9 | |||
d321be888c | |||
7230b11d3b | |||
7b9ec17d8d | |||
18b38db037 | |||
adfb468913 | |||
43f4211abb | |||
b1b8585518 | |||
d8fd1a5de0 | |||
585baf0668 | |||
f99eff3a99 | |||
ff4b913396 | |||
e861348475 |
@ -42,7 +42,7 @@ Laradock uses [Hugo](https://gohugo.io/) as website generator tool, with the [Ma
|
|||||||
1. Install [Hugo](https://gohugo.io/) on your machine (easy thing).
|
1. Install [Hugo](https://gohugo.io/) on your machine (easy thing).
|
||||||
2. Open the `DOCUMENTATION/_settings/content` and search for the markdown file you want to edit (every folder represents a section in the menu).
|
2. Open the `DOCUMENTATION/_settings/content` and search for the markdown file you want to edit (every folder represents a section in the menu).
|
||||||
3. Delete the `/docs` folder from the root.
|
3. Delete the `/docs` folder from the root.
|
||||||
4. When you finish editing, run the `hugo` command to generate the HTML docs (in the `/docs`).
|
4. When you finish editing, go to `DOCUMENTATION/_settings/` and run the `hugo` command to generate the HTML docs (inside new `/docs` folder).
|
||||||
|
|
||||||
### To Host the website locally
|
### To Host the website locally
|
||||||
Go to `DOCUMENTATION/_settings` in your terminal and run `hugo serve` to host the website locally.
|
Go to `DOCUMENTATION/_settings` in your terminal and run `hugo serve` to host the website locally.
|
||||||
|
@ -1349,15 +1349,36 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Speed-MacOS"></a>
|
<a name="Speed-MacOS"></a>
|
||||||
## Improve speed on MacOS
|
## Improve speed on MacOS
|
||||||
|
|
||||||
Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.
|
Sharing code into Docker containers with osxfs have very poor performance compared to Linux. Likely there are some workarounds:
|
||||||
|
|
||||||
> How to share files using NFS (d4m-nfs)
|
### Workaround A: using dinghy
|
||||||
|
|
||||||
[d4m-nfs](https://github.com/IFSight/d4m-nfs) automatically mount NFS volume instead of osxfs one.
|
[Dinghy](https://github.com/codekitchen/dinghy) creates its own VM using docker-machine, it will not modify your existing docker-machine VMs.
|
||||||
|
|
||||||
|
Quick Setup giude, (we recommend you check their docs)
|
||||||
|
|
||||||
|
1) `brew tap codekitchen/dinghy`
|
||||||
|
|
||||||
|
2) `brew install dinghy`
|
||||||
|
|
||||||
|
3) `dinghy create --provider virtualbox` (must have virtualbox installed, but they support other providers if you prefer)
|
||||||
|
|
||||||
|
4) after the above command is done it will display some env variables, copy them to the bash profile or zsh or.. (this will instruct docker to use the server running inside the VM)
|
||||||
|
|
||||||
|
5) `docker-compose up ...`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Workaround B: using d4m-nfs
|
||||||
|
|
||||||
|
[D4m-nfs](https://github.com/IFSight/d4m-nfs) automatically mount NFS volume instead of osxfs one.
|
||||||
|
|
||||||
1) Update the Docker [File Sharing] preferences:
|
1) Update the Docker [File Sharing] preferences:
|
||||||
|
|
||||||
@ -1375,14 +1396,12 @@ git clone https://github.com/IFSight/d4m-nfs ~/d4m-nfs
|
|||||||
|
|
||||||
```txt
|
```txt
|
||||||
/Users:/Users
|
/Users:/Users
|
||||||
/Volumes:/Volumes
|
|
||||||
/private:/private
|
|
||||||
```
|
```
|
||||||
|
|
||||||
5) Create (or edit) the file `/etc/exports`, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the `d4m-nfs.sh` script before).
|
5) Create (or edit) the file `/etc/exports`, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the `d4m-nfs.sh` script before).
|
||||||
|
|
||||||
|
|
||||||
6) Run the `d4m-nfs.sh` script:
|
6) Run the `d4m-nfs.sh` script (might need Sudo):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
~/d4m-nfs/d4m-nfs.sh
|
~/d4m-nfs/d4m-nfs.sh
|
||||||
@ -1391,10 +1410,26 @@ git clone https://github.com/IFSight/d4m-nfs ~/d4m-nfs
|
|||||||
That's it! Run your containers.. Example:
|
That's it! Run your containers.. Example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d nginx mysql
|
docker-compose up ...
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** If you faced any errors, try restarting Docker, and make sure you have no spaces in the `d4m-nfs-mounts.txt` file, and your `/etc/exports` file is clear.
|
*Note: If you faced any errors, try restarting Docker, and make sure you have no spaces in the `d4m-nfs-mounts.txt` file, and your `/etc/exports` file is clear.*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Other good workarounds:
|
||||||
|
|
||||||
|
- [docker-sync](https://github.com/EugenMayer/docker-sync)
|
||||||
|
- Add more here..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
More details about this issue [here](https://github.com/docker/for-mac/issues/77).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[](http://zalt.me)
|
[](http://zalt.me)
|
||||||
|
|
||||||
Laradock is a Docker PHP development environment that facilitate running **PHP** Apps on **Docker**.
|
Laradock is a Docker PHP development environment that facilitates running **PHP** Apps on **Docker**.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ Laradock is a Docker PHP development environment that facilitate running **PHP**
|
|||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
**Super Admins:**
|
**Admins / Maintainers:**
|
||||||
|
|
||||||
- [Mahmoud Zalt](https://github.com/Mahmoudz) (mahmoudz) [ [Twitter](https://twitter.com/Mahmoud_Zalt) | [Personal Site](http://zalt.me) | [LinkedIn](https://www.linkedin.com/in/mahmoudzalt) ]
|
- [Mahmoud Zalt](https://github.com/Mahmoudz) (mahmoudz) [ [Twitter](https://twitter.com/Mahmoud_Zalt) | [Personal Site](http://zalt.me) | [LinkedIn](https://www.linkedin.com/in/mahmoudzalt) ]
|
||||||
- [Bo-Yi Wu](https://github.com/appleboy) (appleboy) [ [Twitter](https://twitter.com/appleboy) ]
|
- [Bo-Yi Wu](https://github.com/appleboy) (appleboy) [ [Twitter](https://twitter.com/appleboy) ]
|
||||||
@ -20,9 +20,10 @@ Laradock is a Docker PHP development environment that facilitate running **PHP**
|
|||||||
- [Mike Erickson](https://github.com/mikeerickson) (mikeerickson)
|
- [Mike Erickson](https://github.com/mikeerickson) (mikeerickson)
|
||||||
- [Dwi Fahni Denni](https://github.com/zeroc0d3) (zeroc0d3)
|
- [Dwi Fahni Denni](https://github.com/zeroc0d3) (zeroc0d3)
|
||||||
- [Thor Erik](https://github.com/thorerik) (thorerik)
|
- [Thor Erik](https://github.com/thorerik) (thorerik)
|
||||||
|
- [Winfried van Loon](https://github.com/winfried-van-loon) (winfried-van-loon)
|
||||||
- Contribute and join us!
|
- Contribute and join us!
|
||||||
|
|
||||||
**Amazing Contributors:**
|
**Contributors:**
|
||||||
|
|
||||||
- [Contributors](https://github.com/laradock/laradock/graphs/contributors)
|
- [Contributors](https://github.com/laradock/laradock/graphs/contributors)
|
||||||
|
|
||||||
|
@ -1,112 +1,118 @@
|
|||||||
#### Install Docker
|
#### Install Docker
|
||||||
```
|
|
||||||
Login Digital Ocean
|
- Visit [DigitalOcean](https://cloud.digitalocean.com/login) and login.
|
||||||
Add Droplet
|
- Click the `Create Droplet` button.
|
||||||
1 Click Install docker
|
- Open the `One-click apps` tab.
|
||||||
Choose Droplet
|
- Select Docker with your preferred version.
|
||||||
reset ROOT password
|
- Continue creating the droplet as you normally would.
|
||||||
check email
|
- If needed, check your e-mail for the droplet root password.
|
||||||
```
|
|
||||||
|
|
||||||
#### SSH to your Server
|
#### SSH to your Server
|
||||||
|
|
||||||
|
Find the IP address of the droplet in the DigitalOcean interface. Use it to connect to the server.
|
||||||
|
|
||||||
```
|
```
|
||||||
ssh root@ipaddress
|
ssh root@ipaddress
|
||||||
```
|
```
|
||||||
you will be prompt of that password.
|
|
||||||
type the password you receive in your email
|
|
||||||
|
|
||||||
then it will ask to you to change a new password
|
You may be prompted for a password. Type the one you found within your e-mailbox. It'll then ask you to change the password.
|
||||||
just change it to the custom root password you want
|
|
||||||
|
|
||||||
After SSH
|
You can now check if Docker is available:
|
||||||
you can check that docker command is working by typing
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~# docker
|
$root@server:~# docker
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Set Up Your Laravel Project
|
#### Set Up Your Laravel Project
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~# apt-get install git
|
$root@server:~# apt-get install git
|
||||||
$root@midascode:~# git clone https://github.com/laravel/laravel
|
$root@server:~# git clone https://github.com/laravel/laravel
|
||||||
$root@midascode:~# cd laravel
|
$root@server:~# cd laravel
|
||||||
$root@midascode:~/laravel/ git submodule add https://github.com/LaraDock/laradock.git
|
$root@server:~/laravel/ git submodule add https://github.com/LaraDock/laradock.git
|
||||||
$root@midascode:~/laravel/ cd laradock
|
$root@server:~/laravel/ cd laradock
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install docker-compose command
|
#### Install docker-compose command
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock# curl -L https://github.com/docker/compose/releases/download/1.8.0/run.sh > /usr/local/bin/docker-compose
|
$root@server:~/laravel/laradock# curl -L https://github.com/docker/compose/releases/download/1.8.0/run.sh > /usr/local/bin/docker-compose
|
||||||
$root@midascode:~/chmod +x /usr/local/bin/docker-compose
|
$root@server:~/chmod +x /usr/local/bin/docker-compose
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Create Your LaraDock Containers
|
#### Create Your LaraDock Containers
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock# docker-compose up -d nginx mysql
|
$root@server:~/laravel/laradock# docker-compose up -d nginx mysql
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that more containers are available, find them in the [docs](http://laradock.io/introduction/#supported-software-containers) or the `docker-compose.yml` file.
|
||||||
|
|
||||||
#### Go to Your Workspace
|
#### Go to Your Workspace
|
||||||
|
|
||||||
```
|
```
|
||||||
docker-compose exec workspace bash
|
docker-compose exec workspace bash
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install laravel Dependencies, Add .env , generate Key and give proper permission certain folder
|
#### Install and configure Laravel
|
||||||
|
|
||||||
|
Let's install Laravel's dependencies, add the `.env` file, generate the key and give proper permissions to the cache folder.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ root@0e77851d27d3:/var/www# composer install
|
$ root@workspace:/var/www# composer install
|
||||||
$ root@0e77851d27d3:/var/www# cp .env.example .env
|
$ root@workspace:/var/www# cp .env.example .env
|
||||||
$ root@0e77851d27d3:/var/www# php artisan key:generate
|
$ root@workspace:/var/www# php artisan key:generate
|
||||||
$ root@0e77851d27d3:/var/www# exit
|
$ root@workspace:/var/www# exit
|
||||||
$root@midascode:~/laravel/laradock# cd ..
|
$root@server:~/laravel/laradock# cd ..
|
||||||
$root@midascode:~/laravel# sudo chmod -R 777 storage bootstrap/cache
|
$root@server:~/laravel# sudo chmod -R 777 storage bootstrap/cache
|
||||||
```
|
```
|
||||||
|
|
||||||
you can then view your laravel site at your ipaddress
|
You can then view your Laravel site by visiting the IP address of your server in your browser. For example:
|
||||||
for example
|
|
||||||
```
|
```
|
||||||
192.168.1.1
|
http://192.168.1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
You will see there Laravel Default Welcome Page
|
It should show you the Laravel default welcome page.
|
||||||
|
|
||||||
but if you need to view on your custom domain name
|
However, we want it to show up using your custom domain name, as well.
|
||||||
which you would.
|
|
||||||
|
|
||||||
#### Using Your Own Domain Name
|
#### Using Your Own Domain Name
|
||||||
login to your DNS provider
|
|
||||||
Godaddy, Namecheap what ever...
|
Login to your DNS provider, such as Godaddy, Namecheap.
|
||||||
And Point the Custom Domain Name Server to
|
|
||||||
|
Point the Custom Domain Name Server to:
|
||||||
|
|
||||||
```
|
```
|
||||||
ns1.digitalocean.com
|
ns1.digitalocean.com
|
||||||
ns2.digitalocean.com
|
ns2.digitalocean.com
|
||||||
ns3.digitalocean.com
|
ns3.digitalocean.com
|
||||||
```
|
```
|
||||||
In Your Digital Ocean Account go to
|
|
||||||
```
|
|
||||||
https://cloud.digitalocean.com/networking/domains
|
|
||||||
```
|
|
||||||
add your domain name and choose the server ip you provision earlier
|
|
||||||
|
|
||||||
#### Serve Site With NGINX (HTTP ONLY)
|
Within DigitalOcean, you'll need to change some settings, too.
|
||||||
Go back to command line
|
|
||||||
|
Visit: https://cloud.digitalocean.com/networking/domains
|
||||||
|
|
||||||
|
Add your domain name and choose the server IP you'd provision earlier.
|
||||||
|
|
||||||
|
#### Serving Site With NGINX (HTTP ONLY)
|
||||||
|
|
||||||
|
Go back to command line.
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock# cd nginx
|
$root@server:~/laravel/laradock# cd nginx
|
||||||
$root@midascode:~/laravel/laradock/nginx# vim laravel.conf
|
$root@server:~/laravel/laradock/nginx# vim laravel.conf
|
||||||
```
|
|
||||||
remove default_server
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Remove `default_server`
|
||||||
|
|
||||||
|
```
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server ipv6only=on;
|
listen [::]:80 default_server ipv6only=on;
|
||||||
|
|
||||||
```
|
```
|
||||||
and add server_name (your custom domain)
|
|
||||||
|
And add `server_name` (your custom domain)
|
||||||
|
|
||||||
```
|
```
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80 ipv6only=on;
|
listen [::]:80 ipv6only=on;
|
||||||
@ -114,27 +120,29 @@ remove default_server
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Rebuild Your Nginx
|
#### Rebuild Your Nginx
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock/nginx# docker-compose down
|
$root@server:~/laravel/laradock/nginx# docker-compose down
|
||||||
$root@midascode:~/laravel/laradock/nginx# docker-compose build nginx
|
$root@server:~/laravel/laradock/nginx# docker-compose build nginx
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Re Run Your Containers MYSQL and NGINX
|
#### Re Run Your Containers MYSQL and NGINX
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock/nginx# docker-compose up -d nginx mysql
|
$root@server:~/laravel/laradock/nginx# docker-compose up -d nginx mysql
|
||||||
```
|
```
|
||||||
|
|
||||||
###### View Your Site with HTTP ONLY (http://yourdomain.com)
|
**View Your Site with HTTP ONLY (http://yourdomain.com)**
|
||||||
|
|
||||||
#### Run Site on SSL with Let's Encrypt Certificate
|
#### Run Site on SSL with Let's Encrypt Certificate
|
||||||
|
|
||||||
###### Note: You need to Use Caddy here Instead of Nginx
|
**Note: You need to Use Caddy here Instead of Nginx**
|
||||||
|
|
||||||
###### To go Caddy Folders and Edit CaddyFile
|
To go Caddy Folders and Edit CaddyFile
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock# cd caddy
|
$root@server:~/laravel/laradock# cd caddy
|
||||||
$root@midascode:~/laravel/laradock/caddy# vim Caddyfile
|
$root@server:~/laravel/laradock/caddy# vim Caddyfile
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove 0.0.0.0:80
|
Remove 0.0.0.0:80
|
||||||
@ -143,31 +151,36 @@ Remove 0.0.0.0:80
|
|||||||
0.0.0.0:80
|
0.0.0.0:80
|
||||||
root /var/www/public
|
root /var/www/public
|
||||||
```
|
```
|
||||||
|
|
||||||
and replace with your https://yourdomain.com
|
and replace with your https://yourdomain.com
|
||||||
|
|
||||||
```
|
```
|
||||||
https://yourdomain.com
|
https://yourdomain.com
|
||||||
root /var/www/public
|
root /var/www/public
|
||||||
```
|
```
|
||||||
|
|
||||||
uncomment tls
|
uncomment tls
|
||||||
|
|
||||||
```
|
```
|
||||||
#tls self-signed
|
#tls self-signed
|
||||||
```
|
```
|
||||||
|
|
||||||
and replace self-signed with your email address
|
and replace self-signed with your email address
|
||||||
|
|
||||||
```
|
```
|
||||||
tls midascodebreaker@gmai.com
|
tls serverbreaker@gmai.com
|
||||||
```
|
```
|
||||||
|
|
||||||
This is needed Prior to Creating Let's Encypt
|
This is needed Prior to Creating Let's Encypt
|
||||||
|
|
||||||
#### Run Your Caddy Container without the -d flag and Generate SSL with Let's Encrypt
|
#### Run Your Caddy Container without the -d flag and Generate SSL with Let's Encrypt
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock/caddy# docker-compose up caddy
|
$root@server:~/laravel/laradock/caddy# docker-compose up caddy
|
||||||
```
|
```
|
||||||
|
|
||||||
you will be prompt here to enter your email... you may enter it or not
|
You'll be prompt here to enter your email... you may enter it or not
|
||||||
|
|
||||||
```
|
```
|
||||||
Attaching to laradock_mysql_1, laradock_caddy_1
|
Attaching to laradock_mysql_1, laradock_caddy_1
|
||||||
caddy_1 | Activating privacy features...
|
caddy_1 | Activating privacy features...
|
||||||
@ -179,17 +192,18 @@ caddy_1 | https://yourdomain.com
|
|||||||
caddy_1 | http://yourdomain.com
|
caddy_1 | http://yourdomain.com
|
||||||
```
|
```
|
||||||
|
|
||||||
After it finish Press Ctrl + C to exit ...
|
After it finishes, press `Ctrl` + `C` to exit.
|
||||||
|
|
||||||
#### Stop All Containers and ReRun Caddy and Other Containers on Background
|
#### Stop All Containers and ReRun Caddy and Other Containers on Background
|
||||||
|
|
||||||
```
|
```
|
||||||
$root@midascode:~/laravel/laradock/caddy# docker-compose down
|
$root@server:~/laravel/laradock/caddy# docker-compose down
|
||||||
$root@midascode:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
|
$root@server:~/laravel/laradock/caddy# docker-compose up -d mysql caddy
|
||||||
```
|
```
|
||||||
|
|
||||||
View your Site in the Browser Securely Using HTTPS (https://yourdomain.com)
|
View your Site in the Browser Securely Using HTTPS (https://yourdomain.com)
|
||||||
|
|
||||||
##### Note that Certificate will be Automatically Renew By Caddy
|
**Note that Certificate will be Automatically Renew By Caddy**
|
||||||
|
|
||||||
>References:
|
>References:
|
||||||
>
|
>
|
||||||
@ -200,14 +214,3 @@ View your Site in the Browser Securely Using HTTPS (https://yourdomain.com)
|
|||||||
- [https://caddyserver.com/docs/automatic-https](https://caddyserver.com/docs/automatic-https)
|
- [https://caddyserver.com/docs/automatic-https](https://caddyserver.com/docs/automatic-https)
|
||||||
- [https://caddyserver.com/docs/tls](https://caddyserver.com/docs/tls)
|
- [https://caddyserver.com/docs/tls](https://caddyserver.com/docs/tls)
|
||||||
- [https://caddyserver.com/docs/caddyfile](https://caddyserver.com/docs/caddyfile)
|
- [https://caddyserver.com/docs/caddyfile](https://caddyserver.com/docs/caddyfile)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,14 +26,16 @@ services:
|
|||||||
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
||||||
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
|
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
|
||||||
- INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
- INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
||||||
- INSTALL_DEPLOYER=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
- INSTALL_DEPLOYER=${WORKSPACE_INSTALL_DEPLOYER}
|
||||||
- INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
|
- INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LINUXBREW}
|
||||||
- INSTALL_MC=${WORKSPACE_INSTALL_MC}
|
- INSTALL_MC=${WORKSPACE_INSTALL_MC}
|
||||||
|
- INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
|
||||||
- PUID=${WORKSPACE_PUID}
|
- PUID=${WORKSPACE_PUID}
|
||||||
- PGID=${WORKSPACE_PGID}
|
- PGID=${WORKSPACE_PGID}
|
||||||
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
||||||
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
||||||
- TZ=${WORKSPACE_TIMEZONE}
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
|
dockerfile: "Dockerfile-${PHP_VERSION}"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
@ -64,7 +66,8 @@ services:
|
|||||||
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
||||||
- INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER}
|
- INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER}
|
||||||
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
|
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
|
||||||
dockerfile: ${PHP_FPM_DOCKER_FILE}
|
- INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
|
||||||
|
dockerfile: "Dockerfile-${PHP_VERSION}"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
expose:
|
expose:
|
||||||
@ -79,6 +82,7 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
|
|
||||||
### PHP Worker Container #####################################
|
### PHP Worker Container #####################################
|
||||||
|
|
||||||
php-worker:
|
php-worker:
|
||||||
build:
|
build:
|
||||||
context: ./php-worker
|
context: ./php-worker
|
||||||
@ -164,7 +168,7 @@ services:
|
|||||||
mysql:
|
mysql:
|
||||||
build:
|
build:
|
||||||
context: ./mysql
|
context: ./mysql
|
||||||
args:
|
environment:
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
@ -389,6 +393,7 @@ services:
|
|||||||
- "${PMA_DB_ENGINE}"
|
- "${PMA_DB_ENGINE}"
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### Adminer Container ####################################
|
### Adminer Container ####################################
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Contributing - Laradock</title>
|
<title>Contributing - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
@ -349,7 +349,7 @@ features, by not reporting duplicate issues.</em></p>
|
|||||||
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
||||||
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
||||||
<li>Delete the <code>/docs</code> folder from the root.</li>
|
<li>Delete the <code>/docs</code> folder from the root.</li>
|
||||||
<li>When you finish editing, run the <code>hugo</code> command to generate the HTML docs (in the <code>/docs</code>).</li>
|
<li>When you finish editing, go to <code>DOCUMENTATION/_settings/</code> and run the <code>hugo</code> command to generate the HTML docs (inside new <code>/docs</code> folder).</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
||||||
|
@ -52,7 +52,7 @@ features, by not reporting duplicate issues.</em></p>
|
|||||||
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
||||||
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
||||||
<li>Delete the <code>/docs</code> folder from the root.</li>
|
<li>Delete the <code>/docs</code> folder from the root.</li>
|
||||||
<li>When you finish editing, run the <code>hugo</code> command to generate the HTML docs (in the <code>/docs</code>).</li>
|
<li>When you finish editing, go to <code>DOCUMENTATION/_settings/</code> and run the <code>hugo</code> command to generate the HTML docs (inside new <code>/docs</code> folder).</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Documentation - Laradock</title>
|
<title>Documentation - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
@ -888,6 +888,18 @@ docker-compose up -d mariadb phpmyadmin
|
|||||||
|
|
||||||
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
<a name="Use-Adminer"></a></p>
|
||||||
|
|
||||||
|
<h2 id="use-adminer">Use Adminer</h2>
|
||||||
|
|
||||||
|
<p>1 - Run the Adminer Container (<code>adminer</code>) with the <code>docker-compose up</code> command. Example:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose up -d adminer
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Use-pgAdmin"></a></p>
|
<a name="Use-pgAdmin"></a></p>
|
||||||
|
|
||||||
@ -1401,13 +1413,27 @@ e) set it to <code>true</code></p>
|
|||||||
|
|
||||||
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
||||||
|
|
||||||
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.</p>
|
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. Likely there are some workarounds:</p>
|
||||||
|
|
||||||
<blockquote>
|
<h3 id="workaround-a-using-dinghy">Workaround A: using dinghy</h3>
|
||||||
<p>How to share files using NFS (d4m-nfs)</p>
|
|
||||||
</blockquote>
|
|
||||||
|
|
||||||
<p><a href="https://github.com/IFSight/d4m-nfs">d4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
<p><a href="https://github.com/codekitchen/dinghy">Dinghy</a> creates its own VM using docker-machine, it will not modify your existing docker-machine VMs.</p>
|
||||||
|
|
||||||
|
<p>Quick Setup giude, (we recommend you check their docs)</p>
|
||||||
|
|
||||||
|
<p>1) <code>brew tap codekitchen/dinghy</code></p>
|
||||||
|
|
||||||
|
<p>2) <code>brew install dinghy</code></p>
|
||||||
|
|
||||||
|
<p>3) <code>dinghy create --provider virtualbox</code> (must have virtualbox installed, but they support other providers if you prefer)</p>
|
||||||
|
|
||||||
|
<p>4) after the above command is done it will display some env variables, copy them to the bash profile or zsh or.. (this will instruct docker to use the server running inside the VM)</p>
|
||||||
|
|
||||||
|
<p>5) <code>docker-compose up ...</code></p>
|
||||||
|
|
||||||
|
<h3 id="workaround-b-using-d4m-nfs">Workaround B: using d4m-nfs</h3>
|
||||||
|
|
||||||
|
<p><a href="https://github.com/IFSight/d4m-nfs">D4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
||||||
|
|
||||||
<p>1) Update the Docker [File Sharing] preferences:</p>
|
<p>1) Update the Docker [File Sharing] preferences:</p>
|
||||||
|
|
||||||
@ -1423,23 +1449,30 @@ e) set it to <code>true</code></p>
|
|||||||
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
||||||
|
|
||||||
<pre><code class="language-txt">/Users:/Users
|
<pre><code class="language-txt">/Users:/Users
|
||||||
/Volumes:/Volumes
|
|
||||||
/private:/private
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
||||||
|
|
||||||
<p>6) Run the <code>d4m-nfs.sh</code> script:</p>
|
<p>6) Run the <code>d4m-nfs.sh</code> script (might need Sudo):</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>That’s it! Run your containers.. Example:</p>
|
<p>That’s it! Run your containers.. Example:</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">docker-compose up -d nginx mysql
|
<pre><code class="language-bash">docker-compose up ...
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p><strong>Note:</strong> If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</p>
|
<p><em>Note: If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</em></p>
|
||||||
|
|
||||||
|
<h3 id="other-good-workarounds">Other good workarounds:</h3>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/EugenMayer/docker-sync">docker-sync</a></li>
|
||||||
|
<li>Add more here..</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>More details about this issue <a href="https://github.com/docker/for-mac/issues/77">here</a>.</p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Common-Problems"></a></p>
|
<a name="Common-Problems"></a></p>
|
||||||
|
@ -591,6 +591,18 @@ docker-compose up -d mariadb phpmyadmin
|
|||||||
|
|
||||||
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
<a name="Use-Adminer"></a></p>
|
||||||
|
|
||||||
|
<h2 id="use-adminer">Use Adminer</h2>
|
||||||
|
|
||||||
|
<p>1 - Run the Adminer Container (<code>adminer</code>) with the <code>docker-compose up</code> command. Example:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose up -d adminer
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Use-pgAdmin"></a></p>
|
<a name="Use-pgAdmin"></a></p>
|
||||||
|
|
||||||
@ -1104,13 +1116,27 @@ e) set it to <code>true</code></p>
|
|||||||
|
|
||||||
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
||||||
|
|
||||||
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.</p>
|
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. Likely there are some workarounds:</p>
|
||||||
|
|
||||||
<blockquote>
|
<h3 id="workaround-a-using-dinghy">Workaround A: using dinghy</h3>
|
||||||
<p>How to share files using NFS (d4m-nfs)</p>
|
|
||||||
</blockquote>
|
|
||||||
|
|
||||||
<p><a href="https://github.com/IFSight/d4m-nfs">d4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
<p><a href="https://github.com/codekitchen/dinghy">Dinghy</a> creates its own VM using docker-machine, it will not modify your existing docker-machine VMs.</p>
|
||||||
|
|
||||||
|
<p>Quick Setup giude, (we recommend you check their docs)</p>
|
||||||
|
|
||||||
|
<p>1) <code>brew tap codekitchen/dinghy</code></p>
|
||||||
|
|
||||||
|
<p>2) <code>brew install dinghy</code></p>
|
||||||
|
|
||||||
|
<p>3) <code>dinghy create --provider virtualbox</code> (must have virtualbox installed, but they support other providers if you prefer)</p>
|
||||||
|
|
||||||
|
<p>4) after the above command is done it will display some env variables, copy them to the bash profile or zsh or.. (this will instruct docker to use the server running inside the VM)</p>
|
||||||
|
|
||||||
|
<p>5) <code>docker-compose up ...</code></p>
|
||||||
|
|
||||||
|
<h3 id="workaround-b-using-d4m-nfs">Workaround B: using d4m-nfs</h3>
|
||||||
|
|
||||||
|
<p><a href="https://github.com/IFSight/d4m-nfs">D4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
||||||
|
|
||||||
<p>1) Update the Docker [File Sharing] preferences:</p>
|
<p>1) Update the Docker [File Sharing] preferences:</p>
|
||||||
|
|
||||||
@ -1126,23 +1152,30 @@ e) set it to <code>true</code></p>
|
|||||||
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
||||||
|
|
||||||
<pre><code class="language-txt">/Users:/Users
|
<pre><code class="language-txt">/Users:/Users
|
||||||
/Volumes:/Volumes
|
|
||||||
/private:/private
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
||||||
|
|
||||||
<p>6) Run the <code>d4m-nfs.sh</code> script:</p>
|
<p>6) Run the <code>d4m-nfs.sh</code> script (might need Sudo):</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>That&rsquo;s it! Run your containers.. Example:</p>
|
<p>That&rsquo;s it! Run your containers.. Example:</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">docker-compose up -d nginx mysql
|
<pre><code class="language-bash">docker-compose up ...
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p><strong>Note:</strong> If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</p>
|
<p><em>Note: If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</em></p>
|
||||||
|
|
||||||
|
<h3 id="other-good-workarounds">Other good workarounds:</h3>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/EugenMayer/docker-sync">docker-sync</a></li>
|
||||||
|
<li>Add more here..</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>More details about this issue <a href="https://github.com/docker/for-mac/issues/77">here</a>.</p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Common-Problems"></a></p>
|
<a name="Common-Problems"></a></p>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Getting Started - Laradock</title>
|
<title>Getting Started - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
@ -356,7 +356,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
||||||
|
|
||||||
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="#keep-tracking-Laradock">Check this</a></p></li>
|
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="http://laradock.io/documentation/#keep-track-of-your-laradock-changes">Check this</a></p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Your folder structure should look like this:</p>
|
<p>Your folder structure should look like this:</p>
|
||||||
@ -394,8 +394,9 @@
|
|||||||
|
|
||||||
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
||||||
|
|
||||||
<p><strong>In case of Apache:</strong> :P
|
<p><strong>In case of Apache:</strong> :P</p>
|
||||||
<br></p>
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
@ -448,8 +449,8 @@
|
|||||||
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="#upgrading-laradock">Upgrading Laradock</a></li>
|
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li>
|
||||||
<li>Use Laradock v3.* (Visit the <code>Laradock-ToolBox</code> <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Branch</a>).</li>
|
<li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/LaraDock-ToolBox">LaraDock-ToolBox</a> branch. <em>(outdated)</em></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p><br></p>
|
<p><br></p>
|
||||||
@ -479,7 +480,7 @@
|
|||||||
<p>You can select your own combination of containers form the list below:</p>
|
<p>You can select your own combination of containers form the list below:</p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more…!</p>
|
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>adminer</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more…!</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
||||||
|
|
||||||
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="#keep-tracking-Laradock">Check this</a></p></li>
|
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="http://laradock.io/documentation/#keep-track-of-your-laradock-changes">Check this</a></p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Your folder structure should look like this:</p>
|
<p>Your folder structure should look like this:</p>
|
||||||
@ -97,8 +97,9 @@
|
|||||||
|
|
||||||
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
||||||
|
|
||||||
<p><strong>In case of Apache:</strong> :P
|
<p><strong>In case of Apache:</strong> :P</p>
|
||||||
<br></p>
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
@ -151,8 +152,8 @@
|
|||||||
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="#upgrading-laradock">Upgrading Laradock</a></li>
|
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li>
|
||||||
<li>Use Laradock v3.* (Visit the <code>Laradock-ToolBox</code> <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Branch</a>).</li>
|
<li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/LaraDock-ToolBox">LaraDock-ToolBox</a> branch. <em>(outdated)</em></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p><br></p>
|
<p><br></p>
|
||||||
@ -182,7 +183,7 @@
|
|||||||
<p>You can select your own combination of containers form the list below:</p>
|
<p>You can select your own combination of containers form the list below:</p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more&hellip;!</p>
|
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>adminer</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more&hellip;!</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
||||||
@ -217,7 +218,6 @@
|
|||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
5 - Open your browser and visit your localhost address <code>http://localhost/</code>. If you followed the multiple projects setup, you can visit <code>http://project-1.dev/</code> and <code>http://project-2.dev/</code>. But first don&rsquo;t</p>
|
5 - Open your browser and visit your localhost address <code>http://localhost/</code>. If you followed the multiple projects setup, you can visit <code>http://project-1.dev/</code> and <code>http://project-2.dev/</code>. But first don&rsquo;t</p>
|
||||||
|
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Help & Questions - Laradock</title>
|
<title>Help & Questions - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Laradock</title>
|
<title>Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
@ -468,6 +468,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>PhpMyAdmin</li>
|
<li>PhpMyAdmin</li>
|
||||||
|
<li>Adminer</li>
|
||||||
<li>PgAdmin</li>
|
<li>PgAdmin</li>
|
||||||
<li>ElasticSearch</li>
|
<li>ElasticSearch</li>
|
||||||
<li>Selenium</li>
|
<li>Selenium</li>
|
||||||
@ -554,7 +555,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
<ul>
|
<ul>
|
||||||
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
||||||
|
|
||||||
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="#keep-tracking-Laradock">Check this</a></p></li>
|
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="http://laradock.io/documentation/#keep-track-of-your-laradock-changes">Check this</a></p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Your folder structure should look like this:</p>
|
<p>Your folder structure should look like this:</p>
|
||||||
@ -592,8 +593,9 @@ QUEUE_HOST=beanstalkd
|
|||||||
|
|
||||||
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
||||||
|
|
||||||
<p><strong>In case of Apache:</strong> :P
|
<p><strong>In case of Apache:</strong> :P</p>
|
||||||
<br></p>
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
@ -646,8 +648,8 @@ QUEUE_HOST=beanstalkd
|
|||||||
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="#upgrading-laradock">Upgrading Laradock</a></li>
|
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li>
|
||||||
<li>Use Laradock v3.* (Visit the <code>Laradock-ToolBox</code> <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Branch</a>).</li>
|
<li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/LaraDock-ToolBox">LaraDock-ToolBox</a> branch. <em>(outdated)</em></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p><br></p>
|
<p><br></p>
|
||||||
@ -677,7 +679,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
<p>You can select your own combination of containers form the list below:</p>
|
<p>You can select your own combination of containers form the list below:</p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more…!</p>
|
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>adminer</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more…!</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
||||||
@ -1293,6 +1295,18 @@ docker-compose up -d mariadb phpmyadmin
|
|||||||
|
|
||||||
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
<a name="Use-Adminer"></a></p>
|
||||||
|
|
||||||
|
<h2 id="use-adminer">Use Adminer</h2>
|
||||||
|
|
||||||
|
<p>1 - Run the Adminer Container (<code>adminer</code>) with the <code>docker-compose up</code> command. Example:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose up -d adminer
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Use-pgAdmin"></a></p>
|
<a name="Use-pgAdmin"></a></p>
|
||||||
|
|
||||||
@ -1806,13 +1820,27 @@ e) set it to <code>true</code></p>
|
|||||||
|
|
||||||
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
||||||
|
|
||||||
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.</p>
|
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. Likely there are some workarounds:</p>
|
||||||
|
|
||||||
<blockquote>
|
<h3 id="workaround-a-using-dinghy">Workaround A: using dinghy</h3>
|
||||||
<p>How to share files using NFS (d4m-nfs)</p>
|
|
||||||
</blockquote>
|
|
||||||
|
|
||||||
<p><a href="https://github.com/IFSight/d4m-nfs">d4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
<p><a href="https://github.com/codekitchen/dinghy">Dinghy</a> creates its own VM using docker-machine, it will not modify your existing docker-machine VMs.</p>
|
||||||
|
|
||||||
|
<p>Quick Setup giude, (we recommend you check their docs)</p>
|
||||||
|
|
||||||
|
<p>1) <code>brew tap codekitchen/dinghy</code></p>
|
||||||
|
|
||||||
|
<p>2) <code>brew install dinghy</code></p>
|
||||||
|
|
||||||
|
<p>3) <code>dinghy create --provider virtualbox</code> (must have virtualbox installed, but they support other providers if you prefer)</p>
|
||||||
|
|
||||||
|
<p>4) after the above command is done it will display some env variables, copy them to the bash profile or zsh or.. (this will instruct docker to use the server running inside the VM)</p>
|
||||||
|
|
||||||
|
<p>5) <code>docker-compose up ...</code></p>
|
||||||
|
|
||||||
|
<h3 id="workaround-b-using-d4m-nfs">Workaround B: using d4m-nfs</h3>
|
||||||
|
|
||||||
|
<p><a href="https://github.com/IFSight/d4m-nfs">D4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
||||||
|
|
||||||
<p>1) Update the Docker [File Sharing] preferences:</p>
|
<p>1) Update the Docker [File Sharing] preferences:</p>
|
||||||
|
|
||||||
@ -1828,23 +1856,30 @@ e) set it to <code>true</code></p>
|
|||||||
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
||||||
|
|
||||||
<pre><code class="language-txt">/Users:/Users
|
<pre><code class="language-txt">/Users:/Users
|
||||||
/Volumes:/Volumes
|
|
||||||
/private:/private
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
||||||
|
|
||||||
<p>6) Run the <code>d4m-nfs.sh</code> script:</p>
|
<p>6) Run the <code>d4m-nfs.sh</code> script (might need Sudo):</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>That’s it! Run your containers.. Example:</p>
|
<p>That’s it! Run your containers.. Example:</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">docker-compose up -d nginx mysql
|
<pre><code class="language-bash">docker-compose up ...
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p><strong>Note:</strong> If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</p>
|
<p><em>Note: If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</em></p>
|
||||||
|
|
||||||
|
<h3 id="other-good-workarounds">Other good workarounds:</h3>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/EugenMayer/docker-sync">docker-sync</a></li>
|
||||||
|
<li>Add more here..</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>More details about this issue <a href="https://github.com/docker/for-mac/issues/77">here</a>.</p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Common-Problems"></a></p>
|
<a name="Common-Problems"></a></p>
|
||||||
@ -1949,6 +1984,7 @@ These Docker Compose projects have piqued our interest:</li>
|
|||||||
<h2 id="i-have-a-question-problem">I have a Question/Problem</h2>
|
<h2 id="i-have-a-question-problem">I have a Question/Problem</h2>
|
||||||
|
|
||||||
<p>If you have questions about how to use Laradock, please direct your questions to the discussion on <a href="https://gitter.im/Laradock/laradock">Gitter</a>. If you believe your question could help others, then consider opening an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as <code>Question</code>) And you can still seek help on Gitter for it.</p>
|
<p>If you have questions about how to use Laradock, please direct your questions to the discussion on <a href="https://gitter.im/Laradock/laradock">Gitter</a>. If you believe your question could help others, then consider opening an <a href="https://github.com/laradock/laradock/issues">Issue</a> (it will be labeled as <code>Question</code>) And you can still seek help on Gitter for it.</p>
|
||||||
|
|
||||||
<h2 id="i-found-an-issue">I found an Issue</h2>
|
<h2 id="i-found-an-issue">I found an Issue</h2>
|
||||||
|
|
||||||
<p>If have an issue or you found a typo in the documentation, you can help us by
|
<p>If have an issue or you found a typo in the documentation, you can help us by
|
||||||
@ -1979,7 +2015,7 @@ features, by not reporting duplicate issues.</em></p>
|
|||||||
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
||||||
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
||||||
<li>Delete the <code>/docs</code> folder from the root.</li>
|
<li>Delete the <code>/docs</code> folder from the root.</li>
|
||||||
<li>When you finish editing, run the <code>hugo</code> command to generate the HTML docs (in the <code>/docs</code>).</li>
|
<li>When you finish editing, go to <code>DOCUMENTATION/_settings/</code> and run the <code>hugo</code> command to generate the HTML docs (inside new <code>/docs</code> folder).</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
||||||
|
@ -170,6 +170,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>PhpMyAdmin</li>
|
<li>PhpMyAdmin</li>
|
||||||
|
<li>Adminer</li>
|
||||||
<li>PgAdmin</li>
|
<li>PgAdmin</li>
|
||||||
<li>ElasticSearch</li>
|
<li>ElasticSearch</li>
|
||||||
<li>Selenium</li>
|
<li>Selenium</li>
|
||||||
@ -261,7 +262,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
<ul>
|
<ul>
|
||||||
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
<li><p>If you are not using Git yet for your project, you can use <code>git clone</code> instead of <code>git submodule</code>.</p></li>
|
||||||
|
|
||||||
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="#keep-tracking-Laradock">Check this</a></p></li>
|
<li><p>Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. <a href="http://laradock.io/documentation/#keep-track-of-your-laradock-changes">Check this</a></p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Your folder structure should look like this:</p>
|
<p>Your folder structure should look like this:</p>
|
||||||
@ -299,8 +300,9 @@ QUEUE_HOST=beanstalkd
|
|||||||
|
|
||||||
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
<p><em>Or you can keep <code>default.conf</code> as it is, and create a separate config <code>my-site.conf</code> file for it.</em></p>
|
||||||
|
|
||||||
<p><strong>In case of Apache:</strong> :P
|
<p><strong>In case of Apache:</strong> :P</p>
|
||||||
<br></p>
|
|
||||||
|
<p><br></p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
<p><strong>Now jump to the <a href="#Usage">Usage</a> section.</strong></p>
|
||||||
@ -353,8 +355,8 @@ QUEUE_HOST=beanstalkd
|
|||||||
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
<p>If you are using <strong>Docker Toolbox</strong> (VM), do one of the following:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="#upgrading-laradock">Upgrading Laradock</a></li>
|
<li>Upgrade to Docker <a href="https://www.docker.com/products/docker">Native</a> for Mac/Windows (Recommended). Check out <a href="http://laradock.io/documentation/#upgrading-laradock">Upgrading Laradock</a></li>
|
||||||
<li>Use Laradock v3.* (Visit the <code>Laradock-ToolBox</code> <a href="https://github.com/laradock/laradock/tree/Laradock-ToolBox">Branch</a>).</li>
|
<li>Use Laradock v3.*. Visit the <a href="https://github.com/laradock/laradock/tree/LaraDock-ToolBox">LaraDock-ToolBox</a> branch. <em>(outdated)</em></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p><br></p>
|
<p><br></p>
|
||||||
@ -384,7 +386,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
<p>You can select your own combination of containers form the list below:</p>
|
<p>You can select your own combination of containers form the list below:</p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more&hellip;!</p>
|
<p><code>nginx</code>, <code>hhvm</code>, <code>php-fpm</code>, <code>mysql</code>, <code>redis</code>, <code>postgres</code>, <code>mariadb</code>, <code>neo4j</code>, <code>mongo</code>, <code>apache2</code>, <code>caddy</code>, <code>memcached</code>, <code>beanstalkd</code>, <code>beanstalkd-console</code>, <code>rabbitmq</code>, <code>beanstalkd-console</code>, <code>workspace</code>, <code>phpmyadmin</code>, <code>adminer</code>, <code>aerospike</code>, <code>pgadmin</code>, <code>elasticsearch</code>, <code>rethinkdb</code>, <code>postgres-postgis</code>, <code>certbot</code>, <code>mailhog</code>, <code>minio</code> and more&hellip;!</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
<p><em>(Please note that sometimes we forget to update the docs, so check the <code>docker-compose.yml</code> file to see an updated list of all available containers).</em></p>
|
||||||
@ -1005,6 +1007,18 @@ docker-compose up -d mariadb phpmyadmin
|
|||||||
|
|
||||||
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
|
<p><br>
|
||||||
|
<a name="Use-Adminer"></a></p>
|
||||||
|
|
||||||
|
<h2 id="use-adminer">Use Adminer</h2>
|
||||||
|
|
||||||
|
<p>1 - Run the Adminer Container (<code>adminer</code>) with the <code>docker-compose up</code> command. Example:</p>
|
||||||
|
|
||||||
|
<pre><code class="language-bash">docker-compose up -d adminer
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>2 - Open your browser and visit the localhost on port <strong>8080</strong>: <code>http://localhost:8080</code></p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Use-pgAdmin"></a></p>
|
<a name="Use-pgAdmin"></a></p>
|
||||||
|
|
||||||
@ -1518,13 +1532,27 @@ e) set it to <code>true</code></p>
|
|||||||
|
|
||||||
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
<h2 id="improve-speed-on-macos">Improve speed on MacOS</h2>
|
||||||
|
|
||||||
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. You can get around this issue by using NFS to share your files betwen your host and your container.</p>
|
<p>Sharing code into Docker containers with osxfs have very poor performance compared to Linux. Likely there are some workarounds:</p>
|
||||||
|
|
||||||
<blockquote>
|
<h3 id="workaround-a-using-dinghy">Workaround A: using dinghy</h3>
|
||||||
<p>How to share files using NFS (d4m-nfs)</p>
|
|
||||||
</blockquote>
|
|
||||||
|
|
||||||
<p><a href="https://github.com/IFSight/d4m-nfs">d4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
<p><a href="https://github.com/codekitchen/dinghy">Dinghy</a> creates its own VM using docker-machine, it will not modify your existing docker-machine VMs.</p>
|
||||||
|
|
||||||
|
<p>Quick Setup giude, (we recommend you check their docs)</p>
|
||||||
|
|
||||||
|
<p>1) <code>brew tap codekitchen/dinghy</code></p>
|
||||||
|
|
||||||
|
<p>2) <code>brew install dinghy</code></p>
|
||||||
|
|
||||||
|
<p>3) <code>dinghy create --provider virtualbox</code> (must have virtualbox installed, but they support other providers if you prefer)</p>
|
||||||
|
|
||||||
|
<p>4) after the above command is done it will display some env variables, copy them to the bash profile or zsh or.. (this will instruct docker to use the server running inside the VM)</p>
|
||||||
|
|
||||||
|
<p>5) <code>docker-compose up ...</code></p>
|
||||||
|
|
||||||
|
<h3 id="workaround-b-using-d4m-nfs">Workaround B: using d4m-nfs</h3>
|
||||||
|
|
||||||
|
<p><a href="https://github.com/IFSight/d4m-nfs">D4m-nfs</a> automatically mount NFS volume instead of osxfs one.</p>
|
||||||
|
|
||||||
<p>1) Update the Docker [File Sharing] preferences:</p>
|
<p>1) Update the Docker [File Sharing] preferences:</p>
|
||||||
|
|
||||||
@ -1540,23 +1568,30 @@ e) set it to <code>true</code></p>
|
|||||||
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
<p>4) Create (or edit) the file <code>~/d4m-nfs/etc/d4m-nfs-mounts.txt</code>, and write the follwing configuration in it:</p>
|
||||||
|
|
||||||
<pre><code class="language-txt">/Users:/Users
|
<pre><code class="language-txt">/Users:/Users
|
||||||
/Volumes:/Volumes
|
|
||||||
/private:/private
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
<p>5) Create (or edit) the file <code>/etc/exports</code>, make sure it exists and is empty. (There may be collisions if you come from Vagrant or if you already executed the <code>d4m-nfs.sh</code> script before).</p>
|
||||||
|
|
||||||
<p>6) Run the <code>d4m-nfs.sh</code> script:</p>
|
<p>6) Run the <code>d4m-nfs.sh</code> script (might need Sudo):</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
<pre><code class="language-bash">~/d4m-nfs/d4m-nfs.sh
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>That&rsquo;s it! Run your containers.. Example:</p>
|
<p>That&rsquo;s it! Run your containers.. Example:</p>
|
||||||
|
|
||||||
<pre><code class="language-bash">docker-compose up -d nginx mysql
|
<pre><code class="language-bash">docker-compose up ...
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p><strong>Note:</strong> If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</p>
|
<p><em>Note: If you faced any errors, try restarting Docker, and make sure you have no spaces in the <code>d4m-nfs-mounts.txt</code> file, and your <code>/etc/exports</code> file is clear.</em></p>
|
||||||
|
|
||||||
|
<h3 id="other-good-workarounds">Other good workarounds:</h3>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/EugenMayer/docker-sync">docker-sync</a></li>
|
||||||
|
<li>Add more here..</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>More details about this issue <a href="https://github.com/docker/for-mac/issues/77">here</a>.</p>
|
||||||
|
|
||||||
<p><br>
|
<p><br>
|
||||||
<a name="Common-Problems"></a></p>
|
<a name="Common-Problems"></a></p>
|
||||||
@ -1707,12 +1742,13 @@ features, by not reporting duplicate issues.</em></p>
|
|||||||
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
<li>Install <a href="https://gohugo.io/">Hugo</a> on your machine (easy thing).</li>
|
||||||
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
<li>Open the <code>DOCUMENTATION/_settings/content</code> and search for the markdown file you want to edit (every folder represents a section in the menu).</li>
|
||||||
<li>Delete the <code>/docs</code> folder from the root.</li>
|
<li>Delete the <code>/docs</code> folder from the root.</li>
|
||||||
<li>When you finish editing, run the <code>hugo</code> command to generate the HTML docs (in the <code>/docs</code>).</li>
|
<li>When you finish editing, go to <code>DOCUMENTATION/_settings/</code> and run the <code>hugo</code> command to generate the HTML docs (inside new <code>/docs</code> folder).</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
<h3 id="to-host-the-website-locally">To Host the website locally</h3>
|
||||||
|
|
||||||
<p>Go to <code>DOCUMENTATION/_settings</code> in your terminal and run <code>hugo serve</code> to host the website locally.</p>
|
<p>Go to <code>DOCUMENTATION/_settings</code> in your terminal and run <code>hugo serve</code> to host the website locally.</p>
|
||||||
|
|
||||||
<h3 id="edit-the-sidebar">Edit the sidebar</h3>
|
<h3 id="edit-the-sidebar">Edit the sidebar</h3>
|
||||||
|
|
||||||
<p>To add a new section to the sidebar or edit existing one, you need to edit this file <code>DOCUMENTATION/_settings/config.toml</code>.</p>
|
<p>To add a new section to the sidebar or edit existing one, you need to edit this file <code>DOCUMENTATION/_settings/config.toml</code>.</p>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Introduction - Laradock</title>
|
<title>Introduction - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
@ -467,6 +467,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>PhpMyAdmin</li>
|
<li>PhpMyAdmin</li>
|
||||||
|
<li>Adminer</li>
|
||||||
<li>PgAdmin</li>
|
<li>PgAdmin</li>
|
||||||
<li>ElasticSearch</li>
|
<li>ElasticSearch</li>
|
||||||
<li>Selenium</li>
|
<li>Selenium</li>
|
||||||
|
@ -170,6 +170,7 @@ QUEUE_HOST=beanstalkd
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>PhpMyAdmin</li>
|
<li>PhpMyAdmin</li>
|
||||||
|
<li>Adminer</li>
|
||||||
<li>PgAdmin</li>
|
<li>PgAdmin</li>
|
||||||
<li>ElasticSearch</li>
|
<li>ElasticSearch</li>
|
||||||
<li>Selenium</li>
|
<li>Selenium</li>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>License - Laradock</title>
|
<title>License - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<title>Related Projects - Laradock</title>
|
<title>Related Projects - Laradock</title>
|
||||||
<meta name="generator" content="Hugo 0.18.1" />
|
<meta name="generator" content="Hugo 0.19" />
|
||||||
|
|
||||||
|
|
||||||
<meta name="description" content="Laradock documentations.">
|
<meta name="description" content="Laradock documentations.">
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
APPLICATION=../
|
APPLICATION=../
|
||||||
|
|
||||||
### PHP version (Does not apply for HHVM)
|
### PHP version (Does not apply for HHVM)
|
||||||
# PHP_VERSION=55
|
|
||||||
# PHP_VERSION=56
|
# PHP_VERSION=56
|
||||||
PHP_VERSION=70
|
PHP_VERSION=70
|
||||||
|
# PHP_VERSION=71
|
||||||
|
|
||||||
### PHP interpreter
|
### PHP interpreter
|
||||||
# PHP_INTERPRETER=hhvm
|
# PHP_INTERPRETER=hhvm
|
||||||
@ -26,6 +26,7 @@ WORKSPACE_INSTALL_LARAVEL_ENVOY=false
|
|||||||
WORKSPACE_INSTALL_DEPLOYER=false
|
WORKSPACE_INSTALL_DEPLOYER=false
|
||||||
WORKSPACE_INSTALL_LINUXBREW=false
|
WORKSPACE_INSTALL_LINUXBREW=false
|
||||||
WORKSPACE_INSTALL_MC=false
|
WORKSPACE_INSTALL_MC=false
|
||||||
|
WORKSPACE_INSTALL_SYMFONY=false
|
||||||
WORKSPACE_PUID=1000
|
WORKSPACE_PUID=1000
|
||||||
WORKSPACE_PGID=1000
|
WORKSPACE_PGID=1000
|
||||||
WORKSPACE_NODE_VERSION=stable
|
WORKSPACE_NODE_VERSION=stable
|
||||||
@ -34,7 +35,6 @@ WORKSPACE_TIMEZONE=UTC
|
|||||||
WORKSPACE_SSH_PORT=2222
|
WORKSPACE_SSH_PORT=2222
|
||||||
|
|
||||||
### PHP_FPM Container
|
### PHP_FPM Container
|
||||||
PHP_FPM_DOCKER_FILE=Dockerfile-70
|
|
||||||
PHP_FPM_INSTALL_XDEBUG=false
|
PHP_FPM_INSTALL_XDEBUG=false
|
||||||
PHP_FPM_INSTALL_MONGO=false
|
PHP_FPM_INSTALL_MONGO=false
|
||||||
PHP_FPM_INSTALL_SOAP=false
|
PHP_FPM_INSTALL_SOAP=false
|
||||||
@ -48,6 +48,7 @@ PHP_FPM_INSTALL_AEROSPIKE_EXTENSION=false
|
|||||||
PHP_FPM_INSTALL_MYSQLI=false
|
PHP_FPM_INSTALL_MYSQLI=false
|
||||||
PHP_FPM_INSTALL_TOKENIZER=false
|
PHP_FPM_INSTALL_TOKENIZER=false
|
||||||
PHP_FPM_INSTALL_INTL=false
|
PHP_FPM_INSTALL_INTL=false
|
||||||
|
PHP_FPM_INSTALL_GHOSTSCRIPT=false
|
||||||
|
|
||||||
### NGINX Container
|
### NGINX Container
|
||||||
NGINX_HOST_HTTP_PORT=80
|
NGINX_HOST_HTTP_PORT=80
|
||||||
|
0
logs/apache2/.gitkeep
Normal file
0
logs/apache2/.gitkeep
Normal file
0
logs/nginx/.gitkeep
Normal file
0
logs/nginx/.gitkeep
Normal file
@ -2,26 +2,10 @@ FROM mysql:5.7
|
|||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
ADD startup /etc/mysql/startup
|
|
||||||
|
|
||||||
RUN chown -R mysql:root /var/lib/mysql/
|
RUN chown -R mysql:root /var/lib/mysql/
|
||||||
|
|
||||||
ARG MYSQL_DATABASE=default
|
|
||||||
ARG MYSQL_USER=default
|
|
||||||
ARG MYSQL_PASSWORD=secret
|
|
||||||
ARG MYSQL_ROOT_PASSWORD=root
|
|
||||||
|
|
||||||
ENV MYSQL_DATABASE=$MYSQL_DATABASE
|
|
||||||
ENV MYSQL_USER=$MYSQL_USER
|
|
||||||
ENV MYSQL_PASSWORD=$MYSQL_PASSWORD
|
|
||||||
ENV MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
|
|
||||||
|
|
||||||
RUN sed -i 's/MYSQL_DATABASE/'$MYSQL_DATABASE'/g' /etc/mysql/startup && \
|
|
||||||
sed -i 's/MYSQL_USER/'$MYSQL_USER'/g' /etc/mysql/startup && \
|
|
||||||
sed -i 's/MYSQL_PASSWORD/'$MYSQL_PASSWORD'/g' /etc/mysql/startup
|
|
||||||
|
|
||||||
ADD my.cnf /etc/mysql/conf.d/my.cnf
|
ADD my.cnf /etc/mysql/conf.d/my.cnf
|
||||||
|
|
||||||
CMD ["mysqld", "--init-file=/etc/mysql/startup"]
|
CMD ["mysqld"]
|
||||||
|
|
||||||
EXPOSE 3306
|
EXPOSE 3306
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
DROP USER IF EXISTS 'MYSQL_USER';
|
|
||||||
CREATE USER 'MYSQL_USER'@'%' IDENTIFIED BY 'MYSQL_PASSWORD';
|
|
||||||
CREATE DATABASE IF NOT EXISTS `MYSQL_DATABASE`;
|
|
||||||
GRANT ALL ON `MYSQL_DATABASE`.* TO 'MYSQL_USER'@'%';
|
|
@ -19,8 +19,8 @@ http {
|
|||||||
client_max_body_size 20M;
|
client_max_body_size 20M;
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /dev/stdout;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /dev/stderr;
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_disable "msie6";
|
gzip_disable "msie6";
|
||||||
|
|
||||||
|
@ -65,6 +65,18 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
|||||||
# Copy xdebug configration for remote debugging
|
# Copy xdebug configration for remote debugging
|
||||||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP REDIS EXTENSION FOR PHP 5
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis Extension
|
||||||
|
pecl install -o -f redis \
|
||||||
|
&& rm -rf /tmp/pear \
|
||||||
|
&& docker-php-ext-enable redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# MongoDB:
|
# MongoDB:
|
||||||
#####################################
|
#####################################
|
||||||
@ -83,8 +95,7 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
ARG INSTALL_ZIP_ARCHIVE=false
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
# Install the zip extension
|
# Install the zip extension
|
||||||
pecl install zip && \
|
docker-php-ext-install zip \
|
||||||
docker-php-ext-enable zip \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -108,6 +119,16 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
docker-php-ext-enable memcached \
|
docker-php-ext-enable memcached \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Exif:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_EXIF=false
|
||||||
|
RUN if [ ${INSTALL_EXIF} = true ]; then \
|
||||||
|
# Enable Exif PHP extentions requirements
|
||||||
|
docker-php-ext-install exif \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
@ -137,8 +158,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
|
|
||||||
ARG INSTALL_OPCACHE=false
|
ARG INSTALL_OPCACHE=false
|
||||||
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
||||||
docker-php-ext-install opcache && \
|
docker-php-ext-install opcache \
|
||||||
docker-php-ext-enable opcache \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Copy opcache configration
|
# Copy opcache configration
|
||||||
@ -149,7 +169,10 @@ COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MYSQLI=false
|
ARG INSTALL_MYSQLI=false
|
||||||
|
# MySQL extenstion is available for Php5.6 and lower only
|
||||||
|
COPY ./mysql.ini /usr/local/etc/php/conf.d/mysql.ini
|
||||||
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
|
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
|
||||||
|
docker-php-ext-install mysql && \
|
||||||
docker-php-ext-install mysqli \
|
docker-php-ext-install mysqli \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
@ -162,6 +185,29 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
|
|||||||
docker-php-ext-install tokenizer \
|
docker-php-ext-install tokenizer \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Human Language and Character Encoding Support:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_INTL=false
|
||||||
|
RUN if [ ${INSTALL_INTL} = true ]; then \
|
||||||
|
# Install intl and requirements
|
||||||
|
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
||||||
|
docker-php-ext-configure intl && \
|
||||||
|
docker-php-ext-install intl \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# GHOSTSCRIPT:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_GHOSTSCRIPT=false
|
||||||
|
RUN if [ ${GHOSTSCRIPT} = true ]; then \
|
||||||
|
# Install the ghostscript extension for PDF editing
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y poppler-utils ghostscript \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -34,7 +34,6 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# in the `docker-compose.yml` before the build.
|
# in the `docker-compose.yml` before the build.
|
||||||
# Example:
|
# Example:
|
||||||
# - INSTALL_ZIP_ARCHIVE=true
|
# - INSTALL_ZIP_ARCHIVE=true
|
||||||
# - ...
|
|
||||||
#
|
#
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -60,9 +59,13 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
|||||||
docker-php-ext-enable xdebug \
|
docker-php-ext-enable xdebug \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Copy xdebug configration for remote debugging
|
||||||
|
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP REDIS EXTENSION FOR PHP 7.0
|
# PHP REDIS EXTENSION FOR PHP 7
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_PHPREDIS=false
|
ARG INSTALL_PHPREDIS=false
|
||||||
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
# Install Php Redis Extension
|
# Install Php Redis Extension
|
||||||
@ -71,9 +74,6 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
|||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Copy xdebug configration for remote debugging
|
|
||||||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# MongoDB:
|
# MongoDB:
|
||||||
#####################################
|
#####################################
|
||||||
@ -92,8 +92,7 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
ARG INSTALL_ZIP_ARCHIVE=false
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
# Install the zip extension
|
# Install the zip extension
|
||||||
pecl install zip && \
|
docker-php-ext-install zip \
|
||||||
docker-php-ext-enable zip \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -135,11 +134,9 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
ARG INSTALL_EXIF=false
|
ARG INSTALL_EXIF=false
|
||||||
RUN if [ ${INSTALL_EXIF} = true ]; then \
|
RUN if [ ${INSTALL_EXIF} = true ]; then \
|
||||||
# Enable Exif PHP extentions requirements
|
# Enable Exif PHP extentions requirements
|
||||||
docker-php-ext-install exif && \
|
docker-php-ext-install exif \
|
||||||
docker-php-ext-enable exif \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
@ -166,10 +163,10 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
# Opcache:
|
# Opcache:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_OPCACHE=false
|
ARG INSTALL_OPCACHE=false
|
||||||
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
||||||
docker-php-ext-install opcache && \
|
docker-php-ext-install opcache \
|
||||||
docker-php-ext-enable opcache \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Copy opcache configration
|
# Copy opcache configration
|
||||||
@ -178,6 +175,7 @@ COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
|||||||
#####################################
|
#####################################
|
||||||
# Mysqli Modifications:
|
# Mysqli Modifications:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MYSQLI=false
|
ARG INSTALL_MYSQLI=false
|
||||||
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
|
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
|
||||||
docker-php-ext-install mysqli \
|
docker-php-ext-install mysqli \
|
||||||
@ -195,6 +193,7 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
# SQL SERVER:
|
# SQL SERVER:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG MSSQL=false
|
ARG MSSQL=false
|
||||||
RUN if [ ${MSSQL} = true ]; then \
|
RUN if [ ${MSSQL} = true ]; then \
|
||||||
|
|
||||||
@ -245,7 +244,6 @@ RUN if [ ${MSSQL} = true ]; then \
|
|||||||
&& ls -l /opt/microsoft/msodbcsql/ \
|
&& ls -l /opt/microsoft/msodbcsql/ \
|
||||||
&& odbcinst -q -d -n "ODBC Driver 13 for SQL Server" && \
|
&& odbcinst -q -d -n "ODBC Driver 13 for SQL Server" && \
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Install sqlsrv y pdo_sqlsrv
|
# Install sqlsrv y pdo_sqlsrv
|
||||||
# extensions:
|
# extensions:
|
||||||
@ -263,8 +261,6 @@ RUN if [ ${MSSQL} = true ]; then \
|
|||||||
&& locale-gen \
|
&& locale-gen \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Human Language and Character Encoding Support:
|
# Human Language and Character Encoding Support:
|
||||||
#####################################
|
#####################################
|
||||||
@ -281,7 +277,7 @@ RUN if [ ${INSTALL_INTL} = true ]; then \
|
|||||||
# GHOSTSCRIPT:
|
# GHOSTSCRIPT:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG GHOSTSCRIPT=false
|
ARG INSTALL_GHOSTSCRIPT=false
|
||||||
RUN if [ ${GHOSTSCRIPT} = true ]; then \
|
RUN if [ ${GHOSTSCRIPT} = true ]; then \
|
||||||
# Install the ghostscript extension
|
# Install the ghostscript extension
|
||||||
# for PDF editing
|
# for PDF editing
|
||||||
@ -291,7 +287,6 @@ RUN if [ ${GHOSTSCRIPT} = true ]; then \
|
|||||||
ghostscript \
|
ghostscript \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -34,9 +34,20 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# in the `docker-compose.yml` before the build.
|
# in the `docker-compose.yml` before the build.
|
||||||
# Example:
|
# Example:
|
||||||
# - INSTALL_ZIP_ARCHIVE=true
|
# - INSTALL_ZIP_ARCHIVE=true
|
||||||
# - ...
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# SOAP:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_SOAP=false
|
||||||
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
|
# Install the soap extension
|
||||||
|
apt-get -y update && \
|
||||||
|
apt-get -y install libxml2-dev php-soap && \
|
||||||
|
docker-php-ext-install soap \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
#####################################
|
#####################################
|
||||||
@ -51,6 +62,18 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
|||||||
# Copy xdebug configration for remote debugging
|
# Copy xdebug configration for remote debugging
|
||||||
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP REDIS EXTENSION FOR PHP 7
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis Extension
|
||||||
|
pecl install -o -f redis \
|
||||||
|
&& rm -rf /tmp/pear \
|
||||||
|
&& docker-php-ext-enable redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# MongoDB:
|
# MongoDB:
|
||||||
#####################################
|
#####################################
|
||||||
@ -69,8 +92,17 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
ARG INSTALL_ZIP_ARCHIVE=false
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
# Install the zip extension
|
# Install the zip extension
|
||||||
pecl install zip && \
|
docker-php-ext-install zip \
|
||||||
docker-php-ext-enable zip \
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# bcmath:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_BCMATH=false
|
||||||
|
RUN if [ ${INSTALL_BCMATH} = true ]; then \
|
||||||
|
# Install the bcmath extension
|
||||||
|
docker-php-ext-install bcmath \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -95,6 +127,16 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
&& docker-php-ext-enable memcached \
|
&& docker-php-ext-enable memcached \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Exif:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_EXIF=false
|
||||||
|
RUN if [ ${INSTALL_EXIF} = true ]; then \
|
||||||
|
# Enable Exif PHP extentions requirements
|
||||||
|
docker-php-ext-install exif \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP Aerospike:
|
# PHP Aerospike:
|
||||||
#####################################
|
#####################################
|
||||||
@ -115,15 +157,16 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
&& make install \
|
&& make install \
|
||||||
) \
|
) \
|
||||||
&& rm /tmp/aerospike-client-php.tar.gz \
|
&& rm /tmp/aerospike-client-php.tar.gz \
|
||||||
|
&& docker-php-ext-enable aerospike \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Opcache:
|
# Opcache:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_OPCACHE=false
|
ARG INSTALL_OPCACHE=false
|
||||||
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
|
||||||
docker-php-ext-install opcache && \
|
docker-php-ext-install opcache \
|
||||||
docker-php-ext-enable opcache \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Copy opcache configration
|
# Copy opcache configration
|
||||||
@ -132,6 +175,7 @@ COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
|||||||
#####################################
|
#####################################
|
||||||
# Mysqli Modifications:
|
# Mysqli Modifications:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MYSQLI=false
|
ARG INSTALL_MYSQLI=false
|
||||||
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
|
RUN if [ ${INSTALL_MYSQLI} = true ]; then \
|
||||||
docker-php-ext-install mysqli \
|
docker-php-ext-install mysqli \
|
||||||
@ -150,8 +194,8 @@ RUN if [ ${INSTALL_TOKENIZER} = true ]; then \
|
|||||||
# Human Language and Character Encoding Support:
|
# Human Language and Character Encoding Support:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INTL=false
|
ARG INSTALL_INTL=false
|
||||||
RUN if [ ${INTL} = true ]; then \
|
RUN if [ ${INSTALL_INTL} = true ]; then \
|
||||||
# Install intl and requirements
|
# Install intl and requirements
|
||||||
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
apt-get install -y zlib1g-dev libicu-dev g++ && \
|
||||||
docker-php-ext-configure intl && \
|
docker-php-ext-configure intl && \
|
||||||
@ -162,7 +206,7 @@ RUN if [ ${INTL} = true ]; then \
|
|||||||
# GHOSTSCRIPT:
|
# GHOSTSCRIPT:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG GHOSTSCRIPT=false
|
ARG INSTALL_GHOSTSCRIPT=false
|
||||||
RUN if [ ${GHOSTSCRIPT} = true ]; then \
|
RUN if [ ${GHOSTSCRIPT} = true ]; then \
|
||||||
# Install the ghostscript extension
|
# Install the ghostscript extension
|
||||||
# for PDF editing
|
# for PDF editing
|
||||||
|
58
php-fpm/mysql.ini
Normal file
58
php-fpm/mysql.ini
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
[MySQL]
|
||||||
|
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
|
||||||
|
; http://php.net/mysql.allow_local_infile
|
||||||
|
mysql.allow_local_infile = On
|
||||||
|
|
||||||
|
; Allow or prevent persistent links.
|
||||||
|
; http://php.net/mysql.allow-persistent
|
||||||
|
mysql.allow_persistent = On
|
||||||
|
|
||||||
|
; If mysqlnd is used: Number of cache slots for the internal result set cache
|
||||||
|
; http://php.net/mysql.cache_size
|
||||||
|
mysql.cache_size = 2000
|
||||||
|
|
||||||
|
; Maximum number of persistent links. -1 means no limit.
|
||||||
|
; http://php.net/mysql.max-persistent
|
||||||
|
mysql.max_persistent = -1
|
||||||
|
|
||||||
|
; Maximum number of links (persistent + non-persistent). -1 means no limit.
|
||||||
|
; http://php.net/mysql.max-links
|
||||||
|
mysql.max_links = -1
|
||||||
|
|
||||||
|
; Default port number for mysql_connect(). If unset, mysql_connect() will use
|
||||||
|
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
|
||||||
|
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
|
||||||
|
; at MYSQL_PORT.
|
||||||
|
; http://php.net/mysql.default-port
|
||||||
|
mysql.default_port =
|
||||||
|
|
||||||
|
; Default socket name for local MySQL connects. If empty, uses the built-in
|
||||||
|
; MySQL defaults.
|
||||||
|
; http://php.net/mysql.default-socket
|
||||||
|
mysql.default_socket =
|
||||||
|
|
||||||
|
; Default host for mysql_connect() (doesn't apply in safe mode).
|
||||||
|
; http://php.net/mysql.default-host
|
||||||
|
mysql.default_host =
|
||||||
|
|
||||||
|
; Default user for mysql_connect() (doesn't apply in safe mode).
|
||||||
|
; http://php.net/mysql.default-user
|
||||||
|
mysql.default_user =
|
||||||
|
|
||||||
|
; Default password for mysql_connect() (doesn't apply in safe mode).
|
||||||
|
; Note that this is generally a *bad* idea to store passwords in this file.
|
||||||
|
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
|
||||||
|
; and reveal this password! And of course, any users with read access to this
|
||||||
|
; file will be able to reveal the password as well.
|
||||||
|
; http://php.net/mysql.default-password
|
||||||
|
mysql.default_password =
|
||||||
|
|
||||||
|
; Maximum time (in seconds) for connect timeout. -1 means no limit
|
||||||
|
; http://php.net/mysql.connect-timeout
|
||||||
|
mysql.connect_timeout = 60
|
||||||
|
|
||||||
|
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
|
||||||
|
; SQL-Errors will be displayed.
|
||||||
|
; http://php.net/mysql.trace-mode
|
||||||
|
mysql.trace_mode = Off
|
||||||
|
|
@ -19,7 +19,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
# Mandatory Software's Installation
|
# Mandatory Software's Installation
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Mandatory Software's such as ("php7.0-cli", "git", "vim", ....) are
|
# Mandatory Software's such as ("php5.6-cli", "git", "vim", ....) are
|
||||||
# installed on the base image 'laradock/workspace' image. If you want
|
# installed on the base image 'laradock/workspace' image. If you want
|
||||||
# to add more Software's or remove existing one, you need to edit the
|
# to add more Software's or remove existing one, you need to edit the
|
||||||
# base image (https://github.com/LaraDock/workspace).
|
# base image (https://github.com/LaraDock/workspace).
|
||||||
@ -60,8 +60,8 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \
|
|||||||
# Install the PHP SOAP extension
|
# Install the PHP SOAP extension
|
||||||
apt-get -y update && \
|
apt-get -y update && \
|
||||||
add-apt-repository -y ppa:ondrej/php && \
|
add-apt-repository -y ppa:ondrej/php && \
|
||||||
apt-get -y install libxml2-dev php7.0-soap && \
|
apt-get -y install libxml2-dev php5.6-soap && \
|
||||||
echo "extension=soap.so" >> /etc/php/7.0/cli/conf.d/40-soap.ini \
|
echo "extension=soap.so" >> /etc/php/5.6/cli/conf.d/40-soap.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -128,12 +128,12 @@ ARG INSTALL_XDEBUG=false
|
|||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Load the xdebug extension only with phpunit commands
|
# Load the xdebug extension only with phpunit commands
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --force-yes php7.0-xdebug && \
|
apt-get install -y --force-yes php5.6-xdebug && \
|
||||||
sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini && \
|
sed -i 's/^/;/g' /etc/php/5.6/cli/conf.d/20-xdebug.ini && \
|
||||||
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
|
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
# ADD for REMOTE debugging
|
# ADD for REMOTE debugging
|
||||||
COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini
|
COPY ./xdebug.ini /etc/php/5.6/cli/conf.d/xdebug.ini
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# ssh:
|
# ssh:
|
||||||
@ -164,7 +164,7 @@ ENV INSTALL_MONGO ${INSTALL_MONGO}
|
|||||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
# Install the mongodb extension
|
# Install the mongodb extension
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
echo "extension=mongodb.so" >> /etc/php/7.0/cli/conf.d/30-mongodb.ini \
|
echo "extension=mongodb.so" >> /etc/php/5.6/cli/conf.d/30-mongodb.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -260,7 +260,7 @@ ARG INSTALL_AEROSPIKE_EXTENSION=true
|
|||||||
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
|
|
||||||
# Copy aerospike configration for remote debugging
|
# Copy aerospike configration for remote debugging
|
||||||
COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
|
COPY ./aerospike.ini /etc/php/5.6/cli/conf.d/aerospike.ini
|
||||||
|
|
||||||
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
@ -277,7 +277,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
|||||||
;fi
|
;fi
|
||||||
|
|
||||||
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
|
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
|
||||||
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
|
rm /etc/php/5.6/cli/conf.d/aerospike.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -294,7 +294,7 @@ RUN if [ ${INSTALL_V8JS_EXTENSION} = true ]; then \
|
|||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y php-dev php-pear libv8-5.4 \
|
&& apt-get install -y php-dev php-pear libv8-5.4 \
|
||||||
&& pecl install v8js \
|
&& pecl install v8js \
|
||||||
&& echo "extension=v8js.so" >> /etc/php/7.0/cli/php.ini \
|
&& echo "extension=v8js.so" >> /etc/php/5.6/cli/php.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
426
workspace/Dockerfile-70
Normal file
426
workspace/Dockerfile-70
Normal file
@ -0,0 +1,426 @@
|
|||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Image Setup
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# To edit the 'workspace' base Image, visit its repository on Github
|
||||||
|
# https://github.com/LaraDock/workspace
|
||||||
|
#
|
||||||
|
# To change its version, see the available Tags on the Docker Hub:
|
||||||
|
# https://hub.docker.com/r/laradock/workspace/tags/
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM laradock/workspace:1.3
|
||||||
|
|
||||||
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Mandatory Software's Installation
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Mandatory Software's such as ("php7.0-cli", "git", "vim", ....) are
|
||||||
|
# installed on the base image 'laradock/workspace' image. If you want
|
||||||
|
# to add more Software's or remove existing one, you need to edit the
|
||||||
|
# base image (https://github.com/LaraDock/workspace).
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Optional Software's Installation
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Optional Software's will only be installed if you set them to `true`
|
||||||
|
# in the `docker-compose.yml` before the build.
|
||||||
|
# Example:
|
||||||
|
# - INSTALL_NODE=false
|
||||||
|
# - ...
|
||||||
|
#
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Non-Root User:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# Add a non-root user to prevent files being created with root permissions on host machine.
|
||||||
|
ARG PUID=1000
|
||||||
|
ARG PGID=1000
|
||||||
|
RUN groupadd -g $PGID laradock && \
|
||||||
|
useradd -u $PUID -g laradock -m laradock
|
||||||
|
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# SOAP:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_SOAP=false
|
||||||
|
ENV INSTALL_SOAP ${INSTALL_SOAP}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
|
# Install the PHP SOAP extension
|
||||||
|
apt-get -y update && \
|
||||||
|
add-apt-repository -y ppa:ondrej/php && \
|
||||||
|
apt-get -y install libxml2-dev php7.0-soap \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Set Timezone
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG TZ=UTC
|
||||||
|
ENV TZ ${TZ}
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Composer:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# Add the composer.json
|
||||||
|
COPY ./composer.json /home/laradock/.composer/composer.json
|
||||||
|
|
||||||
|
# Make sure that ~/.composer belongs to laradock
|
||||||
|
RUN chown -R laradock:laradock /home/laradock/.composer
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
# Check if global install need to be ran
|
||||||
|
ARG COMPOSER_GLOBAL_INSTALL=false
|
||||||
|
ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
|
||||||
|
RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
|
||||||
|
# run the install
|
||||||
|
composer global install \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Export composer vendor path
|
||||||
|
RUN echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Crontab
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
COPY ./crontab /etc/cron.d
|
||||||
|
RUN chmod -R 644 /etc/cron.d
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# User Aliases
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||||
|
RUN echo "" >> ~/.bashrc && \
|
||||||
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
|
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
||||||
|
echo "" >> ~/.bashrc
|
||||||
|
|
||||||
|
USER root
|
||||||
|
RUN echo "" >> ~/.bashrc && \
|
||||||
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
|
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
||||||
|
echo "" >> ~/.bashrc
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# xDebug:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_XDEBUG=false
|
||||||
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
|
# Load the xdebug extension only with phpunit commands
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y --force-yes php7.0-xdebug && \
|
||||||
|
sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini && \
|
||||||
|
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
# ADD for REMOTE debugging
|
||||||
|
COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ssh:
|
||||||
|
#####################################
|
||||||
|
ARG INSTALL_WORKSPACE_SSH=false
|
||||||
|
ENV INSTALL_WORKSPACE_SSH ${INSTALL_WORKSPACE_SSH}
|
||||||
|
|
||||||
|
ADD insecure_id_rsa /tmp/id_rsa
|
||||||
|
ADD insecure_id_rsa.pub /tmp/id_rsa.pub
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_WORKSPACE_SSH} = true ]; then \
|
||||||
|
rm -f /etc/service/sshd/down && \
|
||||||
|
cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys \
|
||||||
|
&& cat /tmp/id_rsa.pub >> /root/.ssh/id_rsa.pub \
|
||||||
|
&& cat /tmp/id_rsa >> /root/.ssh/id_rsa \
|
||||||
|
&& rm -f /tmp/id_rsa* \
|
||||||
|
&& chmod 644 /root/.ssh/authorized_keys /root/.ssh/id_rsa.pub \
|
||||||
|
&& chmod 400 /root/.ssh/id_rsa \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# MongoDB:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# Check if Mongo needs to be installed
|
||||||
|
ARG INSTALL_MONGO=false
|
||||||
|
ENV INSTALL_MONGO ${INSTALL_MONGO}
|
||||||
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
|
# Install the mongodb extension
|
||||||
|
pecl install mongodb && \
|
||||||
|
echo "extension=mongodb.so" >> /etc/php/7.0/cli/conf.d/30-mongodb.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Drush:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ENV DRUSH_VERSION 8.1.2
|
||||||
|
ARG INSTALL_DRUSH=false
|
||||||
|
ENV INSTALL_DRUSH ${INSTALL_DRUSH}
|
||||||
|
RUN if [ ${INSTALL_DRUSH} = true ]; then \
|
||||||
|
# Install Drush 8 with the phar file.
|
||||||
|
curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar | bash && \
|
||||||
|
chmod +x /usr/local/bin/drush && \
|
||||||
|
drush core-status \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Node / NVM:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# Check if NVM needs to be installed
|
||||||
|
ARG NODE_VERSION=stable
|
||||||
|
ENV NODE_VERSION ${NODE_VERSION}
|
||||||
|
ARG INSTALL_NODE=false
|
||||||
|
ENV INSTALL_NODE ${INSTALL_NODE}
|
||||||
|
ENV NVM_DIR /home/laradock/.nvm
|
||||||
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
|
# Install nvm (A Node Version Manager)
|
||||||
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash && \
|
||||||
|
. $NVM_DIR/nvm.sh && \
|
||||||
|
nvm install ${NODE_VERSION} && \
|
||||||
|
nvm use ${NODE_VERSION} && \
|
||||||
|
nvm alias ${NODE_VERSION} && \
|
||||||
|
npm install -g gulp bower vue-cli \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Wouldn't execute when added to the RUN statement in the above block
|
||||||
|
# Source NVM when loading bash since ~/.profile isn't loaded on non-login shell
|
||||||
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc && \
|
||||||
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Add NVM binaries to root's .bashrc
|
||||||
|
USER root
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export NVM_DIR="/home/laradock/.nvm"' >> ~/.bashrc && \
|
||||||
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# YARN:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
ARG INSTALL_YARN=false
|
||||||
|
ENV INSTALL_YARN ${INSTALL_YARN}
|
||||||
|
ARG YARN_VERSION=latest
|
||||||
|
ENV YARN_VERSION ${YARN_VERSION}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_YARN} = true ]; then \
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \
|
||||||
|
if [ ${YARN_VERSION} = "latest" ]; then \
|
||||||
|
curl -o- -L https://yarnpkg.com/install.sh | bash; \
|
||||||
|
else \
|
||||||
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION}; \
|
||||||
|
fi && \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Add YARN binaries to root's .bashrc
|
||||||
|
USER root
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_YARN} = true ]; then \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export YARN_DIR="/home/laradock/.yarn"' >> ~/.bashrc && \
|
||||||
|
echo 'export PATH="$YARN_DIR/bin:$PATH"' >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP Aerospike:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_AEROSPIKE_EXTENSION=true
|
||||||
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
|
|
||||||
|
# Copy aerospike configration for remote debugging
|
||||||
|
COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
|
||||||
|
# Install the php aerospike extension
|
||||||
|
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
|
||||||
|
&& mkdir -p aerospike-client-php \
|
||||||
|
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
|
&& ( \
|
||||||
|
cd aerospike-client-php/src/aerospike \
|
||||||
|
&& phpize \
|
||||||
|
&& ./build.sh \
|
||||||
|
&& make install \
|
||||||
|
) \
|
||||||
|
&& rm /tmp/aerospike-client-php.tar.gz \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
|
||||||
|
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP V8JS:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_V8JS_EXTENSION=false
|
||||||
|
ENV INSTALL_V8JS_EXTENSION ${INSTALL_V8JS_EXTENSION}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_V8JS_EXTENSION} = true ]; then \
|
||||||
|
# Install the php V8JS extension
|
||||||
|
add-apt-repository -y ppa:pinepain/libv8-5.4 \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y php-dev php-pear libv8-5.4 \
|
||||||
|
&& pecl install v8js \
|
||||||
|
&& echo "extension=v8js.so" >> /etc/php/7.0/cli/php.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Non-root user : PHPUnit path
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# add ./vendor/bin to non-root user's bashrc (needed for phpunit)
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
RUN echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Laravel Artisan Alias
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
RUN echo "" >> ~/.bashrc && \
|
||||||
|
echo 'alias art="php artisan"' >> ~/.bashrc
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Laravel Envoy:
|
||||||
|
#####################################
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
ARG INSTALL_LARAVEL_ENVOY=true
|
||||||
|
ENV INSTALL_LARAVEL_ENVOY ${INSTALL_LARAVEL_ENVOY}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_LARAVEL_ENVOY} = true ]; then \
|
||||||
|
# Install the Laravel Envoy
|
||||||
|
composer global require "laravel/envoy=~1.0" \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Deployer:
|
||||||
|
#####################################
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
ARG INSTALL_DEPLOYER=false
|
||||||
|
ENV INSTALL_DEPLOYER ${INSTALL_DEPLOYER}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_DEPLOYER} = true ]; then \
|
||||||
|
# Install the Deployer
|
||||||
|
composer global require "deployer/deployer" \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Linuxbrew:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_LINUXBREW=true
|
||||||
|
ENV INSTALL_LINUXBREW ${INSTALL_LINUXBREW}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
|
||||||
|
|
||||||
|
# Preparation
|
||||||
|
apt-get update && \
|
||||||
|
apt-get upgrade -y && \
|
||||||
|
apt-get install -y build-essential make cmake scons curl git \
|
||||||
|
ruby autoconf automake autoconf-archive \
|
||||||
|
gettext libtool flex bison \
|
||||||
|
libbz2-dev libcurl4-openssl-dev \
|
||||||
|
libexpat-dev libncurses-dev && \
|
||||||
|
|
||||||
|
# Install the Linuxbrew
|
||||||
|
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
|
||||||
|
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo 'export PKG_CONFIG_PATH"=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \
|
||||||
|
|
||||||
|
# Setup linuxbrew
|
||||||
|
echo 'export LINUXBREWHOME="$HOME/.linuxbrew"' >> ~/.bashrc && \
|
||||||
|
echo 'export PATH="$LINUXBREWHOME/bin:$PATH"' >> ~/.bashrc && \
|
||||||
|
echo 'export MANPATH="$LINUXBREWHOME/man:$MANPATH"' >> ~/.bashrc && \
|
||||||
|
echo 'export PKG_CONFIG_PATH="$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \
|
||||||
|
echo 'export LD_LIBRARY_PATH="$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH"' >> ~/.bashrc \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Minio:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_MC=false
|
||||||
|
ENV INSTALL_MC ${INSTALL_MC}
|
||||||
|
|
||||||
|
COPY mc/config.json /root/.mc/config.json
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_MC} = true ]; then\
|
||||||
|
curl -fsSL -o /usr/local/bin/mc https://dl.minio.io/client/mc/release/linux-amd64/mc && \
|
||||||
|
chmod +x /usr/local/bin/mc \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Symfony:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_SYMFONY=false
|
||||||
|
ENV INSTALL_SYMFONY ${INSTALL_SYMFONY}
|
||||||
|
RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
||||||
|
|
||||||
|
mkdir -p /usr/local/bin \
|
||||||
|
&& curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \
|
||||||
|
&& chmod a+x /usr/local/bin/symfony \
|
||||||
|
|
||||||
|
# Symfony 3 alias
|
||||||
|
&& echo 'alias dev="php bin/console -e=dev"' >> ~/.bashrc \
|
||||||
|
&& echo 'alias prod="php bin/console -e=prod"' >> ~/.bashrc \
|
||||||
|
|
||||||
|
# Symfony 2 alias
|
||||||
|
# && echo 'alias dev="php app/console -e=dev"' >> ~/.bashrc \
|
||||||
|
# && echo 'alias prod="php app/console -e=prod"' >> ~/.bashrc \
|
||||||
|
|
||||||
|
;fi
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Final Touch
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
USER root
|
||||||
|
RUN apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
# Set default work directory
|
||||||
|
WORKDIR /var/www
|
@ -10,7 +10,8 @@
|
|||||||
# https://hub.docker.com/r/laradock/workspace/tags/
|
# https://hub.docker.com/r/laradock/workspace/tags/
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM laradock/workspace:1.3 # placeholder. Need change after new image would be built.
|
# placeholder. Need change after new image would be built.
|
||||||
|
FROM laradock/workspace:1.3
|
||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user