Commit f89eb52 1 parent 96cda39 commit f89eb52 Copy full SHA for f89eb52
File tree 7 files changed +37
-19
lines changed
src/UnitTest/scripts/database
7 files changed +37
-19
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,9 @@ jobs:
126
126
- name : Start Database
127
127
run : |
128
128
# 准备数据库容器
129
- export PATH=/usr/libexec/docker/cli-plugins/:$PATH
130
- docker-compose version
129
+ docker compose version
131
130
docker container ls -a
132
- bash sapi/src/UnitTest/scripts /database/start.sh
131
+ bash sapi/docker /database/start.sh
133
132
134
133
- name : Show Build Result
135
134
run : |
Original file line number Diff line number Diff line change 1
- version : " 3 "
1
+ name : " database "
2
2
services :
3
3
postgresql-server :
4
- image : postgres:16-alpine
5
- # image: postgis/postgis:16-3.4-alpine
4
+ image : postgres:17-alpine
6
5
hostname : " postgresql"
7
6
container_name : " postgresql"
8
7
ports :
Original file line number Diff line number Diff line change
1
+
2
+ [client]
3
+ default-character-set =utf8mb4
4
+ [mysql]
5
+ default-character-set =utf8mb4
6
+
7
+ [mysqld]
8
+ skip_ssl
9
+ skip-ssl-session-cache-mode
10
+
11
+ # bind-address = 0.0.0.0
12
+ bind-address = 0.0.0.0
13
+ # bind-address = ::
14
+
15
+ # 跳过密码登录
16
+ # skip-grant-tables
17
+
18
+ collation-server = utf8mb4_unicode_ci
19
+ init-connect =' SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci'
20
+ character-set-server = utf8mb4
21
+ innodb_ft_min_token_size = 1
22
+ ft_min_word_len = 1
23
+ innodb_ft_enable_stopword = OFF
24
+ ft_stopword_file = ' '
25
+
26
+
27
+
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ __DIR__=$(
8
8
9
9
cd ${__DIR__}
10
10
11
- docker- compose -f docker-compose.yaml up -d
12
- docker- compose -f docker-compose.yaml ps
11
+ docker compose -f docker-compose.yaml up -d
12
+ docker compose -f docker-compose.yaml ps
13
13
14
14
docker container ls -a
15
15
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ __DIR__=$(
8
8
9
9
cd ${__DIR__}
10
10
11
- docker- compose -f docker-compose.yaml down --remove-orphans
11
+ docker compose -f docker-compose.yaml down --remove-orphans
Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ if [ ! -f /usr/libexec/docker/cli-plugins/docker-compose ]; then
24
24
25
25
# show more version info
26
26
# https://github.com/docker/compose/releases
27
- VERSION=" v2.32.1 "
27
+ VERSION=" v2.32.4 "
28
28
29
29
curl -fsSL " https://github.com/docker/compose/releases/download/${VERSION} /docker-compose-$( uname -s) -$( uname -m) " -o /usr/local/bin/docker-compose
30
30
31
31
chmod +x /usr/local/bin/docker-compose
32
32
else
33
- export PATH=/usr/libexec/docker/cli-plugins/:$PATH
33
+ # export PATH=/usr/libexec/docker/cli-plugins/:$PATH
34
+ ln -sf /usr/libexec/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose
34
35
fi
35
36
36
37
docker-compose --version
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments