From 25e8c71943bb0f7635d97288d5e765f00a2932e2 Mon Sep 17 00:00:00 2001 From: "yongkang.zhong" Date: Sun, 23 Apr 2023 18:41:41 +0800 Subject: [PATCH] [test](fix) fix postgresql test (#18900) * [test](fix) fix postgresql test * fix --- .../postgresql/init/03-create-extension.sql | 18 ++++++++++++++++++ .../init/{03-insert.sql => 04-insert.sql} | 0 .../postgresql/postgresql-14.yaml.tpl | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docker/thirdparties/docker-compose/postgresql/init/03-create-extension.sql rename docker/thirdparties/docker-compose/postgresql/init/{03-insert.sql => 04-insert.sql} (100%) 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