feat(install/bundle): change image and packages to ubuntu16.04

Change the base Docker image to ubuntu16.04 and change the LAMP
packages to support PHP7.

BREAKING CHANGE: the packages which will be installed has changed.
This commit is contained in:
ceabrobot 2017-11-25 16:53:54 +00:00 committed by Masco Skray
parent 0ec962b4af
commit 94c827e5b3
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:14.04 FROM ubuntu:16.04
MAINTAINER MascoSkray <MascoSkray@gmail.com> MAINTAINER MascoSkray <MascoSkray@gmail.com>
#Update apt and install git #Update apt and install git

View File

@ -13,10 +13,10 @@ _svn_certroot_password_=$(genRandStr 32)
getAptPackage(){ getAptPackage(){
echo -e "\n\n==> Getting environment packages" echo -e "\n\n==> Getting environment packages"
#Set MySQL root password #Set MySQL root password
debconf-set-selections <<< "mysql-server-5.6 mysql-server/root_password password $_database_password_" && debconf-set-selections <<< "mysql-server-5.6 mysql-server/root_password_again password $_database_password_" debconf-set-selections <<< "mysql-server-5.7 mysql-server/root_password password $_database_password_" && debconf-set-selections <<< "mysql-server-5.7 mysql-server/root_password_again password $_database_password_"
#Update apt sources and install #Update apt sources and install
apt-get update -y apt-get update -y
apt-get install -y vim ntp zip unzip curl wget subversion apache2 libapache2-mod-xsendfile libapache2-mod-auth-mysql php5 php5-dev php-pear php5-mysql mysql-server-5.6 cmake fp-compiler re2c libv8-dev libyaml-dev python python3 python-requests apt install -y vim ntp zip unzip curl wget subversion apache2 mysql-server mysql-client php libapache2-mod-php7.0 php7.0-mysql cmake fp-compiler re2c libv8-dev libyaml-dev python python3 python-requests
#Install PHP extensions #Install PHP extensions
echo -e "\n\n" | pecl install v8js-0.1.3 yaml-1.3.1 echo -e "\n\n" | pecl install v8js-0.1.3 yaml-1.3.1
} }