Compare commits
55 Commits
Author | SHA1 | Date | |
---|---|---|---|
4f5dfbcb13 | |||
6cc58de67e | |||
b2da8aeb3f | |||
a9ecdd0008 | |||
1dab0c48d8 | |||
91f1d4347c | |||
4013553dbb | |||
07e4bd174e | |||
7999399e9a | |||
d684cb4742 | |||
3c27c14b99 | |||
3473b788cf | |||
1a5c7a7b3f | |||
616e9c7d92 | |||
a3039958e3 | |||
b01bae59fc | |||
92dc3be3b1 | |||
650f6a89c6 | |||
041d134f69 | |||
79ff092105 | |||
ffce0f93d5 | |||
a2d154c30a | |||
59a22aedac | |||
b42ad1ae7e | |||
07d6ec85ca | |||
adfb559521 | |||
05e0e9c817 | |||
ab53db1897 | |||
6dcb174012 | |||
38eeae8791 | |||
de914d106f | |||
6c71d6d84f | |||
7b2ff6dab8 | |||
1e5d604470 | |||
314e43bb79 | |||
ea047e2587 | |||
d441427852 | |||
227c8da17c | |||
14b97caa57 | |||
6ba76da709 | |||
294fe31a80 | |||
78be0b577e | |||
5a980b1c97 | |||
3ad474a2d9 | |||
9aa8813a3d | |||
58af86a582 | |||
1afad7f14c | |||
00d48fff51 | |||
9bd70aadc8 | |||
208b2e7c0a | |||
9611fdb58f | |||
5210ca7ccf | |||
5ebb061b70 | |||
ad49981dd6 | |||
e135fbb970 |
@ -959,6 +959,7 @@ Docker或Laravel的特别帮助,你可以在[Codementor.io](https://www.codeme
|
|||||||
|
|
||||||
**主要 贡献者:**
|
**主要 贡献者:**
|
||||||
|
|
||||||
|
- [Zhqagp](https://github.com/zhqagp)
|
||||||
- [Suteepat (tianissimo)](https://github.com/tianissimo)
|
- [Suteepat (tianissimo)](https://github.com/tianissimo)
|
||||||
- [David (davidavz)](https://github.com/davidavz)
|
- [David (davidavz)](https://github.com/davidavz)
|
||||||
- [Lialosiu](https://github.com/lialosiu)
|
- [Lialosiu](https://github.com/lialosiu)
|
||||||
|
64
README.md
64
README.md
@ -49,6 +49,7 @@ It's like Laravel Homestead but for Docker instead of Vagrant.
|
|||||||
- [Use Redis](#Use-Redis)
|
- [Use Redis](#Use-Redis)
|
||||||
- [Use Mongo](#Use-Mongo)
|
- [Use Mongo](#Use-Mongo)
|
||||||
- [Use phpMyAdmin](#Use-phpMyAdmin)
|
- [Use phpMyAdmin](#Use-phpMyAdmin)
|
||||||
|
- [Use pgAdmin](#Use-pgAdmin)
|
||||||
- [PHP](#PHP)
|
- [PHP](#PHP)
|
||||||
- [Install PHP Extensions](#Install-PHP-Extensions)
|
- [Install PHP Extensions](#Install-PHP-Extensions)
|
||||||
- [Change the PHP-FPM Version](#Change-the-PHP-FPM-Version)
|
- [Change the PHP-FPM Version](#Change-the-PHP-FPM-Version)
|
||||||
@ -120,6 +121,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
|||||||
- **Cache Engines:**
|
- **Cache Engines:**
|
||||||
- Redis
|
- Redis
|
||||||
- Memcached
|
- Memcached
|
||||||
|
- Aerospike
|
||||||
- **PHP Servers:**
|
- **PHP Servers:**
|
||||||
- NGINX
|
- NGINX
|
||||||
- Apache2
|
- Apache2
|
||||||
@ -129,9 +131,11 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
|||||||
- HHVM
|
- HHVM
|
||||||
- **Message Queueing Systems:**
|
- **Message Queueing Systems:**
|
||||||
- Beanstalkd (+ Beanstalkd Console)
|
- Beanstalkd (+ Beanstalkd Console)
|
||||||
|
- RabbitMQ (+ RabbitMQ Console)
|
||||||
- **Tools:**
|
- **Tools:**
|
||||||
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, Vim, Nano, cURL...)
|
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, Vim, Nano, cURL...)
|
||||||
- phpMyAdmin
|
- phpMyAdmin
|
||||||
|
- pgAdmin
|
||||||
|
|
||||||
|
|
||||||
>If you can't find your Software, build it yourself and add it to this list. Contributions are welcomed :)
|
>If you can't find your Software, build it yourself and add it to this list. Contributions are welcomed :)
|
||||||
@ -249,7 +253,7 @@ docker-compose up -d nginx mysql
|
|||||||
|
|
||||||
You can select your own combination of Containers form the list below:
|
You can select your own combination of Containers form the list below:
|
||||||
|
|
||||||
`nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `workspace`, `phpmyadmin`.
|
`nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `rabbitmq`, `workspace`, `phpmyadmin`, `aerospike`, `pgadmin`.
|
||||||
|
|
||||||
|
|
||||||
**Note**: `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command.
|
**Note**: `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command.
|
||||||
@ -724,7 +728,17 @@ docker-compose up -d mariadb phpmyadmin
|
|||||||
2 - Open your browser and visit the localhost on port **8080**: `http://localhost:8080`
|
2 - Open your browser and visit the localhost on port **8080**: `http://localhost:8080`
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Use-pgAdmin"></a>
|
||||||
|
### Use pgAdmin
|
||||||
|
|
||||||
|
1 - Run the pgAdmin Container (`pgadmin`) with the `docker-compose up` command. Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d postgres pgadmin
|
||||||
|
```
|
||||||
|
|
||||||
|
2 - Open your browser and visit the localhost on port **5050**: `http://localhost:5050`
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@ -994,7 +1008,40 @@ It should be like this:
|
|||||||
|
|
||||||
3 - Re-build the container `docker-compose build workspace`
|
3 - Re-build the container `docker-compose build workspace`
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Install-Aerospike-Extension"></a>
|
||||||
|
### Install Aerospike extension
|
||||||
|
|
||||||
|
1 - First install `aerospike` in the Workspace and the PHP-FPM Containers:
|
||||||
|
<br>
|
||||||
|
a) open the `docker-compose.yml` file
|
||||||
|
<br>
|
||||||
|
b) search for the `INSTALL_AEROSPIKE_EXTENSION` argument under the Workspace Container
|
||||||
|
<br>
|
||||||
|
c) set it to `true`
|
||||||
|
<br>
|
||||||
|
d) search for the `INSTALL_AEROSPIKE_EXTENSION` argument under the PHP-FPM Container
|
||||||
|
<br>
|
||||||
|
e) set it to `true`
|
||||||
|
|
||||||
|
It should be like this:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
workspace:
|
||||||
|
build:
|
||||||
|
context: ./workspace
|
||||||
|
args:
|
||||||
|
- INSTALL_AEROSPIKE_EXTENSION=true
|
||||||
|
...
|
||||||
|
php-fpm:
|
||||||
|
build:
|
||||||
|
context: ./php-fpm
|
||||||
|
args:
|
||||||
|
- INSTALL_AEROSPIKE_EXTENSION=true
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
2 - Re-build the containers `docker-compose build workspace php-fpm`
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="debugging"></a>
|
<a name="debugging"></a>
|
||||||
@ -1002,6 +1049,8 @@ It should be like this:
|
|||||||
|
|
||||||
*Here's a list of the common problems you might face, and the possible solutions.*
|
*Here's a list of the common problems you might face, and the possible solutions.*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### I see a blank (white) page instead of the Laravel 'Welcome' page!
|
#### I see a blank (white) page instead of the Laravel 'Welcome' page!
|
||||||
|
|
||||||
Run the following command from the Laravel root directory:
|
Run the following command from the Laravel root directory:
|
||||||
@ -1010,16 +1059,27 @@ Run the following command from the Laravel root directory:
|
|||||||
sudo chmod -R 777 storage bootstrap/cache
|
sudo chmod -R 777 storage bootstrap/cache
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### I see "Welcome to nginx" instead of the Laravel App!
|
#### I see "Welcome to nginx" instead of the Laravel App!
|
||||||
|
|
||||||
Use `http://127.0.0.1` instead of `http://localhost` in your browser.
|
Use `http://127.0.0.1` instead of `http://localhost` in your browser.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### I see an error message containing `address already in use`
|
#### I see an error message containing `address already in use`
|
||||||
|
|
||||||
Make sure the ports for the services that you are trying to run (80, 3306, etc.) are not being used already by other programs, such as a built in `apache`/`httpd` service or other development tools you have installed.
|
Make sure the ports for the services that you are trying to run (80, 3306, etc.) are not being used already by other programs, such as a built in `apache`/`httpd` service or other development tools you have installed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### I get Nginx error 404 Not Found on Windows.
|
||||||
|
|
||||||
|
1. Go to docker Settings on your Windows machine.
|
||||||
|
2. Click on the `Shared Drives` tab and check the drive that contains your project files.
|
||||||
|
3. Enter your windows username and password.
|
||||||
|
4. Go to the `reset` tab and click restart docker.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1050,7 +1110,7 @@ Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requ
|
|||||||
|
|
||||||
This little project was built by one man who has a full time job and many responsibilities, so if you like this project and you find that it needs a bug fix or support for new software or upgrade any container, or anything else.. Do not hesitate to contribute, you are more than welcome :)
|
This little project was built by one man who has a full time job and many responsibilities, so if you like this project and you find that it needs a bug fix or support for new software or upgrade any container, or anything else.. Do not hesitate to contribute, you are more than welcome :)
|
||||||
|
|
||||||
#### Read our [Contribution Guidelines](https://github.com/LaraDock/laradock/blob/master/_guides/contributing.md)
|
#### Read the [Contribution Guidelines](https://github.com/LaraDock/laradock/blob/master/CONTRIBUTING.md).
|
||||||
|
|
||||||
<a name="Help"></a>
|
<a name="Help"></a>
|
||||||
## Help & Questions
|
## Help & Questions
|
||||||
|
7
aerospike/Dockerfile
Normal file
7
aerospike/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM aerospike:latest
|
||||||
|
|
||||||
|
MAINTAINER Luciano Jr <luciano@lucianojr.com.br>
|
||||||
|
|
||||||
|
RUN rm /etc/aerospike/aerospike.conf
|
||||||
|
|
||||||
|
ADD aerospike.conf /etc/aerospike/aerospike.conf
|
77
aerospike/aerospike.conf
Normal file
77
aerospike/aerospike.conf
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Aerospike database configuration file.
|
||||||
|
|
||||||
|
# This stanza must come first.
|
||||||
|
service {
|
||||||
|
user root
|
||||||
|
group root
|
||||||
|
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
|
||||||
|
pidfile /var/run/aerospike/asd.pid
|
||||||
|
service-threads 4
|
||||||
|
transaction-queues 4
|
||||||
|
transaction-threads-per-queue 4
|
||||||
|
proto-fd-max 15000
|
||||||
|
}
|
||||||
|
|
||||||
|
logging {
|
||||||
|
|
||||||
|
# Log file must be an absolute path.
|
||||||
|
file /var/log/aerospike/aerospike.log {
|
||||||
|
context any info
|
||||||
|
}
|
||||||
|
|
||||||
|
# Send log messages to stdout
|
||||||
|
console {
|
||||||
|
context any critical
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
network {
|
||||||
|
service {
|
||||||
|
address any
|
||||||
|
port 3000
|
||||||
|
|
||||||
|
# Uncomment the following to set the `access-address` parameter to the
|
||||||
|
# IP address of the Docker host. This will the allow the server to correctly
|
||||||
|
# publish the address which applications and other nodes in the cluster to
|
||||||
|
# use when addressing this node.
|
||||||
|
# access-address <IPADDR>
|
||||||
|
}
|
||||||
|
|
||||||
|
heartbeat {
|
||||||
|
|
||||||
|
# mesh is used for environments that do not support multicast
|
||||||
|
mode mesh
|
||||||
|
port 3002
|
||||||
|
|
||||||
|
# use asinfo -v 'tip:host=<ADDR>;port=3002' to inform cluster of
|
||||||
|
# other mesh nodes
|
||||||
|
mesh-port 3002
|
||||||
|
|
||||||
|
interval 150
|
||||||
|
timeout 10
|
||||||
|
}
|
||||||
|
|
||||||
|
fabric {
|
||||||
|
port 3001
|
||||||
|
}
|
||||||
|
|
||||||
|
info {
|
||||||
|
port 3003
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace test {
|
||||||
|
replication-factor 2
|
||||||
|
memory-size 1G
|
||||||
|
default-ttl 5d # 5 days, use 0 to never expire/evict.
|
||||||
|
|
||||||
|
# storage-engine memory
|
||||||
|
|
||||||
|
# To use file storage backing, comment out the line above and use the
|
||||||
|
# following lines instead.
|
||||||
|
storage-engine device {
|
||||||
|
file /opt/aerospike/data/test.dat
|
||||||
|
filesize 4G
|
||||||
|
data-in-memory true # Store data in memory in addition to file.
|
||||||
|
}
|
||||||
|
}
|
@ -12,15 +12,19 @@ services:
|
|||||||
- INSTALL_MONGO=false
|
- INSTALL_MONGO=false
|
||||||
- INSTALL_NODE=false
|
- INSTALL_NODE=false
|
||||||
- INSTALL_DRUSH=false
|
- INSTALL_DRUSH=false
|
||||||
|
- INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
- COMPOSER_GLOBAL_INSTALL=false
|
- COMPOSER_GLOBAL_INSTALL=false
|
||||||
- INSTALL_WORKSPACE_SSH=false
|
- INSTALL_WORKSPACE_SSH=false
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
|
- NODE_VERSION=stable
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- volumes_source
|
- volumes_source
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
# IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
|
# IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
|
||||||
- "dockerhost:10.0.75.1"
|
- "dockerhost:10.0.75.1"
|
||||||
|
ports:
|
||||||
|
- "22:22"
|
||||||
tty: true
|
tty: true
|
||||||
|
|
||||||
### PHP-FPM Container #######################################
|
### PHP-FPM Container #######################################
|
||||||
@ -34,6 +38,7 @@ services:
|
|||||||
- INSTALL_ZIP_ARCHIVE=false
|
- INSTALL_ZIP_ARCHIVE=false
|
||||||
- INSTALL_MEMCACHED=false
|
- INSTALL_MEMCACHED=false
|
||||||
- INSTALL_OPCACHE=false
|
- INSTALL_OPCACHE=false
|
||||||
|
- INSTALL_AEROSPIKE_EXTENSION=false
|
||||||
dockerfile: Dockerfile-70
|
dockerfile: Dockerfile-70
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- volumes_source
|
- volumes_source
|
||||||
@ -164,6 +169,20 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
|
||||||
|
### Aerospike c Container #########################################
|
||||||
|
|
||||||
|
aerospike:
|
||||||
|
build: ./aerospike
|
||||||
|
volumes_from:
|
||||||
|
- workspace
|
||||||
|
- volumes_data
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "3001:3001"
|
||||||
|
- "3002:3002"
|
||||||
|
- "3003:3003"
|
||||||
|
|
||||||
|
|
||||||
### Memcached Container #####################################
|
### Memcached Container #####################################
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
@ -185,6 +204,21 @@ services:
|
|||||||
links:
|
links:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
|
|
||||||
|
### RabbitMQ Container ####################################
|
||||||
|
|
||||||
|
rabbitmq:
|
||||||
|
build: ./rabbitmq
|
||||||
|
ports:
|
||||||
|
- "5672:5672"
|
||||||
|
- "15671:15671"
|
||||||
|
- "8080:15672"
|
||||||
|
privileged: true
|
||||||
|
environment:
|
||||||
|
RABBITMQ_DEFAULT_USER: guest
|
||||||
|
RABBITMQ_DEFAULT_PASS: guest
|
||||||
|
links:
|
||||||
|
- php-fpm
|
||||||
|
|
||||||
### Beanstalkd Console Container ############################
|
### Beanstalkd Console Container ############################
|
||||||
|
|
||||||
beanstalkd-console:
|
beanstalkd-console:
|
||||||
@ -229,10 +263,19 @@ services:
|
|||||||
# for mariadb container
|
# for mariadb container
|
||||||
# - "mariadb:db"
|
# - "mariadb:db"
|
||||||
|
|
||||||
|
### pgAdmin Container ##################################
|
||||||
|
|
||||||
|
pgadmin:
|
||||||
|
build: ./pgadmin
|
||||||
|
ports:
|
||||||
|
- "5050:5050"
|
||||||
|
links:
|
||||||
|
- postgres
|
||||||
|
|
||||||
### Laravel Application Code Container ######################
|
### Laravel Application Code Container ######################
|
||||||
|
|
||||||
volumes_source:
|
volumes_source:
|
||||||
build: ./volumes/application
|
image: tianon/true
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/var/www/laravel
|
- ../:/var/www/laravel
|
||||||
# Demonstration of how to mount multiple sites
|
# Demonstration of how to mount multiple sites
|
||||||
@ -242,14 +285,15 @@ services:
|
|||||||
### Databases Data Container ################################
|
### Databases Data Container ################################
|
||||||
|
|
||||||
volumes_data:
|
volumes_data:
|
||||||
build: ./volumes/data
|
image: tianon/true
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mysql:/var/lib/mysql
|
- ./data/mysql:/var/lib/mysql
|
||||||
- ./data/postgres:/var/lib/postgres
|
- ./data/postgres:/var/lib/postgresql/data
|
||||||
- ./data/memcached:/var/lib/memcached
|
- ./data/memcached:/var/lib/memcached
|
||||||
- ./data/redis:/data
|
- ./data/redis:/data
|
||||||
- ./data/neo4j:/var/lib/neo4j/data
|
- ./data/neo4j:/var/lib/neo4j/data
|
||||||
- ./data/mongo:/data/db
|
- ./data/mongo:/data/db
|
||||||
|
- ./data/aerospike:/opt/aerospike/data
|
||||||
- ./data/sessions:/sessions
|
- ./data/sessions:/sessions
|
||||||
|
|
||||||
### Add more Containers below ###############################
|
### Add more Containers below ###############################
|
||||||
|
5
pgadmin/Dockerfile
Normal file
5
pgadmin/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM fenglc/pgadmin4
|
||||||
|
|
||||||
|
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
|
||||||
|
|
||||||
|
EXPOSE 5050
|
@ -41,7 +41,6 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_XDEBUG=true
|
ARG INSTALL_XDEBUG=true
|
||||||
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
|
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Install the xdebug extension
|
# Install the xdebug extension
|
||||||
pecl install xdebug && \
|
pecl install xdebug && \
|
||||||
@ -56,7 +55,6 @@ COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MONGO=true
|
ARG INSTALL_MONGO=true
|
||||||
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 && \
|
||||||
@ -68,7 +66,6 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_ZIP_ARCHIVE=true
|
ARG INSTALL_ZIP_ARCHIVE=true
|
||||||
ENV INSTALL_ZIP_ARCHIVE ${INSTALL_ZIP_ARCHIVE}
|
|
||||||
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 && \
|
pecl install zip && \
|
||||||
@ -80,18 +77,38 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MEMCACHED=true
|
ARG INSTALL_MEMCACHED=true
|
||||||
ENV INSTALL_MEMCACHED ${INSTALL_MEMCACHED}
|
|
||||||
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
||||||
# Install the php memcached extension
|
# Install the php memcached extension
|
||||||
pecl install memcached && \
|
pecl install memcached && \
|
||||||
docker-php-ext-enable memcached \
|
docker-php-ext-enable memcached \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP Aerospike:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_AEROSPIKE_EXTENSION=true
|
||||||
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
|
# Copy aerospike configration for remote debugging
|
||||||
|
COPY ./aerospike.ini /usr/local/etc/php/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
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Opcache:
|
# Opcache:
|
||||||
#####################################
|
#####################################
|
||||||
ARG INSTALL_OPCACHE=true
|
ARG INSTALL_OPCACHE=true
|
||||||
ENV INSTALL_OPCACHE ${INSTALL_OPCACHE}
|
|
||||||
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 \
|
docker-php-ext-enable opcache \
|
||||||
|
@ -41,7 +41,6 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_XDEBUG=true
|
ARG INSTALL_XDEBUG=true
|
||||||
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
|
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Install the xdebug extension
|
# Install the xdebug extension
|
||||||
pecl install xdebug && \
|
pecl install xdebug && \
|
||||||
@ -56,7 +55,6 @@ COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MONGO=true
|
ARG INSTALL_MONGO=true
|
||||||
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 && \
|
||||||
@ -68,7 +66,6 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_ZIP_ARCHIVE=true
|
ARG INSTALL_ZIP_ARCHIVE=true
|
||||||
ENV INSTALL_ZIP_ARCHIVE ${INSTALL_ZIP_ARCHIVE}
|
|
||||||
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 && \
|
pecl install zip && \
|
||||||
@ -80,7 +77,6 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
ARG INSTALL_MEMCACHED=true
|
ARG INSTALL_MEMCACHED=true
|
||||||
ENV INSTALL_MEMCACHED ${INSTALL_MEMCACHED}
|
|
||||||
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
||||||
# Install the php memcached extension
|
# Install the php memcached extension
|
||||||
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
|
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
|
||||||
@ -98,11 +94,32 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
&& docker-php-ext-enable memcached \
|
&& docker-php-ext-enable memcached \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP Aerospike:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_AEROSPIKE_EXTENSION=true
|
||||||
|
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
|
||||||
|
# Copy aerospike configration for remote debugging
|
||||||
|
COPY ./aerospike.ini /usr/local/etc/php/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
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Opcache:
|
# Opcache:
|
||||||
#####################################
|
#####################################
|
||||||
ARG INSTALL_OPCACHE=true
|
ARG INSTALL_OPCACHE=true
|
||||||
ENV INSTALL_OPCACHE ${INSTALL_OPCACHE}
|
|
||||||
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 \
|
docker-php-ext-enable opcache \
|
||||||
@ -127,4 +144,4 @@ WORKDIR /var/www/laravel
|
|||||||
|
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
3
php-fpm/aerospike.ini
Normal file
3
php-fpm/aerospike.ini
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
extension=aerospike.so
|
||||||
|
aerospike.udf.lua_system_path=/usr/local/aerospike/lua
|
||||||
|
aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
|
@ -7,5 +7,3 @@ VOLUME /sessions
|
|||||||
|
|
||||||
# We expose phpMyAdmin on port 80
|
# We expose phpMyAdmin on port 80
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT [ "/run.sh" ]
|
|
||||||
|
12
rabbitmq/Dockerfile
Normal file
12
rabbitmq/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#
|
||||||
|
# RabbitMQ Dockerfile
|
||||||
|
#
|
||||||
|
# https://github.com/dockerfile/rabbitmq
|
||||||
|
#
|
||||||
|
|
||||||
|
# Pull base image.
|
||||||
|
FROM rabbitmq
|
||||||
|
|
||||||
|
RUN rabbitmq-plugins enable --offline rabbitmq_management
|
||||||
|
|
||||||
|
EXPOSE 15671 15672
|
@ -1,7 +0,0 @@
|
|||||||
FROM debian:jessie
|
|
||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|
||||||
|
|
||||||
WORKDIR /var/www/laravel
|
|
||||||
|
|
||||||
CMD ["true"]
|
|
@ -1,5 +0,0 @@
|
|||||||
FROM debian:jessie
|
|
||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|
||||||
|
|
||||||
CMD ["true"]
|
|
@ -49,6 +49,7 @@ ARG INSTALL_XDEBUG=true
|
|||||||
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
|
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
|
||||||
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 install -y --force-yes php7.0-xdebug && \
|
apt-get install -y --force-yes php7.0-xdebug && \
|
||||||
sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini && \
|
sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini && \
|
||||||
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/laravel/vendor/bin/phpunit'" >> ~/.bashrc \
|
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/laravel/vendor/bin/phpunit'" >> ~/.bashrc \
|
||||||
@ -141,16 +142,18 @@ USER laradock
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
# Check if NVM needs to be installed
|
# Check if NVM needs to be installed
|
||||||
|
ARG NODE_VERSION=stable
|
||||||
|
ENV NODE_VERSION ${NODE_VERSION}
|
||||||
ARG INSTALL_NODE=true
|
ARG INSTALL_NODE=true
|
||||||
ENV INSTALL_NODE ${INSTALL_NODE}
|
ENV INSTALL_NODE ${INSTALL_NODE}
|
||||||
ENV NVM_DIR /home/laradock/.nvm
|
ENV NVM_DIR /home/laradock/.nvm
|
||||||
RUN if [ ${INSTALL_NODE} = true ]; then \
|
RUN if [ ${INSTALL_NODE} = true ]; then \
|
||||||
# Install nvm (A Node Version Manager)
|
# Install nvm (A Node Version Manager)
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash && \
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash && \
|
||||||
. ~/.nvm/nvm.sh && \
|
. ~/.nvm/nvm.sh && \
|
||||||
nvm install stable && \
|
nvm install ${NODE_VERSION} && \
|
||||||
nvm use stable && \
|
nvm use ${NODE_VERSION} && \
|
||||||
nvm alias stable && \
|
nvm alias ${NODE_VERSION} && \
|
||||||
npm install -g gulp bower \
|
npm install -g gulp bower \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
@ -162,6 +165,28 @@ 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
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# 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
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
3
workspace/aerospike.ini
Normal file
3
workspace/aerospike.ini
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
extension=aerospike.so
|
||||||
|
aerospike.udf.lua_system_path=/usr/local/aerospike/lua
|
||||||
|
aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
|
46
workspace/insecure_id_rsa.ppk
Normal file
46
workspace/insecure_id_rsa.ppk
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
PuTTY-User-Key-File-2: ssh-rsa
|
||||||
|
Encryption: none
|
||||||
|
Comment: imported-openssh-key
|
||||||
|
Public-Lines: 12
|
||||||
|
AAAAB3NzaC1yc2EAAAADAQABAAACAQD0tfQNVXxVjST53ny/5Op7ot+GeIGEGAEn
|
||||||
|
r9kgYAXK6GqnJ/3UOfWKFxl4gEusLj4hpGrT/GJVx2nIG7d/IaRifJvns+Lak4Wj
|
||||||
|
+17zyPRF54/mic6a0MAREJH5aTOLuSK+DhnhTUqAt4mfdHpYmBXWdTAXDCg8gP5Q
|
||||||
|
LdGkdxL9M+GBk4tKiDx1hRfHV9uY6ci0lspQrhnPzzeWLktTA8uWYZlus1gv3SXX
|
||||||
|
6zVD2+XB6/J7ZarNcK9iHoMLddFggSdnGs6kNLJQe0DAwncdeCQizcdXV2A9O33v
|
||||||
|
aY/b0A1obUxuoCit629AwyQ9C/71f3rBSrfgUSb1pOVPmhLRJDZenf/NS8FIW194
|
||||||
|
/u5slvr1u6fj/iiCYctt0PNg00UAnlybWDDKD3l5e8Kbl16uTw1/5AEc6Wl3aCmt
|
||||||
|
WYpwRGeue/hnUzOXr9/SjhQLfB+ZCASt83N+u0kV7ni7G5/04z11dqZwkk6x1SAz
|
||||||
|
WGJnp76piwd4AP2fu8KqNAmWsyEIZmmR5JSGS5i4sGuSGog6rZWop1LwIfNjdOLF
|
||||||
|
bs+rnF0oOmpgZReo8fH+PmOkq3iHaPQvXO3Cj2d52HVxtHI+n2iKjDu3CzHIP31v
|
||||||
|
fqsZKHfmoo3ckFW4yfrPcXy0gQswPj0jJUIbKLb6OfuptUsQ5SvkiwWoW4irnO3l
|
||||||
|
KF9KLo3t7w==
|
||||||
|
Private-Lines: 28
|
||||||
|
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
|
||||||
|
k7Fo
|
||||||
|
Private-MAC: 4ea4cef3fa63f1068dcd512c477c61dd7e85bb38
|
18
xdebugPhpFpm
18
xdebugPhpFpm
@ -6,12 +6,21 @@
|
|||||||
# Grab full name of php-fpm container
|
# Grab full name of php-fpm container
|
||||||
PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d" " -f 1)
|
PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d" " -f 1)
|
||||||
|
|
||||||
|
|
||||||
|
# Grab OS type
|
||||||
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
|
OS_TYPE="OSX"
|
||||||
|
else
|
||||||
|
OS_TYPE=$(expr substr $(uname -s) 1 5)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
xdebug_status ()
|
xdebug_status ()
|
||||||
{
|
{
|
||||||
echo 'xDebug status'
|
echo 'xDebug status'
|
||||||
|
|
||||||
# If running on Windows, need to prepend with winpty :(
|
# If running on Windows, need to prepend with winpty :(
|
||||||
if [[ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]]; then
|
if [[ $OS_TYPE == "MINGW" ]]; then
|
||||||
winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v'
|
winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v'
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -20,6 +29,7 @@ xdebug_status ()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
xdebug_start ()
|
xdebug_start ()
|
||||||
{
|
{
|
||||||
echo 'Start xDebug'
|
echo 'Start xDebug'
|
||||||
@ -30,7 +40,7 @@ xdebug_start ()
|
|||||||
|
|
||||||
|
|
||||||
# If running on Windows, need to prepend with winpty :(
|
# If running on Windows, need to prepend with winpty :(
|
||||||
if [[ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]]; then
|
if [[ $OS_TYPE == "MINGW" ]]; then
|
||||||
winpty docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}"
|
winpty docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}"
|
||||||
docker restart $PHP_FPM_CONTAINER
|
docker restart $PHP_FPM_CONTAINER
|
||||||
winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v'
|
winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v'
|
||||||
@ -40,9 +50,9 @@ xdebug_start ()
|
|||||||
docker restart $PHP_FPM_CONTAINER
|
docker restart $PHP_FPM_CONTAINER
|
||||||
docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v'
|
docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
xdebug_stop ()
|
xdebug_stop ()
|
||||||
{
|
{
|
||||||
echo 'Stop xDebug'
|
echo 'Stop xDebug'
|
||||||
@ -52,7 +62,7 @@ xdebug_stop ()
|
|||||||
|
|
||||||
|
|
||||||
# If running on Windows, need to prepend with winpty :(
|
# If running on Windows, need to prepend with winpty :(
|
||||||
if [[ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]]; then
|
if [[ $OS_TYPE == "MINGW" ]]; then
|
||||||
# This is the equivalent of:
|
# This is the equivalent of:
|
||||||
# winpty docker exec -it laradock_php-fpm_1 bash -c 'bla bla bla'
|
# winpty docker exec -it laradock_php-fpm_1 bash -c 'bla bla bla'
|
||||||
# Thanks to @michaelarnauts at https://github.com/docker/compose/issues/593
|
# Thanks to @michaelarnauts at https://github.com/docker/compose/issues/593
|
||||||
|
Reference in New Issue
Block a user