Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
fbdd0eb7
提交
fbdd0eb7
编写于
2年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 部署微服务接口 [后台服务,接口示例]
上级
f69fd163
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
25 行增加
和
8 行删除
+25
-8
config.xml
config.xml
+17
-0
Dockerfile
demo-boot/src/main/docker/Dockerfile
+1
-1
demo-boot-demoapi-k8s.yaml
demo-boot/src/main/docker/demo-boot-demoapi-k8s.yaml
+5
-5
demo-boot-demoapi.yaml
demo-boot/src/main/docker/demo-boot-demoapi.yaml
+2
-2
未找到文件。
config.xml
浏览文件 @
fbdd0eb7
...
...
@@ -55,6 +55,23 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
cd demo-boot
mvn ibizlabcli:code
cd ..
set +e
git config user.name "ibizdev"
git add .
git commit -m "generator before deploy $para5"
git push origin master
git config user.name "root"
set -e
mvn package -Pboot
cd demo-boot
sed -i "s#dstimage#$para5#g" pom.xml
sed -i "s#dstimage#$para5#g" src/main/docker/demo-boot-demoapi.yaml
mvn -Pboot docker:build
mvn -Pboot docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-boot-demoapi.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
This diff is collapsed.
Click to expand it.
demo-boot/src/main/docker/Dockerfile
浏览文件 @
fbdd0eb7
...
...
@@ -10,6 +10,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /demo-boot.jar
EXPOSE
8081
EXPOSE
52000
ADD
demo-boot.jar /demo-boot.jar
This diff is collapsed.
Click to expand it.
demo-boot/src/main/docker/demo-boot-demoapi-k8s.yaml
浏览文件 @
fbdd0eb7
...
...
@@ -22,12 +22,12 @@ spec:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/demo-boot:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
5
1
000
-
containerPort
:
5
2
000
env
:
-
name
:
SPRING_CLOUD_NACOS_DISCOVERY_IP
value
:
"
172.16.240.110"
-
name
:
SERVER_PORT
value
:
"
5
1
000"
value
:
"
5
2
000"
-
name
:
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR
value
:
"
172.16.240.110:8848"
-
name
:
SPRING_REDIS_HOST
...
...
@@ -64,9 +64,9 @@ spec:
type
:
NodePort
ports
:
-
name
:
http
port
:
5
1
000
targetPort
:
5
1
000
nodePort
:
5
1
000
port
:
5
2
000
targetPort
:
5
2
000
nodePort
:
5
2
000
protocol
:
TCP
selector
:
app
:
demo-boot
This diff is collapsed.
Click to expand it.
demo-boot/src/main/docker/demo-boot-demoapi.yaml
浏览文件 @
fbdd0eb7
...
...
@@ -3,12 +3,12 @@ services:
demo-boot
:
image
:
dstimage
ports
:
-
"
5
1000:51
000"
-
"
5
2000:52
000"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=5
1
000
-
SERVER_PORT=5
2
000
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_CLOUD_NACOS_CONFIG_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录