rabin пре 7 месеци
родитељ
комит
8f5a7a29e6

+ 1 - 1
container/conf/db/mariadb/my.conf

@@ -29,7 +29,7 @@ socket          = /run/mysqld/mysqld.sock
 sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
 slow_query_log = ON
 long_query_time = 3
-max_connections	=	1000
+max_connections	=	100000
 skip-name-resolve
 skip-host-cache
 user=root                 

+ 1 - 0
container/conf/web/php7/conf.d/00_zip.ini

@@ -1 +1,2 @@
 extension=zip.so
+extension=yaconf.so

+ 5 - 0
src/docker/build/spider/puppeteer/Dockerfile

@@ -0,0 +1,5 @@
+FROM browserless/chrome:1-puppeteer-19.2.2
+
+MAINTAINER Rabin "https://github.com/shemic"
+
+CMD ./start.sh

+ 10 - 1
src/docker/conf/web.conf

@@ -42,6 +42,11 @@ port = 2346:2346,1236:1236,1237:1237,1238:1238,8282:8282
 volumes = {container}web:/www,{container}conf/web/php7:/etc/php7
 alias = php,composer,pecl,apk,/install.sh->phpInstall
 
+[php7_spider]
+port = 2346:2346,1236:1236,1237:1237,1238:1238,8282:8282
+volumes = {container}web:/www,{container}conf/web/php7:/etc/php7
+alias = php,composer,pecl,apk,/install.sh->phpInstall
+
 [php7_swoole]
 volumes = {container}web:/www,{container}conf/web/php7:/etc/php7
 
@@ -93,4 +98,8 @@ environment = MONGO_INITDB_ROOT_USERNAME=dever,MONGO_INITDB_ROOT_PASSWORD=dever2
 
 [mongoclient]
 #volumes = {container}conf/db/mongodb/mongoclient:/data/db
-port = 3000:3000
+port = 3001:3000
+
+[puppeteer]
+port = 3000:3000
+environment = MAX_CONCURRENT_SESSIONS=10

+ 2 - 0
src/docker/core.conf

@@ -20,6 +20,7 @@ php5				= dev/php/v5
 php7				= dev/php/v7
 php7_swoole			= dev/php/swoole
 php7_smproxy		= dev/php/smproxy
+php7_spider         = dev/php/php7_spider
 java				= dev/java
 java_base			= java/base
 maven				= java/maven
@@ -122,6 +123,7 @@ project_lottery     = project/lottery
 xvfb_firefox		= spider/xvfb/firefox
 xvfb_chrome			= spider/xvfb/chrome
 phantomjs			= spider/phantomjs
+puppeteer           = spider/puppeteer
 
 ;office
 libreoffice			= office/libreoffice