From 220c000d5ca74fac1a68e3aed3d607bc54368f4c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 22 Sep 2024 16:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91db=20tools=20=E5=A2=9E=E5=8A=A0=20apple=20=E8=8A=AF?= =?UTF-8?q?=E7=89=87=E7=9A=84=20oracle=20=E9=95=9C=E5=83=8F=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/tools/README.md | 6 +++++- sql/tools/docker-compose.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/sql/tools/README.md b/sql/tools/README.md index 6236b16f2..94c5300a5 100644 --- a/sql/tools/README.md +++ b/sql/tools/README.md @@ -19,10 +19,14 @@ docker compose up -d mysql #### 1.2 Oracle ```Bash +## x86 版本 docker compose up -d oracle + +## MacBook Apple Silicon +docker compose up -d oracle_m1 ``` -暂不支持 MacBook Apple Silicon,因为 Oracle 官方没有提供 Apple Silicon 版本的 Docker 镜像。 +> 注意:如果使用 MacBook Apple Silicon 版本,它的 ORACLE_SID 不是 XE,而是 FREE!!! ### 1.3 PostgreSQL diff --git a/sql/tools/docker-compose.yaml b/sql/tools/docker-compose.yaml index 85623c1d9..0fa95130b 100644 --- a/sql/tools/docker-compose.yaml +++ b/sql/tools/docker-compose.yaml @@ -58,6 +58,20 @@ services: - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro + oracle_m1: + image: einslib/oracle-19c:19.3.0-ee-slim-faststart + restart: unless-stopped + environment: + ## 登录信息 SID: FREE user: system password: oracle + ORACLE_PASSWORD: oracle + ports: + - "1521:1521" + volumes: + - ../oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro + # 创建app用户: ROOT/123456@//localhost/XEPDB1 + - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro + - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro + sqlserver: image: mcr.microsoft.com/mssql/server:2017-latest restart: unless-stopped