File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
77CMD ["/sbin/my_init" ]
88
99# Nginx-PHP Installation
10- RUN apt-get update -y && apt-get install -y vim curl wget build-essential python-software-properties git-core
10+ RUN apt-get update -y && apt-get install -y vim curl wget build-essential python-software-properties git-core ntp
1111RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C
1212RUN add-apt-repository -y ppa:ondrej/php5-5.6 && add-apt-repository -y ppa:nginx/stable && add-apt-repository ppa:chris-lea/node.js
1313RUN apt-get update -y && sudo apt-get upgrade -y && apt-get install -y php5 php5-cli php5-fpm php5-mysql php5-curl \
@@ -24,16 +24,21 @@ RUN chmod +x /root/setup/setup.sh
2424RUN (cd /root/setup/; /root/setup/setup.sh)
2525
2626# Copy files from repo
27- ADD build/default /etc/nginx/sites-available/default
27+ ADD build/default /etc/nginx/sites-available/default
2828ADD build/nginx.conf /etc/nginx/nginx.conf
2929
30- # Add all required files and folders, update permissions
30+ # Add startup scripts for services
3131ADD build/nginx.sh /etc/service/nginx/run
3232RUN chmod +x /etc/service/nginx/run
3333
3434ADD build/phpfpm.sh /etc/service/phpfpm/run
3535RUN chmod +x /etc/service/phpfpm/run
3636
37+ ADD build/ntp.sh /etc/service/ntp/run
38+ ADD build/ntp.conf /etc/ntp.conf
39+ RUN chmod +x /etc/service/ntp/run
40+
41+ # Set WWW public folder
3742RUN mkdir -p /var/www/public
3843ADD build/index.php /var/www/public/index.php
3944
Original file line number Diff line number Diff line change 1+
2+ driftfile /var/lib/ntp/drift
3+ restrict default kod nomodify notrap nopeer noquery
4+ restrict -6 default kod nomodify notrap nopeer noquery
5+ restrict 127.0.0.1
6+ restrict -6 ::1
7+
8+ #server 192.168.100.254 # your NTP server
9+
10+ server 0.au.pool.ntp.org # region releated ntp.org server
11+ server 1.au.pool.ntp.org # region releated ntp.org server
12+ server 2.au.pool.ntp.org # region releated ntp.org server
13+ server 3.au.pool.ntp.org # region releated ntp.org server
14+
15+ server au.pool.ntp.org # local authority
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ ntp
You can’t perform that action at this time.
0 commit comments