🐳 修改 docker 配置.
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
version: '3.3'
|
version: '3.3'
|
||||||
services:
|
services:
|
||||||
orion-ops-pro:
|
orion-ops-pro:
|
||||||
# build:
|
|
||||||
# context: .
|
|
||||||
# dockerfile: docker/orion-ops-pro/Dockerfile
|
|
||||||
image: orion-ops-pro:1.0.0-beta.1
|
image: orion-ops-pro:1.0.0-beta.1
|
||||||
ports:
|
ports:
|
||||||
- 1081:80
|
- 1081:80
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ RUN \
|
|||||||
RUN apk add openjdk8
|
RUN apk add openjdk8
|
||||||
RUN rm -rf /etc/nginx/conf.d/*
|
RUN rm -rf /etc/nginx/conf.d/*
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ../../orion-ops-launch/target/orion-ops-launch.jar /app/app.jar
|
COPY ./orion-ops-launch.jar /app/app.jar
|
||||||
COPY ../../orion-ops-ui/dist /usr/share/nginx/html
|
COPY ./dist /usr/share/nginx/html
|
||||||
COPY ../../docker/orion-ops-pro/entrypoint.sh /app/entrypoint.sh
|
COPY ./entrypoint.sh /app/entrypoint.sh
|
||||||
COPY ../../docker/orion-ops-pro/nginx.conf /etc/nginx/conf.d
|
COPY ./nginx.conf /etc/nginx/conf.d
|
||||||
ENTRYPOINT [ "sh", "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "sh", "/app/entrypoint.sh" ]
|
||||||
|
|||||||
3
docker/orion-ops-pro/build.sh
Normal file
3
docker/orion-ops-pro/build.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
mv ../../orion-ops-launch/target/orion-ops-launch.jar ./
|
||||||
|
mv ../../orion-ops-ui/dist/ ./
|
||||||
|
docker build -t orion-ops-pro:1.0.0-beta.1 .
|
||||||
@@ -118,7 +118,7 @@ server {
|
|||||||
### 部署
|
### 部署
|
||||||
|
|
||||||
```
|
```
|
||||||
复制 orion-ops-pro/orion-ops-ui 到 /usr/share/nginx/html
|
复制 orion-ops-pro/orion-ops-ui/dist 到 /usr/share/nginx/html
|
||||||
复制 orion-ops-pro/orion-ops-launch/target/orion-ops-launch.jar 到 /data/orion
|
复制 orion-ops-pro/orion-ops-launch/target/orion-ops-launch.jar 到 /data/orion
|
||||||
# 启动后台服务
|
# 启动后台服务
|
||||||
nohup java -jar orion-ops-launch.jar --spring.profiles.active=prod 2>&1 &
|
nohup java -jar orion-ops-launch.jar --spring.profiles.active=prod 2>&1 &
|
||||||
|
|||||||
2
orion-ops-ui/components.d.ts
vendored
2
orion-ops-ui/components.d.ts
vendored
@@ -3,7 +3,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
// Generated by unplugin-vue-components
|
// Generated by unplugin-vue-components
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
import '@vue/runtime-core';
|
import '@vue/runtime-core'
|
||||||
|
|
||||||
export {}
|
export {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user