Skip to content

Commit

Permalink
该进 测试数据库 启动配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 25, 2025
1 parent e655263 commit 48f25d0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
export PATH=/usr/libexec/docker/cli-plugins/:$PATH
docker-compose version
docker container ls -a
bash sapi/src/UnitTest/scripts/database/start.sh
bash sapi/docker/database/start.sh
- name: Show Build Result
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
postgresql-server:
image: postgres:16-alpine
image: postgres:17-alpine
# image: postgis/postgis:16-3.4-alpine
hostname: "postgresql"
container_name: "postgresql"
Expand Down
27 changes: 27 additions & 0 deletions sapi/docker/database/my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4

[mysqld]
skip_ssl
skip-ssl-session-cache-mode

# bind-address = 0.0.0.0
bind-address = 0.0.0.0
# bind-address = ::

# 跳过密码登录
# skip-grant-tables

collation-server = utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci'
character-set-server = utf8mb4
innodb_ft_min_token_size = 1
ft_min_word_len = 1
innodb_ft_enable_stopword = OFF
ft_stopword_file = ''



File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions sapi/quickstart/linux/install-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ if [ ! -f /usr/libexec/docker/cli-plugins/docker-compose ]; then

# show more version info
# https://github.com/docker/compose/releases
VERSION="v2.32.1"
VERSION="v2.32.4"

curl -fsSL "https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose
else
export PATH=/usr/libexec/docker/cli-plugins/:$PATH
# export PATH=/usr/libexec/docker/cli-plugins/:$PATH
ln -sf /usr/libexec/docker/cli-plugins/docker-compose usr/local/bin/docker-compose
fi

docker-compose --version
8 changes: 0 additions & 8 deletions sapi/src/UnitTest/scripts/database/my.cnf

This file was deleted.

0 comments on commit 48f25d0

Please sign in to comment.