Browse Source

Installs databases quietly (#3647)

Joan Miquel 7 years ago
parent
commit
f2abbfb059

+ 2 - 2
toolset/databases/mongodb/mongodb.dockerfile

@@ -4,8 +4,8 @@ COPY ./ ./
 
 RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
 RUN echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list
-RUN apt -y update
-RUN apt -y install mongodb-org
+RUN apt-get -y update > /dev/null
+RUN apt-get -y install mongodb-org > /dev/null
 
 RUN mkdir -p /data/db
 RUN chmod 777 /data/db

+ 4 - 4
toolset/databases/mysql/mysql.dockerfile

@@ -1,7 +1,7 @@
 FROM ubuntu:16.04
 
-RUN apt update
-RUN apt install -yqq locales
+RUN apt-get update > /dev/null
+RUN apt-get install -yqq locales > /dev/null
 
 RUN locale-gen en_US.UTF-8
 ENV LANG en_US.UTF-8
@@ -14,11 +14,11 @@ ADD mysql.list mysql.list
 
 RUN cp mysql.list /etc/apt/sources.list.d/
 RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5
-RUN apt update
+RUN apt-get update > /dev/null
 RUN ["/bin/bash", "-c", "debconf-set-selections <<< \"mysql-community-server mysql-community-server/data-dir select 'Y'\""]
 RUN ["/bin/bash", "-c", "debconf-set-selections <<< \"mysql-community-server mysql-community-server/root-pass password secret\""]
 RUN ["/bin/bash", "-c", "debconf-set-selections <<< \"mysql-community-server mysql-community-server/re-root-pass password secret\""]
-RUN DEBIAN_FRONTEND=noninteractive apt -y install mysql-server
+RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-server > /dev/null
 
 RUN mv /etc/mysql/my.cnf /etc/mysql/my.cnf.orig
 RUN cp my.cnf /etc/mysql/my.cnf

+ 4 - 4
toolset/databases/postgres/postgres.dockerfile

@@ -1,7 +1,7 @@
 FROM ubuntu:16.04
 
-RUN apt update
-RUN apt install -yqq locales
+RUN apt-get update > /dev/null
+RUN apt-get install -yqq locales > /dev/null
 
 RUN locale-gen en_US.UTF-8
 ENV LANG en_US.UTF-8
@@ -15,8 +15,8 @@ ADD create-postgres-database.sql create-postgres-database.sql
 ADD create-postgres.sql create-postgres.sql
 
 # install postgresql on database machine
-RUN apt -y update
-RUN apt -y install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" postgresql
+RUN apt-get -y update > /dev/null
+RUN apt-get -y install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" postgresql > /dev/null
 
 ENV PG_VERSION 9.5