- 下载瑞士星历表,并编译
mkdir /tmp/swe
cd /tmp/swe
wget https://github.com/aloistr/swisseph/archive/refs/tags/v2.10.03.tar.gz -O swe.tar.gz
tar xvzf swe.tar.gz
cd swisseph-2.10.03
make libswe.a- 下载星历表文件
cd /tmp/swe
wget https://raw.githubusercontent.com/aloistr/swisseph/master/ephe/ephe/semo_18.se1
wget https://raw.githubusercontent.com/aloistr/swisseph/master/ephe/ephe/semom48.se1
wget https://raw.githubusercontent.com/aloistr/swisseph/master/ephe/ephe/sepl_18.se1
wget https://raw.githubusercontent.com/aloistr/swisseph/master/ephe/ephe/seplm48.se1- 单元测试
RUSTFLAGS=-L/tmp/swe/src cargo test- swagger: 启用 swagger,访问地址:http://localhost:8080/swagger-ui/
- cors: 启用跨域
ephe_path=/tmp/swe RUSTFLAGS=-L/tmp/swe/src cargo run --features swagger,cors运行 ui 需要 Node.js,请先安装 Node.js>=v18.17.1
npm install -g @ionic/cli
cd ui
ionic serve- api
cd api
docker build -t ziwei/api .- ui
docker build -t ziwei/ui .http 访问,cert-manager.io/cluster-issuer 注解可以不用设置。
如果启用 https 访问,将 ingress.tls 设置为 true,
helm install ziwei chart \
--namespace ziwei \
--create-namespace \
--set ingress.enabled=true \
--set ingress.className=nginx \
--set ingress.hostname=your_hostname \
--set ingress.tls=false \
--set ingress.annotations."cert-manager\.io/cluster-issuer"=your_issuer