Skip to content

Commit bd7f3cd

Browse files
committed
Moved php ini files to etc/php/
1 parent c3e9f8f commit bd7f3cd

File tree

15 files changed

+11
-153
lines changed

15 files changed

+11
-153
lines changed

docker-env.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ FTP_PASSWORD=dev
8080
FTP_PATH=/data/ftp/
8181
#FTP_PATH=/docker/code/
8282

83-
#######################################
84-
# PHP Settings
85-
PHP_TIMEZONE=UTC
86-
8783
#######################################
8884
# Permission settings
8985
EFFECTIVE_UID=1000

docker/main/centos/conf/supervisord.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[supervisord]
22
nodaemon=true
33

4+
[unix_http_server]
5+
file = /var/tmp/supervisor.sock
6+
47
[program:php-fpm]
58
command = /sbin/php-fpm
69
autostart = true

docker/main/centos/provision/roles/php/tasks/configuration.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,20 @@
1313

1414
- name: Set development environment php.ini
1515
file:
16-
src: '/opt/docker/conf/php.development.ini'
16+
src: '/docker/etc/php/development.ini'
1717
dest: '/opt/docker/conf/php.ini'
1818
force: yes
1919
state: link
2020
when: PROVISION.CONTEXT == "development" or PROVISION.CONTEXT == ""
2121

2222
- name: Enable production environment php.ini
2323
file:
24-
src: '/opt/docker/conf/php.production.ini'
24+
src: '/docker/etc/php/production.ini'
2525
dest: '/opt/docker/conf/php.ini'
2626
force: yes
2727
state: link
2828
when: PROVISION.CONTEXT == "production"
2929

30-
- name: Configure php (docker php.ini)
31-
lineinfile:
32-
dest: /opt/docker/conf/php.ini
33-
regexp: '^{{ item.key }}[\s]*='
34-
line: '{{ item.key }} = {{ item.value }}'
35-
with_items:
36-
- { key: 'date.timezone', value: '{{ DOCKER.PHP_TIMEZONE }}' }
37-
3830
- name: Truncate log files
3931
command: 'cp /dev/null {{ item }}'
4032
with_items:

docker/main/centos/provision/variables.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ DOCKER:
3737
# Mail
3838
MAIL_GATEWAY: "{{ lookup('env','MAIL_GATEWAY') }}"
3939

40-
# PHP
41-
PHP_TIMEZONE: "{{ lookup('env','PHP_TIMEZONE') }}"
42-
4340
# DNS
4441
DNS_DOMAIN: "{{ lookup('env','DNS_DOMAIN') }}"
4542

docker/main/ubuntu-hhvm/conf/php.ini

Lines changed: 0 additions & 39 deletions
This file was deleted.

docker/main/ubuntu-hhvm/conf/supervisord.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[supervisord]
22
nodaemon=true
33

4+
[unix_http_server]
5+
file = /var/tmp/supervisor.sock
6+
47
[program:hhvm]
58
command = /usr/bin/hhvm --mode server -vServer.Type=fastcgi -vServer.Port=9000
69
user = www-data

docker/main/ubuntu-hhvm/provision/variables.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ DOCKER:
3030
# Mail
3131
MAIL_GATEWAY: "{{ lookup('env','MAIL_GATEWAY') }}"
3232

33-
# PHP
34-
PHP_TIMEZONE: "{{ lookup('env','PHP_TIMEZONE') }}"
35-
3633
# DNS
3734
DNS_DOMAIN: "{{ lookup('env','DNS_DOMAIN') }}"
3835

docker/main/ubuntu/conf/php.development.ini

Lines changed: 0 additions & 42 deletions
This file was deleted.

docker/main/ubuntu/conf/php.production.ini

Lines changed: 0 additions & 37 deletions
This file was deleted.

docker/main/ubuntu/provision/roles/php/tasks/configuration.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,20 @@
1010

1111
- name: Set development environment php.ini
1212
file:
13-
src: '/opt/docker/conf/php.development.ini'
13+
src: '/docker/etc/php/development.ini'
1414
dest: '/opt/docker/conf/php.ini'
1515
force: yes
1616
state: link
1717
when: PROVISION.CONTEXT == "development" or PROVISION.CONTEXT == ""
1818

1919
- name: Enable production environment php.ini
2020
file:
21-
src: '/opt/docker/conf/php.production.ini'
21+
src: '/docker/etc/php/production.ini'
2222
dest: '/opt/docker/conf/php.ini'
2323
force: yes
2424
state: link
2525
when: PROVISION.CONTEXT == "production"
2626

27-
- name: Configure php (docker php.ini)
28-
lineinfile:
29-
dest: /opt/docker/conf/php.ini
30-
regexp: '^{{ item.key }}[\s]*='
31-
line: '{{ item.key }} = {{ item.value }}'
32-
with_items:
33-
- { key: 'date.timezone', value: '{{ DOCKER.PHP_TIMEZONE }}' }
34-
3527
- name: Truncate log files
3628
command: 'cp /dev/null {{ item }}'
3729
with_items:

0 commit comments

Comments
 (0)