🚀Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。
文档
docker-compose.yml
在线例子
luckysheet系列

Kubernetes部署luckysheet在线表格系统1-redis
Kubernetes部署luckysheet在线表格系统2-postgresql
Kubernetes部署luckysheet在线表格系统3-java web server
Kubernetes部署luckysheet在线表格系统4-前端页面
Kubernetes部署luckysheet在线表格系统5-nginx配置

web-server:

Dockerfile luckysheet

#registry.cn-hangzhou.aliyuncs.com/mytestrepo/luckysheet:20201203
FROM registry.cn-hangzhou.aliyuncs.com/mytestrepo/java8
MAINTAINER me <me@my.com>
LABEL Description="luckysheet java webserver"
ADD luckysheet/target/*.jar /usr/local/app.jar
ENTRYPOINT exec java \
-server -Xms128m -Xmx8192m -Djava.security.egd=file:/dev/./urandom \
-jar /usr/local/app.jar \
--server.port=9004
EXPOSE 9004

Dockerfile放在项目根目录

build

mvn compile

git clone -b main https://sre:JQ_7TvxcTXCPdO7@git.sre.ink/github/LuckysheetServer.git
cd LuckysheetServer
mvn clean  compile package -DskipTests -Dmaven.compile.fork=true -Ptest

docker build

docker build -t registry.cn-hangzhou.aliyuncs.com/mytestrepo/luckysheet:20201203001 .
docker push registry.cn-hangzhou.aliyuncs.com/mytestrepo/luckysheet:20201203001

k8s

Deployment luckysheet-java

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    luckysheet: java
  name: luckysheet-java 
  namespace: sre
spec:
  replicas: 1
  selector:
    matchLabels:
      luckysheet: java
  template:
    metadata:
      labels:
        luckysheet: java
    spec:
      imagePullSecrets:
      containers:
      - name: luckysheet
        image: registry.cn-hangzhou.aliyuncs.com/mytestrepo/luckysheet:20201203001
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 9004
          name: service
          protocol: TCP

svc luckysheet-java 9004

---
kind: Service
apiVersion: v1
metadata:
  labels:
    luckysheet: java
  name: luckysheet-java
  namespace: sre
spec:
  type: NodePort
  ports:
  - name: luckysheet-java
    port: 9004
    targetPort: 9004
    nodePort: 30010
    protocol: TCP
  selector:
    luckysheet: java

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code