Compare commits
59 Commits
Author | SHA1 | Date | |
---|---|---|---|
01c358b6bc | |||
a0685705c0 | |||
98b2b2e47b | |||
eeee14338f | |||
a2edf57e3b | |||
881cbfb8c2 | |||
6cff904eba | |||
04770bc4ec | |||
1281490c39 | |||
3f7988060e | |||
615cb72eab | |||
e036e69da2 | |||
8989c73711 | |||
61144ab2d9 | |||
221edf4bb2 | |||
5a073ae841 | |||
8c1e71eca5 | |||
c0e823b8d2 | |||
8cb4c8d62e | |||
f765afd4c2 | |||
6ea49a0683 | |||
998aa1365e | |||
f2420ec52c | |||
fe254e86e3 | |||
53b7f75500 | |||
4150f0b140 | |||
d340b6e60f | |||
e7357eab83 | |||
110aa91c59 | |||
e5aef41dd2 | |||
ae048e6c66 | |||
a5f3a92eb4 | |||
655b9a1526 | |||
7ac37ecd35 | |||
792789e479 | |||
801ccd47d2 | |||
5c5f94600a | |||
b2e372054f | |||
0a23d53ee5 | |||
f6552aca97 | |||
e9806d9bca | |||
e56801846b | |||
f9e6acd4e1 | |||
b61ff4f484 | |||
8485add87a | |||
d3fb967f0f | |||
a36620c3bd | |||
cddc934e1e | |||
53b3ad0f7e | |||
fdcf9117ac | |||
f800a3221a | |||
bf691337f1 | |||
d616545268 | |||
57ecd6e515 | |||
5b5ba53112 | |||
bd87a26db1 | |||
c0283da6ee | |||
e372d624a6 | |||
db6c6e7e0f |
@ -232,7 +232,7 @@ By default **PHP-FPM 7.0** is running.
|
|||||||
php-fpm:
|
php-fpm:
|
||||||
build:
|
build:
|
||||||
context: ./php-fpm
|
context: ./php-fpm
|
||||||
dockerfile: Dockerfile-70
|
dockerfile: Dockerfile-56
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ For information on how to configure xDebug with your IDE and work it out, check
|
|||||||
<a name="Setup remote debugging for PhpStorm on Linux"></a>
|
<a name="Setup remote debugging for PhpStorm on Linux"></a>
|
||||||
## Setup remote debugging for PhpStorm on Linux
|
## Setup remote debugging for PhpStorm on Linux
|
||||||
|
|
||||||
- Make sure you have followed the steps above in the [Install Xdebug section](http://laradock.io/documentation/#install-xdebug).
|
- Make sure you have followed the steps above in the [Install Xdebug section](http://laradock.io/documentation/#install-xdebug).
|
||||||
|
|
||||||
- Make sure Xdebug accepts connections and listens on port 9000. (Should be default configuration).
|
- Make sure Xdebug accepts connections and listens on port 9000. (Should be default configuration).
|
||||||
|
|
||||||
@ -922,6 +922,26 @@ docker-compose up -d minio
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Use-AWS"></a>
|
||||||
|
## Use AWS
|
||||||
|
|
||||||
|
1 - Configure AWS:
|
||||||
|
- make sure to add your SSH keys in aws/ssh_keys folder
|
||||||
|
|
||||||
|
2 - Run the Aws Container (`aws`) with the `docker-compose up` command. Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d aws
|
||||||
|
```
|
||||||
|
|
||||||
|
3 - Access the aws container with `docker-compose exec aws bash`
|
||||||
|
|
||||||
|
4 - To start using eb cli inside the container, initiaze your project first by doing 'eb init'. Read the [aws eb cli](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html) docs for more details.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="CodeIgniter"></a>
|
<a name="CodeIgniter"></a>
|
||||||
|
|
||||||
@ -946,7 +966,7 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple
|
|||||||
<a name="Install-Symfony"></a>
|
<a name="Install-Symfony"></a>
|
||||||
## Install Symfony
|
## Install Symfony
|
||||||
|
|
||||||
1 - Open the `.env` file and set `WORKSPACE_INSTALL_SYMFONY` to `true`.
|
1 - Open the `.env` file and set `WORKSPACE_INSTALL_SYMFONY` to `true`.
|
||||||
|
|
||||||
2 - Run `docker-compose build workspace`, after the step above.
|
2 - Run `docker-compose build workspace`, after the step above.
|
||||||
|
|
||||||
@ -1449,7 +1469,7 @@ You can use the d4m-nfs solution in 2 ways, one is using the Laradock built it i
|
|||||||
|
|
||||||
#### B.1: using the built in d4m-nfs integration
|
#### B.1: using the built in d4m-nfs integration
|
||||||
|
|
||||||
In simple terms, docker-sync creates a docker container with a copy of all the application files that can be accessed very quickly from the other containers.
|
In simple terms, docker-sync creates a docker container with a copy of all the application files that can be accessed very quickly from the other containers.
|
||||||
On the other hand, docker-sync runs a process on the host machine that continuously tracks and updates files changes from the host to this intermediate container.
|
On the other hand, docker-sync runs a process on the host machine that continuously tracks and updates files changes from the host to this intermediate container.
|
||||||
|
|
||||||
Out of the box, it comes pre-configured for OS X, but using it on Windows is very easy to set-up by modifying the `DOCKER_SYNC_STRATEGY` on the `.env`
|
Out of the box, it comes pre-configured for OS X, but using it on Windows is very easy to set-up by modifying the `DOCKER_SYNC_STRATEGY` on the `.env`
|
||||||
@ -1473,7 +1493,7 @@ DOCKER_SYNC_STRATEGY=native_osx
|
|||||||
```bash
|
```bash
|
||||||
./sync.sh install
|
./sync.sh install
|
||||||
```
|
```
|
||||||
3) Start docker-sync and the Laradock environment.
|
3) Start docker-sync and the Laradock environment.
|
||||||
Specify the services you want to run, as you would normally do with `docker-compose up`
|
Specify the services you want to run, as you would normally do with `docker-compose up`
|
||||||
```bash
|
```bash
|
||||||
./sync.sh up nginx mysql
|
./sync.sh up nginx mysql
|
||||||
@ -1486,7 +1506,7 @@ Please note that the first time docker-sync runs, it will copy all the files to
|
|||||||
|
|
||||||
##### Setting up Aliases (optional)
|
##### Setting up Aliases (optional)
|
||||||
|
|
||||||
You may create bash profile aliases to avoid having to remember and type these commands for everyday development.
|
You may create bash profile aliases to avoid having to remember and type these commands for everyday development.
|
||||||
Add the following lines to your `~/.bash_profile`:
|
Add the following lines to your `~/.bash_profile`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -1495,11 +1515,11 @@ alias devbash="cd /PATH_TO_LARADOCK/laradock; ./sync.sh bash"
|
|||||||
alias devdown="cd /PATH_TO_LARADOCK/laradock; ./sync.sh down"
|
alias devdown="cd /PATH_TO_LARADOCK/laradock; ./sync.sh down"
|
||||||
```
|
```
|
||||||
|
|
||||||
Now from any location on your machine, you can simply run `devup`, `devbash` and `devdown`.
|
Now from any location on your machine, you can simply run `devup`, `devbash` and `devdown`.
|
||||||
|
|
||||||
|
|
||||||
##### Additional Commands
|
##### Additional Commands
|
||||||
|
|
||||||
Opening bash on the workspace container (to run artisan for example):
|
Opening bash on the workspace container (to run artisan for example):
|
||||||
```bash
|
```bash
|
||||||
./sync.sh bash
|
./sync.sh bash
|
||||||
@ -1516,7 +1536,7 @@ Removing and cleaning up the files and the docker-sync container. Use only if yo
|
|||||||
|
|
||||||
##### Additional Notes
|
##### Additional Notes
|
||||||
|
|
||||||
- You may run laradock with or without docker-sync at any time using with the same `.env` and `docker-compose.yml`, because the configuration is overridden automatically when docker-sync is used.
|
- You may run laradock with or without docker-sync at any time using with the same `.env` and `docker-compose.yml`, because the configuration is overridden automatically when docker-sync is used.
|
||||||
- You may inspect the `sync.sh` script to learn each of the commands and even add custom ones.
|
- You may inspect the `sync.sh` script to learn each of the commands and even add custom ones.
|
||||||
- If a container cannot access the files on docker-sync, you may need to set a user on the Dockerfile of that container with an id of 1000 (this is the UID that nginx and php-fpm have configured on laradock). Alternatively, you may change the permissions to 777, but this is **not** recommended.
|
- If a container cannot access the files on docker-sync, you may need to set a user on the Dockerfile of that container with an id of 1000 (this is the UID that nginx and php-fpm have configured on laradock). Alternatively, you may change the permissions to 777, but this is **not** recommended.
|
||||||
|
|
||||||
@ -1660,3 +1680,7 @@ This error sometimes happens because your Laravel application isn't running on t
|
|||||||
2. Change the `DB_HOST` variable on env with the IP that you received from previous step.
|
2. Change the `DB_HOST` variable on env with the IP that you received from previous step.
|
||||||
* Option B
|
* Option B
|
||||||
1. Change the `DB_HOST` value to the same name as the MySQL docker container. The Laradock docker-compose file currently has this as `mysql`
|
1. Change the `DB_HOST` value to the same name as the MySQL docker container. The Laradock docker-compose file currently has this as `mysql`
|
||||||
|
|
||||||
|
## I get stuck when building nginx on `fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz`
|
||||||
|
|
||||||
|
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-293296687), removing the line `RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories` from `nginx/Dockerfile` solves the problem.
|
||||||
|
@ -565,6 +565,187 @@ Assuming that you are in laradock folder, type:
|
|||||||
<a name="Laravel-Dusk"></a>
|
<a name="Laravel-Dusk"></a>
|
||||||
# Running Laravel Dusk Tests
|
# Running Laravel Dusk Tests
|
||||||
|
|
||||||
|
- [Option 1: Without Selenium](#option1-dusk)
|
||||||
|
- [Option 2: With Selenium](#option2-dusk)
|
||||||
|
|
||||||
|
<a name="option1-dusk"></a>
|
||||||
|
## Option 1: Without Selenium
|
||||||
|
|
||||||
|
- [Intro](#option1-dusk-intro)
|
||||||
|
- [Workspace Setup](#option1-workspace-setup)
|
||||||
|
- [Application Setup](#option1-application-setup)
|
||||||
|
- [Choose Chrome Driver Version (Optional)](#option1-choose-chrome-driver-version)
|
||||||
|
- [Run Dusk Tests](#option1-run-dusk-tests)
|
||||||
|
|
||||||
|
<a name="option1-dusk-intro"></a>
|
||||||
|
### Intro
|
||||||
|
|
||||||
|
This is a guide to run Dusk tests in your `workspace` container with headless
|
||||||
|
google-chrome and chromedriver. It has been tested with Laravel 5.4 and 5.5.
|
||||||
|
|
||||||
|
<a name="option1-workspace-setup"></a>
|
||||||
|
### Workspace Setup
|
||||||
|
|
||||||
|
Update your .env with following entries:
|
||||||
|
|
||||||
|
```
|
||||||
|
...
|
||||||
|
# Install Laravel installer bin to setup demo app
|
||||||
|
WORKSPACE_INSTALL_LARAVEL_INSTALLER=true
|
||||||
|
...
|
||||||
|
# Install all the necessary dependencies for running Dusk tests
|
||||||
|
WORKSPACE_INSTALL_DUSK_DEPS=true
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run below to build your workspace.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose build workspace
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="option1-application-setup"></a>
|
||||||
|
### Application Setup
|
||||||
|
|
||||||
|
Run a `workspace` container and you will be inside the container at `/var/www` directory.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose run workspace bash
|
||||||
|
|
||||||
|
/var/www#> _
|
||||||
|
```
|
||||||
|
|
||||||
|
Create new Laravel application named `dusk-test` and install Laravel Dusk package.
|
||||||
|
|
||||||
|
```
|
||||||
|
/var/www> laravel new dusk-test
|
||||||
|
/var/www> cd dusk-test
|
||||||
|
/var/www/dusk-test> composer require --dev laravel/dusk
|
||||||
|
/var/www/dusk-test> php artisan dusk:install
|
||||||
|
```
|
||||||
|
|
||||||
|
Create `.env.dusk.local` by copying from `.env` file.
|
||||||
|
|
||||||
|
```
|
||||||
|
/var/www/dusk-test> cp .env .env.dusk.local
|
||||||
|
```
|
||||||
|
|
||||||
|
Update the `APP_URL` entry in `.env.dusk.local` to local Laravel server.
|
||||||
|
|
||||||
|
```
|
||||||
|
APP_URL=http://localhost:8000
|
||||||
|
```
|
||||||
|
|
||||||
|
You will need to run chromedriver with `headless` and `no-sandbox` flag. In Laravel Dusk 2.x it is
|
||||||
|
already set `headless` so you just need to add `no-sandbox` flag. If you on previous version 1.x,
|
||||||
|
you will need to update your `DustTestCase#driver` as shown below.
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
<?php
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
abstract class DuskTestCase extends BaseTestCase
|
||||||
|
{
|
||||||
|
...
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update chrome driver with below flags
|
||||||
|
*/
|
||||||
|
protected function driver()
|
||||||
|
{
|
||||||
|
$options = (new ChromeOptions)->addArguments([
|
||||||
|
'--disable-gpu',
|
||||||
|
'--headless',
|
||||||
|
'--no-sandbox'
|
||||||
|
]);
|
||||||
|
|
||||||
|
return RemoteWebDriver::create(
|
||||||
|
'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
|
||||||
|
ChromeOptions::CAPABILITY, $options
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="option1-choose-chrome-driver-version"></a>
|
||||||
|
### Choose Chrome Driver Version (Optional)
|
||||||
|
|
||||||
|
You could choose to use either:
|
||||||
|
|
||||||
|
1. Chrome Driver shipped with Laravel Dusk. (Default)
|
||||||
|
2. Chrome Driver installed in `workspace` container. (Required tweak on DuskTestCase class)
|
||||||
|
|
||||||
|
For Laravel 2.x, you need to update `DuskTestCase#prepare` method if you wish to go with option #2.
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
...
|
||||||
|
abstract class DuskTestCase extends BaseTestCase
|
||||||
|
{
|
||||||
|
...
|
||||||
|
public static function prepare()
|
||||||
|
{
|
||||||
|
// Only add this line if you wish to use chrome driver installed in workspace container.
|
||||||
|
// You might want to read the file path from env file.
|
||||||
|
static::useChromedriver('/usr/local/bin/chromedriver');
|
||||||
|
|
||||||
|
static::startChromeDriver();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
For Laravel 1.x, you need to add `DuskTestCase#buildChromeProcess` method if you wish to go with option #2.
|
||||||
|
|
||||||
|
```
|
||||||
|
<?php
|
||||||
|
|
||||||
|
...
|
||||||
|
use Symfony\Component\Process\ProcessBuilder;
|
||||||
|
|
||||||
|
abstract class DuskTestCase extends BaseTestCase
|
||||||
|
{
|
||||||
|
...
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only add this method if you wish to use chrome driver installed in workspace container
|
||||||
|
*/
|
||||||
|
protected static function buildChromeProcess()
|
||||||
|
{
|
||||||
|
return (new ProcessBuilder())
|
||||||
|
->setPrefix('chromedriver')
|
||||||
|
->getProcess()
|
||||||
|
->setEnv(static::chromeEnvironment());
|
||||||
|
}
|
||||||
|
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="option1-run-dusk-tests"></a>
|
||||||
|
### Run Dusk Tests
|
||||||
|
|
||||||
|
Run local server in `workspace` container and run Dusk tests.
|
||||||
|
|
||||||
|
```
|
||||||
|
# alias to run Laravel server in the background (php artisan serve --quiet &)
|
||||||
|
/var/www/dusk-test> serve
|
||||||
|
# alias to run Dusk tests (php artisan dusk)
|
||||||
|
/var/www/dusk-test> dusk
|
||||||
|
|
||||||
|
PHPUnit 6.4.0 by Sebastian Bergmann and contributors.
|
||||||
|
|
||||||
|
. 1 / 1 (100%)
|
||||||
|
|
||||||
|
Time: 837 ms, Memory: 6.00MB
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="option2-dusk"></a>
|
||||||
|
## Option 2: With Selenium
|
||||||
|
|
||||||
- [Intro](#dusk-intro)
|
- [Intro](#dusk-intro)
|
||||||
- [DNS Setup](#dns-setup)
|
- [DNS Setup](#dns-setup)
|
||||||
- [Docker Compose Setup](#docker-compose)
|
- [Docker Compose Setup](#docker-compose)
|
||||||
@ -572,7 +753,7 @@ Assuming that you are in laradock folder, type:
|
|||||||
- [Running Laravel Dusk Tests](#running-tests)
|
- [Running Laravel Dusk Tests](#running-tests)
|
||||||
|
|
||||||
<a name="dusk-intro"></a>
|
<a name="dusk-intro"></a>
|
||||||
## Intro
|
### Intro
|
||||||
Setting up Laravel Dusk tests to run with Laradock appears be something that
|
Setting up Laravel Dusk tests to run with Laradock appears be something that
|
||||||
eludes most Laradock users. This guide is designed to show you how to wire them
|
eludes most Laradock users. This guide is designed to show you how to wire them
|
||||||
up to work together. This guide is written with macOS and Linux in mind. As such,
|
up to work together. This guide is written with macOS and Linux in mind. As such,
|
||||||
@ -583,7 +764,7 @@ This guide assumes you know how to use a DNS forwarder such as `dnsmasq` or are
|
|||||||
with editing the `/etc/hosts` file for one-off DNS changes.
|
with editing the `/etc/hosts` file for one-off DNS changes.
|
||||||
|
|
||||||
<a name="dns-setup"></a>
|
<a name="dns-setup"></a>
|
||||||
## DNS Setup
|
### DNS Setup
|
||||||
According to RFC-2606, only four TLDs are reserved for local testing[^1]:
|
According to RFC-2606, only four TLDs are reserved for local testing[^1]:
|
||||||
|
|
||||||
- `.test`
|
- `.test`
|
||||||
@ -617,7 +798,7 @@ This will ensure that when navigating to `myapp.test`, it will route the
|
|||||||
request to `127.0.0.1` which will be handled by Nginx in Laradock.
|
request to `127.0.0.1` which will be handled by Nginx in Laradock.
|
||||||
|
|
||||||
<a name="docker-compose"></a>
|
<a name="docker-compose"></a>
|
||||||
## Docker Compose setup
|
### Docker Compose setup
|
||||||
In order to make the Selenium container talk to the Nginx container appropriately,
|
In order to make the Selenium container talk to the Nginx container appropriately,
|
||||||
the `docker-compose.yml` needs to be edited to accommodate this. Make the following
|
the `docker-compose.yml` needs to be edited to accommodate this. Make the following
|
||||||
changes:
|
changes:
|
||||||
@ -640,7 +821,7 @@ necessary for running Dusk tests. These changes also link the `nginx` environmen
|
|||||||
variable to the domain you wired up in your hosts file.
|
variable to the domain you wired up in your hosts file.
|
||||||
|
|
||||||
<a name="laravel-dusk-setup"></a>
|
<a name="laravel-dusk-setup"></a>
|
||||||
## Laravel Dusk Setup
|
### Laravel Dusk Setup
|
||||||
|
|
||||||
In order to make Laravel Dusk make the proper request to the Selenium container,
|
In order to make Laravel Dusk make the proper request to the Selenium container,
|
||||||
you have to edit the `DuskTestCase.php` file that's provided on the initial
|
you have to edit the `DuskTestCase.php` file that's provided on the initial
|
||||||
@ -650,13 +831,13 @@ Remote Web Driver attempts to use to set up the Selenium session.
|
|||||||
One recommendation for this is to add a separate config option in your `.env.dusk.local`
|
One recommendation for this is to add a separate config option in your `.env.dusk.local`
|
||||||
so it's still possible to run your Dusk tests locally should you want to.
|
so it's still possible to run your Dusk tests locally should you want to.
|
||||||
|
|
||||||
### .env.dusk.local
|
#### .env.dusk.local
|
||||||
```
|
```
|
||||||
...
|
...
|
||||||
USE_SELENIUM=true
|
USE_SELENIUM=true
|
||||||
```
|
```
|
||||||
|
|
||||||
### DuskTestCase.php
|
#### DuskTestCase.php
|
||||||
```php
|
```php
|
||||||
abstract class DuskTestCase extends BaseTestCase
|
abstract class DuskTestCase extends BaseTestCase
|
||||||
{
|
{
|
||||||
@ -677,7 +858,7 @@ abstract class DuskTestCase extends BaseTestCase
|
|||||||
```
|
```
|
||||||
|
|
||||||
<a name="running-tests"></a>
|
<a name="running-tests"></a>
|
||||||
## Running Laravel Dusk Tests
|
### Running Laravel Dusk Tests
|
||||||
|
|
||||||
Now that you have everything set up, to run your Dusk tests, you have to SSH
|
Now that you have everything set up, to run your Dusk tests, you have to SSH
|
||||||
into the workspace container as you normally would:
|
into the workspace container as you normally would:
|
||||||
|
@ -4,11 +4,14 @@ MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
|
|||||||
|
|
||||||
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
||||||
ARG PHP_UPSTREAM_PORT=9000
|
ARG PHP_UPSTREAM_PORT=9000
|
||||||
|
ARG PHP_UPSTREAM_TIMEOUT=60
|
||||||
|
|
||||||
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
|
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
|
||||||
|
|
||||||
ENV WEB_DOCUMENT_ROOT=/var/www/
|
ENV WEB_DOCUMENT_ROOT=/var/www/
|
||||||
|
|
||||||
|
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
WORKDIR /var/www/
|
WORKDIR /var/www/
|
||||||
|
1
aws/.gitignore
vendored
Normal file
1
aws/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
./ssh_keys
|
17
aws/Dockerfile
Normal file
17
aws/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM python:slim
|
||||||
|
|
||||||
|
MAINTAINER melchabcede@gmail.com
|
||||||
|
|
||||||
|
RUN pip install --upgrade --no-cache-dir awsebcli
|
||||||
|
RUN apt-get -yqq update && apt-get -yqq install git-all
|
||||||
|
|
||||||
|
#NOTE: make sure ssh keys are added to ssh_keys folder
|
||||||
|
|
||||||
|
RUN mkdir root/tmp_ssh
|
||||||
|
COPY /ssh_keys/. /root/.ssh/
|
||||||
|
RUN cd /root/.ssh && chmod 600 * && chmod 644 *.pub
|
||||||
|
|
||||||
|
# Set default work directory
|
||||||
|
WORKDIR /var/www
|
||||||
|
|
||||||
|
|
@ -18,7 +18,9 @@ services:
|
|||||||
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
||||||
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
||||||
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
||||||
|
- INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
|
||||||
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
||||||
|
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
|
||||||
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
|
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
|
||||||
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
||||||
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
||||||
@ -36,8 +38,12 @@ services:
|
|||||||
- INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
|
- INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
|
||||||
- INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
|
- INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
|
||||||
- INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS}
|
- INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS}
|
||||||
|
- INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK}
|
||||||
|
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
|
||||||
|
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
|
||||||
- PUID=${WORKSPACE_PUID}
|
- PUID=${WORKSPACE_PUID}
|
||||||
- PGID=${WORKSPACE_PGID}
|
- PGID=${WORKSPACE_PGID}
|
||||||
|
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
|
||||||
- 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}
|
||||||
@ -80,6 +86,7 @@ services:
|
|||||||
- INSTALL_LDAP=${PHP_FPM_INSTALL_LDAP}
|
- INSTALL_LDAP=${PHP_FPM_INSTALL_LDAP}
|
||||||
- INSTALL_SWOOLE=${PHP_FPM_INSTALL_SWOOLE}
|
- INSTALL_SWOOLE=${PHP_FPM_INSTALL_SWOOLE}
|
||||||
- INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
|
- INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
|
||||||
|
- INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK}
|
||||||
dockerfile: "Dockerfile-${PHP_VERSION}"
|
dockerfile: "Dockerfile-${PHP_VERSION}"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
@ -153,6 +160,7 @@ services:
|
|||||||
args:
|
args:
|
||||||
- PHP_UPSTREAM_CONTAINER=${APACHE_PHP_UPSTREAM_CONTAINER}
|
- PHP_UPSTREAM_CONTAINER=${APACHE_PHP_UPSTREAM_CONTAINER}
|
||||||
- PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
|
- PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
|
||||||
|
- PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
volumes:
|
volumes:
|
||||||
@ -213,7 +221,6 @@ services:
|
|||||||
- ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
- ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- "${MYSQL_PORT}:3306"
|
- "${MYSQL_PORT}:3306"
|
||||||
user: "1000:50"
|
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
@ -635,6 +642,16 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### AWS EB-CLI ####
|
||||||
|
aws:
|
||||||
|
build:
|
||||||
|
context: ./aws
|
||||||
|
volumes_from:
|
||||||
|
- applications
|
||||||
|
depends_on:
|
||||||
|
- workspace
|
||||||
|
tty: true
|
||||||
|
|
||||||
### Networks Setup ############################################
|
### Networks Setup ############################################
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
@ -30,8 +30,10 @@ PHP_INTERPRETER=php-fpm
|
|||||||
### WORKSPACE ##########################################################################################################
|
### WORKSPACE ##########################################################################################################
|
||||||
|
|
||||||
WORKSPACE_INSTALL_XDEBUG=false
|
WORKSPACE_INSTALL_XDEBUG=false
|
||||||
|
WORKSPACE_INSTALL_LDAP=false
|
||||||
WORKSPACE_INSTALL_SOAP=false
|
WORKSPACE_INSTALL_SOAP=false
|
||||||
WORKSPACE_INSTALL_MONGO=false
|
WORKSPACE_INSTALL_MONGO=false
|
||||||
|
WORKSPACE_INSTALL_PHPREDIS=false
|
||||||
WORKSPACE_INSTALL_MSSQL=false
|
WORKSPACE_INSTALL_MSSQL=false
|
||||||
WORKSPACE_INSTALL_NODE=false
|
WORKSPACE_INSTALL_NODE=false
|
||||||
WORKSPACE_INSTALL_YARN=false
|
WORKSPACE_INSTALL_YARN=false
|
||||||
@ -49,8 +51,12 @@ WORKSPACE_INSTALL_MC=false
|
|||||||
WORKSPACE_INSTALL_SYMFONY=false
|
WORKSPACE_INSTALL_SYMFONY=false
|
||||||
WORKSPACE_INSTALL_PYTHON=false
|
WORKSPACE_INSTALL_PYTHON=false
|
||||||
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
|
WORKSPACE_INSTALL_IMAGEMAGICK=false
|
||||||
|
WORKSPACE_INSTALL_TERRAFORM=false
|
||||||
|
WORKSPACE_INSTALL_DUSK_DEPS=false
|
||||||
WORKSPACE_PUID=1000
|
WORKSPACE_PUID=1000
|
||||||
WORKSPACE_PGID=1000
|
WORKSPACE_PGID=1000
|
||||||
|
WORKSPACE_CHROME_DRIVER_VERSION=2.32
|
||||||
WORKSPACE_NODE_VERSION=stable
|
WORKSPACE_NODE_VERSION=stable
|
||||||
WORKSPACE_YARN_VERSION=latest
|
WORKSPACE_YARN_VERSION=latest
|
||||||
WORKSPACE_TIMEZONE=UTC
|
WORKSPACE_TIMEZONE=UTC
|
||||||
@ -76,6 +82,7 @@ PHP_FPM_INSTALL_GHOSTSCRIPT=false
|
|||||||
PHP_FPM_INSTALL_LDAP=false
|
PHP_FPM_INSTALL_LDAP=false
|
||||||
PHP_FPM_INSTALL_SWOOLE=false
|
PHP_FPM_INSTALL_SWOOLE=false
|
||||||
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=false
|
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
|
PHP_FPM_INSTALL_IMAGEMAGICK=false
|
||||||
|
|
||||||
### NGINX ##############################################################################################################
|
### NGINX ##############################################################################################################
|
||||||
|
|
||||||
@ -94,6 +101,7 @@ APACHE_HOST_LOG_PATH=./logs/apache2
|
|||||||
APACHE_SITES_PATH=./apache2/sites
|
APACHE_SITES_PATH=./apache2/sites
|
||||||
APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
|
APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
|
||||||
APACHE_PHP_UPSTREAM_PORT=9000
|
APACHE_PHP_UPSTREAM_PORT=9000
|
||||||
|
APACHE_PHP_UPSTREAM_TIMEOUT=60
|
||||||
|
|
||||||
### MYSQL ##############################################################################################################
|
### MYSQL ##############################################################################################################
|
||||||
|
|
||||||
|
@ -7,9 +7,6 @@ ADD nginx.conf /etc/nginx/
|
|||||||
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
||||||
ARG PHP_UPSTREAM_PORT=9000
|
ARG PHP_UPSTREAM_PORT=9000
|
||||||
|
|
||||||
# fix a problem--#397, change application source from dl-cdn.alpinelinux.org to aliyun source.
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
|
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk add --no-cache bash \
|
&& apk add --no-cache bash \
|
||||||
|
@ -87,7 +87,7 @@ RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
|
|||||||
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
|
||||||
pecl install -o -f redis \
|
printf "\n" | pecl install -o -f redis \
|
||||||
&& rm -rf /tmp/pear \
|
&& rm -rf /tmp/pear \
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
;fi
|
;fi
|
||||||
@ -269,6 +269,19 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|||||||
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
|
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ImageMagick:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
|
||||||
|
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apt-get update -y && \
|
||||||
|
apt-get install -y libmagickwand-dev imagemagick && \
|
||||||
|
pecl install imagick && \
|
||||||
|
docker-php-ext-enable imagick \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
@ -276,7 +289,7 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|||||||
#
|
#
|
||||||
|
|
||||||
ADD ./laravel.ini /usr/local/etc/php/conf.d
|
ADD ./laravel.ini /usr/local/etc/php/conf.d
|
||||||
ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
|
ADD ./xlaravel.pool.conf /usr/local/etc/php-fpm.d/
|
||||||
|
|
||||||
#RUN rm -r /var/lib/apt/lists/*
|
#RUN rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
|
|||||||
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
|
||||||
pecl install -o -f redis \
|
printf "\n" | pecl install -o -f redis \
|
||||||
&& rm -rf /tmp/pear \
|
&& rm -rf /tmp/pear \
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
;fi
|
;fi
|
||||||
@ -173,11 +173,11 @@ ENV INSTALL_AEROSPIKE ${INSTALL_AEROSPIKE}
|
|||||||
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
|
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
|
||||||
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/3.4.14.tar.gz" \
|
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz" \
|
||||||
&& mkdir -p aerospike-client-php \
|
&& mkdir -p aerospike-client-php \
|
||||||
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd aerospike-client-php/src/aerospike \
|
cd aerospike-client-php/src \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
@ -293,6 +293,19 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|||||||
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
|
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ImageMagick:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
|
||||||
|
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apt-get update -y && \
|
||||||
|
apt-get install -y libmagickwand-dev imagemagick && \
|
||||||
|
pecl install imagick && \
|
||||||
|
docker-php-ext-enable imagick \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
@ -300,7 +313,7 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|||||||
#
|
#
|
||||||
|
|
||||||
ADD ./laravel.ini /usr/local/etc/php/conf.d/
|
ADD ./laravel.ini /usr/local/etc/php/conf.d/
|
||||||
ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
|
ADD ./xlaravel.pool.conf /usr/local/etc/php-fpm.d/
|
||||||
|
|
||||||
#RUN rm -r /var/lib/apt/lists/*
|
#RUN rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ 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 configuration 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
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@ -78,13 +78,13 @@ RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
|
|||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PHP REDIS EXTENSION FOR PHP 7
|
# PHP REDIS EXTENSION FOR PHP 7.0
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
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
|
||||||
pecl install -o -f redis \
|
printf "\n" | pecl install -o -f redis \
|
||||||
&& rm -rf /tmp/pear \
|
&& rm -rf /tmp/pear \
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
;fi
|
;fi
|
||||||
@ -179,11 +179,11 @@ RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
|||||||
apt-get -y install sudo wget && \
|
apt-get -y install sudo wget && \
|
||||||
|
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/3.4.14.tar.gz" \
|
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz" \
|
||||||
&& mkdir -p aerospike-client-php \
|
&& mkdir -p aerospike-client-php \
|
||||||
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd aerospike-client-php/src/aerospike \
|
cd aerospike-client-php/src \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
@ -300,6 +300,19 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|||||||
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
|
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ImageMagick:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
|
||||||
|
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apt-get update -y && \
|
||||||
|
apt-get install -y libmagickwand-dev imagemagick && \
|
||||||
|
pecl install imagick && \
|
||||||
|
docker-php-ext-enable imagick \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
@ -307,7 +320,7 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|||||||
#
|
#
|
||||||
|
|
||||||
ADD ./laravel.ini /usr/local/etc/php/conf.d
|
ADD ./laravel.ini /usr/local/etc/php/conf.d
|
||||||
ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
|
ADD ./xlaravel.pool.conf /usr/local/etc/php-fpm.d/
|
||||||
|
|
||||||
#RUN rm -r /var/lib/apt/lists/*
|
#RUN rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
extension=aerospike.so
|
||||||
aerospike.udf.lua_system_path=/usr/local/aerospike/lua
|
aerospike.udf.lua_system_path=/usr/local/aerospike/lua
|
||||||
aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
|
aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
|
@ -189,11 +189,25 @@ ARG INSTALL_MONGO=false
|
|||||||
ENV INSTALL_MONGO ${INSTALL_MONGO}
|
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 channel-update pecl.php.net && \
|
||||||
pecl install mongodb && \
|
pecl install mongodb && \
|
||||||
echo "extension=mongodb.so" >> /etc/php/5.6/mods-available/mongodb.ini && \
|
echo "extension=mongodb.so" >> /etc/php/5.6/mods-available/mongodb.ini && \
|
||||||
ln -s /etc/php/5.6/mods-available/mongodb.ini /etc/php/5.6/cli/conf.d/30-mongodb.ini \
|
ln -s /etc/php/5.6/mods-available/mongodb.ini /etc/php/5.6/cli/conf.d/30-mongodb.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP REDIS EXTENSION FOR PHP 5.6
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
ENV INSTALL_PHPREDIS ${INSTALL_PHPREDIS}
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis extension
|
||||||
|
printf "\n" | pecl -q install -o -f redis && \
|
||||||
|
echo "extension=redis.so" >> /etc/php/5.6/mods-available/redis.ini && \
|
||||||
|
phpenmod redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Drush:
|
# Drush:
|
||||||
#####################################
|
#####################################
|
||||||
@ -263,6 +277,9 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Add PATH for node
|
||||||
|
ENV PATH $PATH:$NVM_DIR/versions/node/v${NODE_VERSION}/bin
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# YARN:
|
# YARN:
|
||||||
#####################################
|
#####################################
|
||||||
@ -483,6 +500,60 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
|||||||
&& pip install --upgrade virtualenv \
|
&& pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ImageMagick:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
|
||||||
|
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apt-get install -y --force-yes imagemagick php-imagick \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Terraform:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_TERRAFORM=false
|
||||||
|
ENV INSTALL_TERRAFORM ${INSTALL_TERRAFORM}
|
||||||
|
RUN if [ ${INSTALL_TERRAFORM} = true ]; then \
|
||||||
|
apt-get update -yqq \
|
||||||
|
&& apt-get -y install sudo wget unzip \
|
||||||
|
&& wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip \
|
||||||
|
&& unzip terraform_0.10.6_linux_amd64.zip \
|
||||||
|
&& mv terraform /usr/local/bin \
|
||||||
|
&& rm terraform_0.10.6_linux_amd64.zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Dusk Dependencies:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_DUSK_DEPS=false
|
||||||
|
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
||||||
|
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
||||||
|
# Install required packages
|
||||||
|
add-apt-repository ppa:ondrej/php \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get -y install zip wget unzip xdg-utils \
|
||||||
|
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
||||||
|
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
||||||
|
xfonts-base xfonts-scalable x11-apps \
|
||||||
|
|
||||||
|
# Install Google Chrome
|
||||||
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
|
&& apt-get -y -f install \
|
||||||
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
|
&& rm google-chrome-stable_current_amd64.deb \
|
||||||
|
|
||||||
|
# Install Chrome Driver
|
||||||
|
&& wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip \
|
||||||
|
&& unzip chromedriver_linux64.zip \
|
||||||
|
&& mv chromedriver /usr/local/bin/ \
|
||||||
|
&& rm chromedriver_linux64.zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -69,6 +69,19 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \
|
|||||||
apt-get -y install libxml2-dev php7.0-soap \
|
apt-get -y install libxml2-dev php7.0-soap \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# LDAP:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_LDAP=false
|
||||||
|
ENV INSTALL_LDAP ${INSTALL_LDAP}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_LDAP} = true ]; then \
|
||||||
|
apt-get update -yqq && \
|
||||||
|
apt-get install -y libldap2-dev && \
|
||||||
|
apt-get install -y php7.0-ldap \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Set Timezone
|
# Set Timezone
|
||||||
#####################################
|
#####################################
|
||||||
@ -194,6 +207,19 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
ln -s /etc/php/7.0/mods-available/mongodb.ini /etc/php/7.0/cli/conf.d/30-mongodb.ini \
|
ln -s /etc/php/7.0/mods-available/mongodb.ini /etc/php/7.0/cli/conf.d/30-mongodb.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP REDIS EXTENSION FOR PHP 7
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
ENV INSTALL_PHPREDIS ${INSTALL_PHPREDIS}
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis extension
|
||||||
|
printf "\n" | pecl -q install -o -f redis && \
|
||||||
|
echo "extension=redis.so" >> /etc/php/7.0/mods-available/redis.ini && \
|
||||||
|
phpenmod redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Drush:
|
# Drush:
|
||||||
#####################################
|
#####################################
|
||||||
@ -263,6 +289,9 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Add PATH for node
|
||||||
|
ENV PATH $PATH:$NVM_DIR/versions/node/v${NODE_VERSION}/bin
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# YARN:
|
# YARN:
|
||||||
#####################################
|
#####################################
|
||||||
@ -307,11 +336,11 @@ COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
|
|||||||
|
|
||||||
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/3.4.14.tar.gz" \
|
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz" \
|
||||||
&& mkdir -p aerospike-client-php \
|
&& mkdir -p aerospike-client-php \
|
||||||
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd aerospike-client-php/src/aerospike \
|
cd aerospike-client-php/src \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
@ -564,6 +593,60 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
|||||||
&& pip install --upgrade virtualenv \
|
&& pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ImageMagick:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
|
||||||
|
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apt-get install -y --force-yes imagemagick php-imagick \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Terraform:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_TERRAFORM=false
|
||||||
|
ENV INSTALL_TERRAFORM ${INSTALL_TERRAFORM}
|
||||||
|
RUN if [ ${INSTALL_TERRAFORM} = true ]; then \
|
||||||
|
apt-get update -yqq \
|
||||||
|
&& apt-get -y install sudo wget unzip \
|
||||||
|
&& wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip \
|
||||||
|
&& unzip terraform_0.10.6_linux_amd64.zip \
|
||||||
|
&& mv terraform /usr/local/bin \
|
||||||
|
&& rm terraform_0.10.6_linux_amd64.zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Dusk Dependencies:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_DUSK_DEPS=false
|
||||||
|
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
||||||
|
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
||||||
|
# Install required packages
|
||||||
|
add-apt-repository ppa:ondrej/php \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get -y install zip wget unzip xdg-utils \
|
||||||
|
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
||||||
|
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
||||||
|
xfonts-base xfonts-scalable x11-apps \
|
||||||
|
|
||||||
|
# Install Google Chrome
|
||||||
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
|
&& apt-get -y -f install \
|
||||||
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
|
&& rm google-chrome-stable_current_amd64.deb \
|
||||||
|
|
||||||
|
# Install Chrome Driver
|
||||||
|
&& wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip \
|
||||||
|
&& unzip chromedriver_linux64.zip \
|
||||||
|
&& mv chromedriver /usr/local/bin/ \
|
||||||
|
&& rm chromedriver_linux64.zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
@ -69,6 +69,19 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \
|
|||||||
apt-get -y install libxml2-dev php7.1-soap \
|
apt-get -y install libxml2-dev php7.1-soap \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# LDAP:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_LDAP=false
|
||||||
|
ENV INSTALL_LDAP ${INSTALL_LDAP}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_LDAP} = true ]; then \
|
||||||
|
apt-get update -yqq && \
|
||||||
|
apt-get install -y libldap2-dev && \
|
||||||
|
apt-get install -y php7.1-ldap \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Set Timezone
|
# Set Timezone
|
||||||
#####################################
|
#####################################
|
||||||
@ -186,11 +199,24 @@ ARG INSTALL_MONGO=false
|
|||||||
ENV INSTALL_MONGO ${INSTALL_MONGO}
|
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 -q install mongodb && \
|
||||||
echo "extension=mongodb.so" >> /etc/php/7.1/mods-available/mongodb.ini && \
|
echo "extension=mongodb.so" >> /etc/php/7.1/mods-available/mongodb.ini && \
|
||||||
ln -s /etc/php/7.1/mods-available/mongodb.ini /etc/php/7.1/cli/conf.d/30-mongodb.ini \
|
ln -s /etc/php/7.1/mods-available/mongodb.ini /etc/php/7.1/cli/conf.d/30-mongodb.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP REDIS EXTENSION FOR PHP 7.1
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
ENV INSTALL_PHPREDIS ${INSTALL_PHPREDIS}
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis extension
|
||||||
|
printf "\n" | pecl -q install -o -f redis && \
|
||||||
|
echo "extension=redis.so" >> /etc/php/7.1/mods-available/redis.ini && \
|
||||||
|
phpenmod redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Drush:
|
# Drush:
|
||||||
#####################################
|
#####################################
|
||||||
@ -260,6 +286,10 @@ RUN if [ ${INSTALL_NODE} = true ]; then \
|
|||||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Add PATH for node
|
||||||
|
ENV PATH $PATH:$NVM_DIR/versions/node/v${NODE_VERSION}/bin
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# YARN:
|
# YARN:
|
||||||
#####################################
|
#####################################
|
||||||
@ -308,11 +338,11 @@ RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
|||||||
apt-get -y install sudo wget && \
|
apt-get -y install sudo wget && \
|
||||||
|
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/3.4.14.tar.gz" \
|
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz" \
|
||||||
&& mkdir -p aerospike-client-php \
|
&& mkdir -p aerospike-client-php \
|
||||||
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd aerospike-client-php/src/aerospike \
|
cd aerospike-client-php/src \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
@ -569,6 +599,56 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
|||||||
&& pip install --upgrade virtualenv \
|
&& pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# ImageMagick:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
|
||||||
|
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apt-get install -y --force-yes imagemagick php-imagick \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Terraform:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_TERRAFORM=false
|
||||||
|
ENV INSTALL_TERRAFORM ${INSTALL_TERRAFORM}
|
||||||
|
RUN if [ ${INSTALL_TERRAFORM} = true ]; then \
|
||||||
|
apt-get update -yqq \
|
||||||
|
&& apt-get -y install sudo wget unzip \
|
||||||
|
&& wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip \
|
||||||
|
&& unzip terraform_0.10.6_linux_amd64.zip \
|
||||||
|
&& mv terraform /usr/local/bin \
|
||||||
|
&& rm terraform_0.10.6_linux_amd64.zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Dusk Dependencies:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG CHROME_DRIVER_VERSION=stable
|
||||||
|
ENV CHROME_DRIVER_VERSION ${CHROME_DRIVER_VERSION}
|
||||||
|
ARG INSTALL_DUSK_DEPS=false
|
||||||
|
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
||||||
|
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
||||||
|
add-apt-repository ppa:ondrej/php \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get -y install zip wget unzip xdg-utils \
|
||||||
|
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
||||||
|
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
||||||
|
xfonts-base xfonts-scalable x11-apps \
|
||||||
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
|
&& apt-get -y -f install \
|
||||||
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
|
&& rm google-chrome-stable_current_amd64.deb \
|
||||||
|
&& wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip \
|
||||||
|
&& unzip chromedriver_linux64.zip \
|
||||||
|
&& mv chromedriver /usr/local/bin/ \
|
||||||
|
&& rm chromedriver_linux64.zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
@ -63,8 +63,13 @@ alias artisan="php artisan"
|
|||||||
alias cdump="composer dump-autoload -o"
|
alias cdump="composer dump-autoload -o"
|
||||||
alias composer:dump="composer dump-autoload -o"
|
alias composer:dump="composer dump-autoload -o"
|
||||||
alias db:reset="php artisan migrate:reset && php artisan migrate --seed"
|
alias db:reset="php artisan migrate:reset && php artisan migrate --seed"
|
||||||
|
alias dusk="php artisan dusk"
|
||||||
|
alias fresh="php artisan migrate:fresh"
|
||||||
alias migrate="php artisan migrate"
|
alias migrate="php artisan migrate"
|
||||||
|
alias refresh="php artisan migrate:refresh"
|
||||||
|
alias rollback="php artisan migrate:rollback"
|
||||||
alias seed="php artisan:seed"
|
alias seed="php artisan:seed"
|
||||||
|
alias serve="php artisan serve --quiet &"
|
||||||
|
|
||||||
alias phpunit="./vendor/bin/phpunit"
|
alias phpunit="./vendor/bin/phpunit"
|
||||||
alias pu="phpunit"
|
alias pu="phpunit"
|
||||||
@ -84,6 +89,9 @@ alias reload="source ~/.aliases && echo \"$COL_GREEN ==> Aliases Reloaded... $CO
|
|||||||
alias run="npm run"
|
alias run="npm run"
|
||||||
alias tree="xtree"
|
alias tree="xtree"
|
||||||
|
|
||||||
|
# Xvfb
|
||||||
|
alias xvfb="Xvfb -ac :0 -screen 0 1024x768x16 &"
|
||||||
|
|
||||||
# requires installation of 'https://www.npmjs.com/package/npms-cli'
|
# requires installation of 'https://www.npmjs.com/package/npms-cli'
|
||||||
alias npms="npms search"
|
alias npms="npms search"
|
||||||
# requires installation of 'https://www.npmjs.com/package/package-menu-cli'
|
# requires installation of 'https://www.npmjs.com/package/package-menu-cli'
|
||||||
|
Reference in New Issue
Block a user