mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:48:41 +00:00
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:
parent
0ec962b4af
commit
94c827e5b3
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:14.04
|
||||
FROM ubuntu:16.04
|
||||
MAINTAINER MascoSkray <MascoSkray@gmail.com>
|
||||
|
||||
#Update apt and install git
|
||||
|
@ -13,10 +13,10 @@ _svn_certroot_password_=$(genRandStr 32)
|
||||
getAptPackage(){
|
||||
echo -e "\n\n==> Getting environment packages"
|
||||
#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
|
||||
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-get update -y
|
||||
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
|
||||
echo -e "\n\n" | pecl install v8js-0.1.3 yaml-1.3.1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user