You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gu...@apache.org on 2020/04/15 08:48:51 UTC
[pulsar] 02/03: [Issue 6274][Test] Fixed integration Pulsar SQL
test failed (#6279)
This is an automated email from the ASF dual-hosted git repository.
guangning pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit a5585a1d801cf948cdaafa0a47d2c57bbcb03e64
Author: Guangning <gu...@apache.org>
AuthorDate: Mon Feb 10 07:00:58 2020 +0800
[Issue 6274][Test] Fixed integration Pulsar SQL test failed (#6279)
* Delete no use docker image
* Add get docker images for delete docker images
* Add command for get space size
* Add delete docker images
* Fixed error
* Upgrade postgresql from version 9.6 to 11
* Delete no used image first
* Fixed delete image
* Fixed docker images order
* Add maven install step
* Add option docker.nocache=true
* Fixed correct docker image
* Fixed integration test failed
* Delete debug info
(cherry picked from commit 04ed23c019eec7e15dccc780bf6ee8e2e987cb24)
Fixed maven download
---
dashboard/Dockerfile | 2 +-
dashboard/conf/postgresql.conf | 8 ++++----
dashboard/init-postgres.sh | 2 +-
docker/pulsar-standalone/Dockerfile | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dashboard/Dockerfile b/dashboard/Dockerfile
index b9fa47c..7388481 100644
--- a/dashboard/Dockerfile
+++ b/dashboard/Dockerfile
@@ -25,7 +25,7 @@ RUN apt-get update
RUN apt-get -y install postgresql python sudo nginx supervisor
# Postgres configuration
-COPY conf/postgresql.conf /etc/postgresql/9.6/main/
+COPY conf/postgresql.conf /etc/postgresql/11/main/
# Configure nginx and supervisor
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
diff --git a/dashboard/conf/postgresql.conf b/dashboard/conf/postgresql.conf
index aabad0d..85dfe1b 100644
--- a/dashboard/conf/postgresql.conf
+++ b/dashboard/conf/postgresql.conf
@@ -24,15 +24,15 @@ synchronous_commit = off
# Default configs
data_directory = '/data'
-hba_file = '/etc/postgresql/9.6/main/pg_hba.conf'
-ident_file = '/etc/postgresql/9.6/main/pg_ident.conf'
-external_pid_file = '/var/run/postgresql/9.6-main.pid'
+hba_file = '/etc/postgresql/11/main/pg_hba.conf'
+ident_file = '/etc/postgresql/11/main/pg_ident.conf'
+external_pid_file = '/var/run/postgresql/11-main.pid'
port = 5432
max_connections = 100
datestyle = 'iso, mdy'
default_text_search_config = 'pg_catalog.english'
-stats_temp_directory = '/var/run/postgresql/9.6-main.pg_stat_tmp'
+stats_temp_directory = '/var/run/postgresql/11-main.pg_stat_tmp'
timezone = 'UTC'
log_timezone = 'UTC'
diff --git a/dashboard/init-postgres.sh b/dashboard/init-postgres.sh
index 064b7e3..5f4c627 100755
--- a/dashboard/init-postgres.sh
+++ b/dashboard/init-postgres.sh
@@ -23,7 +23,7 @@ set -x -e
rm -rf /data/*
chown -R postgres: /data
chmod 700 /data
-sudo -u postgres /usr/lib/postgresql/9.6/bin/initdb /data/
+sudo -u postgres /usr/lib/postgresql/11/bin/initdb /data/
sudo -u postgres /etc/init.d/postgresql start
sudo -u postgres psql --command "CREATE USER docker WITH PASSWORD 'docker';"
sudo -u postgres createdb -O docker pulsar_dashboard
diff --git a/docker/pulsar-standalone/Dockerfile b/docker/pulsar-standalone/Dockerfile
index 076d356..092e5cf 100644
--- a/docker/pulsar-standalone/Dockerfile
+++ b/docker/pulsar-standalone/Dockerfile
@@ -37,13 +37,13 @@ COPY --from=dashboard /pulsar/conf/* /pulsar/conf/
# Note that the libpq-dev package is needed here in order to install
# the required python psycopg2 package (for postgresql) later
RUN apt-get update
-RUN apt-get -y install python2.7 python-pip postgresql-9.6 sudo nginx supervisor libpq-dev
+RUN apt-get -y install python2.7 python-pip postgresql sudo nginx supervisor libpq-dev
# Python dependencies
RUN pip2 install -r /pulsar/django/requirements.txt
# Postgres configuration
-COPY --from=dashboard /etc/postgresql/9.6/main/postgresql.conf /etc/postgresql/9.6/main/postgresql.conf
+COPY --from=dashboard /etc/postgresql/11/main/postgresql.conf /etc/postgresql/11/main/postgresql.conf
# Configure supervisor
COPY --from=dashboard /etc/supervisor/conf.d/supervisor-app.conf /etc/supervisor/conf.d/supervisor-app.conf