You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/04/23 16:20:38 UTC

[doris] 05/08: [test](fix) fix postgresql test (#18900)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-2.0-alpha
in repository https://gitbox.apache.org/repos/asf/doris.git

commit cda8b21ff1e499eff7455072fac6811bc916f69e
Author: yongkang.zhong <zh...@qq.com>
AuthorDate: Sun Apr 23 18:41:41 2023 +0800

    [test](fix) fix postgresql test (#18900)
    
    * [test](fix) fix postgresql test
    
    * fix
---
 .../postgresql/init/03-create-extension.sql            | 18 ++++++++++++++++++
 .../postgresql/init/{03-insert.sql => 04-insert.sql}   |  0
 .../docker-compose/postgresql/postgresql-14.yaml.tpl   |  2 +-
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/docker/thirdparties/docker-compose/postgresql/init/03-create-extension.sql b/docker/thirdparties/docker-compose/postgresql/init/03-create-extension.sql
new file mode 100644
index 0000000000..5237c544f8
--- /dev/null
+++ b/docker/thirdparties/docker-compose/postgresql/init/03-create-extension.sql
@@ -0,0 +1,18 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--   http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+-- KIND, either express or implied.  See the License for the
+-- specific language governing permissions and limitations
+-- under the License.
+
+CREATE EXTENSION IF NOT EXISTS postgis;
diff --git a/docker/thirdparties/docker-compose/postgresql/init/03-insert.sql b/docker/thirdparties/docker-compose/postgresql/init/04-insert.sql
similarity index 100%
rename from docker/thirdparties/docker-compose/postgresql/init/03-insert.sql
rename to docker/thirdparties/docker-compose/postgresql/init/04-insert.sql
diff --git a/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl b/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl
index bfa16e2d52..ae63c2b9bd 100644
--- a/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl
+++ b/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl
@@ -19,7 +19,7 @@ version: "2.1"
 
 services:
   doris--postgres:
-    image: postgres:14.1
+    image: postgis/postgis:14-3.3
     restart: always
     environment:
       POSTGRES_PASSWORD: 123456


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org