mirror of
https://github.com/chillzhuang/Sword
synced 2024-11-25 03:39:27 +08:00
🎉 3.0.3.RELEASE 新增 kuboard-k8s 脚本一键部署方案
This commit is contained in:
parent
7f0b6b3d2f
commit
cd392bce3b
15
Dockerfile
15
Dockerfile
@ -1,12 +1,11 @@
|
|||||||
FROM circleci/node:latest-browsers
|
FROM nginx:stable-alpine-perl
|
||||||
|
|
||||||
WORKDIR /usr/src/app/
|
RUN rm -f /etc/nginx/nginx.conf \
|
||||||
USER root
|
&& rm -f /etc/nginx/conf.d/default.conf
|
||||||
COPY package.json ./
|
COPY docker/nginx.k8s.conf /etc/nginx/nginx.conf
|
||||||
RUN yarn
|
|
||||||
|
|
||||||
COPY ./ ./
|
EXPOSE 80
|
||||||
|
|
||||||
RUN npm run test:all
|
COPY ./dist /usr/share/nginx/html
|
||||||
|
|
||||||
CMD ["npm", "run", "build"]
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||||
|
13
README.md
13
README.md
@ -1,5 +1,5 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/Release-V3.0.2-green.svg" alt="Downloads">
|
<img src="https://img.shields.io/badge/Release-V3.0.3-green.svg" alt="Downloads">
|
||||||
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status">
|
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status">
|
||||||
<img src="https://img.shields.io/badge/license-Apache%202-blue.svg" alt="Build Status">
|
<img src="https://img.shields.io/badge/license-Apache%202-blue.svg" alt="Build Status">
|
||||||
<img src="https://img.shields.io/badge/Spring%20Cloud-2020-blue.svg" alt="Coverage Status">
|
<img src="https://img.shields.io/badge/Spring%20Cloud-2020-blue.svg" alt="Coverage Status">
|
||||||
@ -28,6 +28,9 @@
|
|||||||
## 架构图
|
## 架构图
|
||||||
<img src="https://gitee.com/smallc/SpringBlade/raw/master/pic/springblade-framework.png"/>
|
<img src="https://gitee.com/smallc/SpringBlade/raw/master/pic/springblade-framework.png"/>
|
||||||
|
|
||||||
|
## 趋势图
|
||||||
|
<a href="https://whnb.wang/smallc/SpringBlade" rel="nofollow"><img src="https://whnb.wang/img/smallc/SpringBlade" alt="Stargazers over time"></a>
|
||||||
|
|
||||||
## 工程结构
|
## 工程结构
|
||||||
```
|
```
|
||||||
SpringBlade
|
SpringBlade
|
||||||
@ -60,7 +63,8 @@ SpringBlade
|
|||||||
* 交流二群:`751253339`(满)
|
* 交流二群:`751253339`(满)
|
||||||
* 交流三群:`784729540`(满)
|
* 交流三群:`784729540`(满)
|
||||||
* 交流四群:`1034621754`(满)
|
* 交流四群:`1034621754`(满)
|
||||||
* 交流五群:`946350912`
|
* 交流五群:`946350912`(满)
|
||||||
|
* 交流六群:`511624269`
|
||||||
|
|
||||||
## 在线演示
|
## 在线演示
|
||||||
* Saber-基于Vue:[https://saber.bladex.vip](https://saber.bladex.vip)
|
* Saber-基于Vue:[https://saber.bladex.vip](https://saber.bladex.vip)
|
||||||
@ -69,8 +73,9 @@ SpringBlade
|
|||||||
* Caster-数据大屏展示系统:[https://data.avuejs.com](https://data.avuejs.com)
|
* Caster-数据大屏展示系统:[https://data.avuejs.com](https://data.avuejs.com)
|
||||||
|
|
||||||
## 技术文档
|
## 技术文档
|
||||||
* [开发手册一览](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册)
|
* [SpringBlade常见问题集锦](https://sns.bladex.vip/article-14966.html)
|
||||||
* [常见问题集锦](https://sns.bladex.vip/article-14966.html)
|
* [SpringBlade开发手册一览](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册)
|
||||||
|
* [SpringBlade基于Kuboard部署K8S](https://kuboard.cn/learning/k8s-practice/spring-blade/)
|
||||||
|
|
||||||
## 项目地址
|
## 项目地址
|
||||||
* 后端Gitee地址:[https://gitee.com/smallc/SpringBlade](https://gitee.com/smallc/SpringBlade)
|
* 后端Gitee地址:[https://gitee.com/smallc/SpringBlade](https://gitee.com/smallc/SpringBlade)
|
||||||
|
58
docker/nginx.k8s.conf
Normal file
58
docker/nginx.k8s.conf
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
|
||||||
|
user root;
|
||||||
|
worker_processes 1;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/error.log warn;
|
||||||
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
http {
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
#gzip on;
|
||||||
|
|
||||||
|
#include /etc/nginx/conf.d/*.conf;
|
||||||
|
|
||||||
|
upstream gateway {
|
||||||
|
server blade-gateway;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name web;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~/api {
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_buffering off;
|
||||||
|
rewrite ^/api/(.*)$ /$1 break;
|
||||||
|
proxy_pass http://gateway;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sword",
|
"name": "sword",
|
||||||
"version": "3.0.2",
|
"version": "3.0.3",
|
||||||
"description": "An out-of-box UI solution for enterprise applications",
|
"description": "An out-of-box UI solution for enterprise applications",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -20,14 +20,14 @@ class Workplace extends PureComponent {
|
|||||||
<Row gutter={24}>
|
<Row gutter={24}>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<div style={{ textAlign: 'center' }}>
|
<div style={{ textAlign: 'center' }}>
|
||||||
<img src="https://img.shields.io/badge/Release-V3.0.0-green.svg" alt="Downloads" />
|
<img src="https://img.shields.io/badge/Release-V3.0.3-green.svg" alt="Downloads" />
|
||||||
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status" />
|
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status" />
|
||||||
<img
|
<img
|
||||||
src="https://img.shields.io/badge/Spring%20Cloud-2020-blue.svg"
|
src="https://img.shields.io/badge/Spring%20Cloud-2020-blue.svg"
|
||||||
alt="Coverage Status"
|
alt="Coverage Status"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
src="https://img.shields.io/badge/Spring%20Boot-2.4.1.RELEASE-blue.svg"
|
src="https://img.shields.io/badge/Spring%20Boot-2.4.4.RELEASE-blue.svg"
|
||||||
alt="Downloads"
|
alt="Downloads"
|
||||||
/>
|
/>
|
||||||
<a href="https://bladex.vip">
|
<a href="https://bladex.vip">
|
||||||
@ -212,7 +212,16 @@ class Workplace extends PureComponent {
|
|||||||
</Row>
|
</Row>
|
||||||
<Row gutter={24}>
|
<Row gutter={24}>
|
||||||
<Card className={styles.card} bordered={false}>
|
<Card className={styles.card} bordered={false}>
|
||||||
<Collapse bordered={false} defaultActiveKey={['24']}>
|
<Collapse bordered={false} defaultActiveKey={['25']}>
|
||||||
|
<Panel header="3.0.3发布 新增kuboard-k8s脚本一键部署方案" key="25">
|
||||||
|
<div>1.新增blade-develop的dockerfile</div>
|
||||||
|
<div>2.新增blade-develop推送docker配置</div>
|
||||||
|
<div>3.新增saber的dockerfile</div>
|
||||||
|
<div>4.新增kuboard k8s部署脚本</div>
|
||||||
|
<div>5.新增kuboard k8s部署方案</div>
|
||||||
|
<div>6.优化pom配置适配新版部署方案</div>
|
||||||
|
<div>7.优化swagger加载逻辑默认开启knife4j</div>
|
||||||
|
</Panel>
|
||||||
<Panel header="3.0.2.发布 支持Nacos2.0长链接特性" key="24">
|
<Panel header="3.0.2.发布 支持Nacos2.0长链接特性" key="24">
|
||||||
<div>1.升级 SpringBoot 至 2.4.4</div>
|
<div>1.升级 SpringBoot 至 2.4.4</div>
|
||||||
<div>2.升级 SpringCloud 至 2020.0.2</div>
|
<div>2.升级 SpringCloud 至 2020.0.2</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user