Skip to content

Commit

Permalink
feat: 更新依赖。
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyulei committed Nov 19, 2024
1 parent a463c8f commit 0049928
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 83 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
FROM node:14.18-alpine as web
FROM node:22.11.0-alpine3.20 as web

WORKDIR /opt/workflow

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk update && \
apk add --no-cache git && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/* $HOME/.cache
RUN git clone https://gitee.com/yllan/ferry_web.git
RUN git clone https://github.com/lanyulei/ferry_web

WORKDIR ferry_web

RUN npm install -g cnpm --registry=https://registry.npmmirror.com
RUN npm uninstall node-sass && npm i -D sass --registry=https://registry.npmmirror.com
RUN cnpm install
RUN npm install -g pnpm --registry=https://registry.npmmirror.com
RUN export NODE_OPTIONS=--openssl-legacy-provider && pnpm install
RUN echo $'# just a flag\n\
ENV = \'production\'\n\n\
# base api\n\
VUE_APP_BASE_API = \'\''\
> .env.production
RUN npm run build:prod
RUN export NODE_OPTIONS=--openssl-legacy-provider && pnpm run build:prod

FROM golang:1.18 AS build
FROM golang:1.22-alpine3.20 AS build

WORKDIR /opt/workflow/ferry
COPY . .
ARG GOPROXY="https://goproxy.cn"
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .

FROM alpine AS prod
FROM alpine:3.20.3 AS prod

MAINTAINER lanyulei

Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

## 基于Gin + Vue + Element UI前后端分离的工单系统

新版工单演示地址(非开源):[http://fdevops.com:8000](http://fdevops.com:8000)
新版工单演示地址(非开源):[http://123.56.102.227/](http://123.56.102.227/)

账号密码:lanyulei / lanyulei

Expand All @@ -33,14 +33,18 @@

基于casbin的RBAC权限控制,借鉴了go-admin项目的前端权限管理,可以在页面对API、菜单、页面按钮等操作,进行灵活且简单的配置。

演示demo: [http://fdevops.com:8001/#/dashboard](http://fdevops.com:8001/#/dashboard)
[//]: # (演示demo: [http://fdevops.com:8001/#/dashboard](http://fdevops.com:8001/#/dashboard))

```
账号:admin
密码:123456
[//]: # (```)

演示demo登陆需要取消ldap验证,就是登陆页面取消ldap的打勾。
```
[//]: # (账号:admin)

[//]: # (密码:123456)

[//]: # ()
[//]: # (演示demo登陆需要取消ldap验证,就是登陆页面取消ldap的打勾。)

[//]: # (```)

文档: [https://www.fdevops.com/docs/ferry](https://www.fdevops.com/docs/ferry-tutorial-document/introduction)

Expand Down Expand Up @@ -158,4 +162,4 @@ QQ群 5:734794540

[MIT](https://github.com/lanyulei/ferry/blob/master/LICENSE)

Copyright (c) 2022 lanyulei
Copyright (c) 2024 lanyulei
128 changes: 64 additions & 64 deletions config/settings.dev.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
script:
path: ./static/scripts
path: ./static/scripts
settings:
application:
domain: localhost:8002
host: 0.0.0.0
ishttps: false
mode: dev
name: ferry-test
port: "8002"
readtimeout: 1
writertimeout: 2
database:
dbtype: mysql
host: 127.0.0.1
name: ferry
password: 123456
port: 3306
username: root
dingtalk:
agentid: 1234567890
appkey: your dingtalk appkey
appsecret: your dingtalk appsecret
enable: false
domain:
gethost: 1
url: localhost:9527
email:
alias: ferry
host: smtp.163.com
pass: your password
port: 465
user: [email protected]
gorm:
logmode: 0
maxidleconn: 0
maxopenconn: 20000
jwt:
secret: ferry
timeout: 86400
ldap:
anonymousquery: 0
basedn: dc=fdevops,dc=com
bindpwd: 123456
binduserdn: cn=admin,dc=fdevops,dc=com
host: localhost
port: 389
tls: 0
userfield: uid
log:
compress: 1
consolestdout: 1
filestdout: 0
level: debug
localtime: 1
maxage: 30
maxbackups: 300
maxsize: 10240
path: ./logs/ferry.log
public:
islocation: 0
redis:
url: redis://:123456@127.0.0.1:6379
ssl:
key: keystring
pem: temp/pem.pem
application:
domain: localhost:8002
host: 0.0.0.0
ishttps: false
mode: dev
name: ferry-test
port: "8002"
readtimeout: 1
writertimeout: 2
database:
dbtype: mysql
host: 192.168.31.94
name: ferry
password: 123456
port: 3306
username: root
dingtalk:
agentid: 1234567890
appkey: your dingtalk appkey
appsecret: your dingtalk appsecret
enable: false
domain:
gethost: 1
url: localhost:9527
email:
alias: ferry
host: smtp.163.com
pass: your password
port: 465
user: [email protected]
gorm:
logmode: 0
maxidleconn: 0
maxopenconn: 20000
jwt:
secret: ferry
timeout: 86400
ldap:
anonymousquery: 0
basedn: dc=fdevops,dc=com
bindpwd: 123456
binduserdn: cn=admin,dc=fdevops,dc=com
host: localhost
port: 389
tls: 0
userfield: uid
log:
compress: 1
consolestdout: 1
filestdout: 0
level: debug
localtime: 1
maxage: 30
maxbackups: 300
maxsize: 10240
path: ./logs/ferry.log
public:
islocation: 0
redis:
url: redis://:123456@192.168.31.94:6379
ssl:
key: keystring
pem: temp/pem.pem
4 changes: 2 additions & 2 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ env:

ferry:
image:
repository: beatrueman/ferry
tag: "1.0.0"
repository: lanyulei/ferry
tag: "1.0.9"
pullPolicy: IfNotPresent

service:
Expand Down

0 comments on commit 0049928

Please sign in to comment.