/
chef.yml
137 lines (136 loc) · 7.05 KB
/
chef.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
id: 'magentocommerce'
deployers:
# App is the artifact itself, other deployers
# depend on this one!
app:
type: 'app'
iis:
type: 'iis'
pools:
default:
Enable32BitAppOnWin64: true
AutoStart: true
ManagedPipelineMode: Integrated
StartMode: AlwaysRunning
ManagedRuntimeVersion: ''
mounts:
root:
root: true
path: '/'
bindings:
local:
# Binding will be mounted through HOSTS file
# automatically when using interface = 'local'
hostname: 'local.magentocommerce.com'
port: 80
interface: 'local'
php:
type: 'php'
runtime:
- {type: 'dl', uri: 'http://windows.php.net/downloads/releases/archives/php-7.0.23-nts-Win32-VC14-x64.zip', maps: {'*' : 'php/'}}
- {type: 'dl', uri: 'http://windows.php.net/downloads/pecl/releases/xdebug/2.5.5/php_xdebug-2.5.5-7.0-nts-vc14-x64.zip', maps: {'php_xdebug.dll':'php/ext/php_xdebug.dll'}}
- {type: 'dl', uri: 'https://ci.appveyor.com/api/buildjobs/7b47bfc24eynberd/artifacts/x64%2FRelease%2Fphp_tideways.dll' , maps: {'x64%2FRelease%2Fphp_tideways.dll':'php/ext/php_tideways.dll'}}
- {type: 'dl', uri: 'http://windows.php.net/downloads/pecl/releases/igbinary/2.0.1/php_igbinary-2.0.1-7.0-nts-vc14-x64.zip', maps: {'php_igbinary.dll': 'php/ext/php_igbinary.dll'}}
- {type: 'dl', uri: 'http://windows.php.net/downloads/pecl/releases/wincache/2.0.0.8/php_wincache-2.0.0.8-7.0-nts-vc14-x64.zip', maps: {'php_wincache.dll': 'php/ext/php_wincache.dll'}}
# CERTIFICATES
- {type: 'dl', uri: 'http://curl.haxx.se/ca/cacert.pem', maps: {'cacert.pem': '/cacert.pem'}}
- {type: 'file', 'action':'copy', 'source':'php/php.ini-production', 'destination':'php/php.ini'}
- {type: 'ini', 'key':curl.cainfo, 'value':'%RUNTIME%/cacert.pem'}
- {type: 'ini', 'key':openssl.cafile, 'value':'%RUNTIME%/cacert.pem'}
# EXTENSION DIR
- {type: 'ini', 'key':extension_dir, 'value':'%RUNTIME%/php/ext'}
# EXTENSION SETTINGS
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_intl.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_bz2.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_curl.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_enchant.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_exif.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_fileinfo.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_gettext.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_gd2.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_mbstring.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_openssl.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_soap.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_xmlrpc.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_wincache.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_pdo_mysql.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_xsl.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_igbinary.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_tideways.dll}
- {type: 'ini', multivalue: true, 'key':extension, 'value':php_com_dotnet.dll}
- {type: 'ini', multivalue: true, 'key':zend_extension, 'value':php_opcache.dll}
# MYSQL
- {type: 'ini', 'key':pdo_mysql.cache_size, 'value':2000}
- {type: 'ini', 'key':mysql.allow_persistent, 'value':On}
# RUNTIME DIRECTORIES
- {type: 'ini', 'key':error_log, 'value':'%LOG%/php_error_%DEPLOYMENTID%.log', ensureDir: 'file'}
- {type: 'ini', 'key':upload_tmp_dir, 'value':'%TEMP%/upload_temp_dir', ensureDir: 'dir'}
- {type: 'ini', 'key':session.save_path, 'value':'%TEMP%/session_save_path/', ensureDir: 'file'}
- {type: 'ini', 'key':date.timezone, 'value':'Europe/Madrid'}
# WINCACHE...
- {type: 'ini', 'key':wincache.fcenabled, 'value': 0}
- {type: 'ini', 'key':wincache.ucenabled, 'value': 1}
- {type: 'ini', 'key':wincache.fcachesize , 'value': 8}
- {type: 'ini', 'key':wincache.maxfilesize, 'value': 3000}
- {type: 'ini', 'key':wincache.ucachesize , 'value': 128}
- {type: 'ini', 'key':wincache.scachesize , 'value': 16}
- {type: 'ini', 'key':wincache.reroute_enabled , 'value': 0}
- {type: 'ini', 'key':wincache.filemapdir , 'value':'%RUNTIME%/wincache_filemap', ensureDir: 'dir'}
- {type: 'ini', 'key':wincache.enablecli , 'value':'On'}
# TIDEWAYS
- {type: 'ini','key':tideways.api_key , 'value': 'xxx'}
- {type: 'ini','key':tideways.auto_prepend_library , 'value': 0}
- {type: 'ini','key':tideways.connection , 'value': 'tcp://127.0.0.1:8136'}
- {type: 'ini','key':tideways.sample_rate , 'value': 10}
- {type: 'ini','key':tideways.auto_start , 'value': 1}
# GENERIC
- {type: 'ini','key':fastcgi.impersonate , 'value': 1}
- {type: 'ini','key':cgi.fix_pathinfo , 'value': 1}
- {type: 'ini','key':cgi.force_redirect , 'value': 0}
- {type: 'ini','key':fastcgi.logging , 'value': 0}
- {type: 'ini','key':realpath_cache_size , 'value': '5M'}
- {type: 'ini','key':realpath_cache_ttl , 'value': 1800}
- {type: 'ini','key':max_input_vars , 'value': 6000}
- {type: 'ini','key':memory_limit , 'value': 2048M}
- {type: 'ini','key':max_input_vars , 'value': 6000}
- {type: 'ini','key':max_execution_time , 'value': 600}
- {type: 'ini','key':upload_max_filesize , 'value': 32M}
- {type: 'ini','key':post_max_size , 'value': 32M}
# OPCACHE
- {type: 'ini','key':opcache.enable , 'value': 1}
- {type: 'ini','key':opcache.memory_consumption , 'value': 256}
- {type: 'ini','key':opcache.max_accelerated_files , 'value': 25000}
- {type: 'ini','key':opcache.revalidate_freq , 'value': 2}
- {type: 'ini','key':opcache.interned_strings_buffer , 'value': 16}
- {type: 'ini','key':opcache.validate_timestamps , 'value': 1}
- {type: 'ini','key':opcache.enable_cli , 'value': 1}
- {type: 'ini','key':opcache.file_cache_only , 'value': 0}
- {type: 'ini','key':opcache.file_cache , 'value':'%RUNTIME%/opcache_filecache', ensureDir: 'dir'}
services:
contents:
type: 'disk'
mounts:
var:
path: 'var'
mountpath: 'var'
persist_on_deploy: true
pub_static:
path: 'pub_static'
mountpath: 'pub/static'
persist_on_deploy: true
pub_media:
path: 'pub_media'
mountpath: 'pub/media'
persist_on_deploy: true
app_etc:
path: 'app_etc'
mountpath: 'app/etc'
persist_on_deploy: true
app_config_sandbox:
path: 'app_config_sandbox'
mountpath: 'app/config_sandbox'
persist_on_deploy: true
cron:
type: 'scheduler'
commands: ['php bin\magento cron:run', 'php bin\magento setup:cron:run', 'php update\cron.php']
frequency: 5