[2025-01-11] 添加Nacos安装及SSO接入指南

This commit is contained in:
liuxiaohua 2025-01-11 15:46:00 +08:00
parent ac9b62262a
commit b36e067e11
2 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ jobs:
# url 替换
sed -i -E 's/(.*\!\[.*\]\([ \t]*(http(s)?:\/\/)([^:\r\n\t\!]*(\.[a-zA-Z]+)?)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1<!-- width=750 -->/g' $temp_path
# 不支持的代码块替换
sed -i -E 's/(.*)(```(dockerfile|json|toml))(.*)/\1```shell\4/g' $temp_path
sed -i -E 's/(.*)(```(dockerfile|json|toml|properties))(.*)/\1```shell\4/g' $temp_path
# 标题添加锚点
sed -i -E 's/([#]+[ ]+)(.*)/\1\2 :anchor(\2):/g' $temp_path
sed -i -E "s@(\[.*\])(\(#)(.*)(\))@\1\2id-$(echo $temp_filename | tr -d '-')-\3\4@g" $temp_path

View File

@ -110,7 +110,7 @@ wget -O /usr/local/nacos/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.r
FROM centos:7.9.2009
MAINTAINER pader "test@test.com"
# set environment
#- set environment
ENV MODE="cluster" \
PREFER_HOST_MODE="ip"\
BASE_DIR="/home/nacos" \
@ -140,7 +140,7 @@ RUN set -x \
&& yum update -y \
&& yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel wget iputils nc vim libcurl
# RUN wget https://github.com/alibaba/nacos/releases/download/${NACOS_VERSION}${HOT_FIX_FLAG}/nacos-server-${NACOS_VERSION}.tar.gz -P /home
#- RUN wget https://github.com/alibaba/nacos/releases/download/${NACOS_VERSION}${HOT_FIX_FLAG}/nacos-server-${NACOS_VERSION}.tar.gz -P /home
COPY ./nacos-server-${NACOS_VERSION}.tar.gz /home/
@ -155,7 +155,7 @@ ADD bin/docker-startup.sh bin/docker-startup.sh
ADD conf/application.properties conf/application.properties
# set startup log dir
#- set startup log dir
RUN mkdir -p logs \
&& cd logs \
&& touch start.out \