Skip to content

Commit 29dad93

Browse files
committed
Merge branch 'release/1.1.0'
2 parents 56f8f72 + da57b6a commit 29dad93

File tree

6 files changed

+39
-6
lines changed

6 files changed

+39
-6
lines changed

Changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.1.0 (release date: 2017-01-17)
2+
3+
* Updated nginx conf sendfile default to 'off'
4+
* Updated NVM version to 0.33.0
5+
* Updated Node.js to version 6.9.4 LTS
6+
* Added synchronise on start to the ntp daemon
7+
* Added 'www' folder and moved index.php
8+
* Added docker-compose.yml for easy setup
9+
* Update PECL channel listing
10+
111
## 1.0.3 (release date: 2016-11-22)
212

313
* Updated newrelic script path

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1212
# Nginx-PHP Installation
1313
RUN apt-get update -y && apt-get install -y wget build-essential python-software-properties git-core
1414
RUN wget -O - https://download.newrelic.com/548C16BF.gpg | apt-key add - && \
15-
echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list
15+
echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list
1616
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C
1717
RUN add-apt-repository -y ppa:ondrej/php && add-apt-repository -y ppa:nginx/stable
1818
RUN apt-get update -y && apt-get upgrade -y && apt-get install -q -y php5.6 php5.6-dev php5.6-fpm php5.6-mysqlnd \
@@ -24,6 +24,9 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install -q -y php5.6 php5
2424
# Run update timezone replace city with relevant city. eg. "Australia/Sydney"
2525
RUN cp -p /usr/share/zoneinfo/Australia/Sydney /etc/localtime
2626

27+
# Update PECL channel listing
28+
RUN pecl channel-update pecl.php.net
29+
2730
# Add build script
2831
RUN mkdir -p /root/setup
2932
ADD build/setup.sh /root/setup/setup.sh
@@ -50,7 +53,7 @@ RUN chmod +x /etc/service/ntp/run
5053

5154
# Set WWW public folder
5255
RUN mkdir -p /var/www/public
53-
ADD build/index.php /var/www/public/index.php
56+
ADD www/index.php /var/www/public/index.php
5457

5558
RUN chown -R www-data:www-data /var/www
5659
RUN chmod -R 755 /var/www
@@ -70,10 +73,11 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh
7073

7174
# Install Node Version Manager and install node specific version
7275
ENV NVM_DIR /usr/local/nvm
73-
ENV NODE_VERSION 0.12.10
76+
ENV NVM_VERSION 0.33.0
77+
ENV NODE_VERSION 6.9.4
7478

7579
# Install nvm with node and npm
76-
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash \
80+
RUN curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash \
7781
&& source $NVM_DIR/nvm.sh \
7882
&& nvm install $NODE_VERSION \
7983
&& nvm alias default $NODE_VERSION \

build/nginx.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ http {
1616

1717
access_log /var/log/nginx/access.log;
1818

19-
sendfile on;
19+
sendfile off;
2020
#tcp_nopush on;
2121

22+
# set client body size to 32M #
23+
client_max_body_size 32M;
24+
2225
#keepalive_timeout 0;
2326
keepalive_timeout 65;
2427
tcp_nodelay on;

build/ntp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
/usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -n
3+
/usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -n -s

docker-compose.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Nginx Baseimage
2+
3+
nginxphp:
4+
container_name: nginxphp
5+
build: .
6+
dockerfile: Dockerfile
7+
privileged: true
8+
ports:
9+
- "80:80"
10+
- "443:443"
11+
- "2222:22"
12+
environment:
13+
# Set xterm for terminal for 'docker exec' command colors
14+
- TERM=xterm
15+
volumes:
16+
- ./www:/var/www/public
File renamed without changes.

0 commit comments

Comments
 (0)