- 下载瑞士星历表,并编译
mkdir /tmp/swe
cd /tmp/swe
wget https://www.astro.com/ftp/swisseph/swe_unix_src_2.10.02.tar.gz
tar xvzf swe_unix_src_2.10.02.tar.gz
cd swe
make libswe.so
- 下载瑞士星历表文件
wget https://www.astro.com/ftp/swisseph/ephe/semo_18.se1
wget https://www.astro.com/ftp/swisseph/ephe/semom48.se1
wget https://www.astro.com/ftp/swisseph/ephe/sepl_18.se1
wget https://www.astro.com/ftp/swisseph/ephe/seplm48.se1
- 单元测试
./test.sh `pwd` /tmp/swe/src
data='{"year":2022, "month":7,"day":8,"yue_jiang":"", "divination_time":"寅","diurnal":true, "year_of_birth":2000, "masculine":true}'
curl -X POST -D - --data $data -H "Content-Type: application/json" 127.0.0.1/api/daliuren
echo VUE_APP_API_URI=http(s)://your_host/api > ui/.env.production.local
make images
http访问,cert-manager.io/cluster-issuer 注解可以不用设置。
如果启用https访问,将ingress.tls设置为true,
helm install daliuren chart \
--namespace daliuren \
--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