XiDunKu 西墩庫
xidunku 收集建立西大墩附近數位領域資源並發展相關教育訓練素材。
西墩庫分成三個部份
- inku 入庫
- keepku 守庫
- outku 出庫
虛擬西墩庫區
- 實體映射
- 台中市中央公園周圍1000m
- 台中市公車路線周圍100m
- 虛擬服務
inku 入庫
xctixweb
使用目前最快框架 actix,參考 Round 18 results - TechEmpower Framework Benchmarks
xhoami
TODO
xupertest
TODO
keepku 守庫
How to test
smtp
$ cd keepku/messaging-sys
$ skaffold dev -p smtpx1
$ skaffold dev -p smtpx2
rabbitmq
- guest/guest http://localhost:15672
$ skaffold dev -p rabbitmq-dev --port-forward
$ skaffold dev -p rabbitmq --port-forward
TODO
- smtpx1 from bar@locahost to foo@localhost
- smtpx2 from bar@taichung.ku.default.svc.cluster.local foo@taipei.ku.default.svc.cluster.local
- rust grpc processor ? hyperium/tonic: A native gRPC client & server implementation with async/await support.
- read kaiwaehner/tensorflow-serving-java-grpc-kafka-streams: Kafka Streams + Java + gRPC + TensorFlow Serving => Stream Processing combined with RPC / Request-Response
mdbook-kubook
prerequisites
- java
- plantum.jar
install mdbook-kubook
$ git clone https://github.com/dltdojo/xidunku.git && cd xidunku\keepku\mdbook-kubook
$ cargo install --path .
book.toml
[preprocessor.kubook]
command = "mdbook-kubook"
renderer = ["html"]
java-path="/usr/bin/java"
plantuml-jar="/usr/local/share/plantuml.jar"
example diagrams
code block with plantumlsvg and plantumltxt
code block lang: plantumlsvg
code block lang: plantumltxt
,-.
`-'
/|\ | ,-.
| +--{ ) ,----. ,----.
/ \ | `-' |Foo3| |Foo4|
Foo1 Foo2 `----' `----'
| To boundary | | |
| --------------> | |
| | | |
| To control | |
| ------------------------------> |
| | | |
| | To entity | |
| ---------------------------------------------->
Foo1 Foo2 ,----. ,----.
,-. | ,-. |Foo3| |Foo4|
`-' +--{ ) `----' `----'
/|\ | `-'
|
/ \
code block lang: plantuml
@startuml
Alice -> Bob : Hello
Bob -> Alice : 你好
@enduml
outku 出庫
Projects
2020台灣燈會在台中
任務
- 製作地圖
- 靜態地圖(店家邀請宣傳轉寄使用)網頁
- 動態倒數網頁
OpenStreetMap 地圖
花博園區(后里馬場園區至森林園區)主燈區 2020年2月8日至2月23日
- 藝想世界 (后里馬場園區)
- 森林秘境 (后里森林園區)
- Relation: 台中花博后里森林園區 (9330930)
- Way: 台中花博后里馬場園區 (220006132)
文心森林公園副燈區 2019年12月21日至2020年2月23日
- 童趣樂園 (文心森林公園)
網頁資源
素材資源
免費公開無須許可與標示的授權圖片
OpenStreetMap 資源
- 參考 新社花海
開發日誌
開發日誌 2019-12
2019-12-14
- inku/xctixweb 使用目前最快框架 actix
- keepku/qubits
- inku/xode-server
GCP Cloud 體驗
新增 Ubuntu 18 VM 開啟 HTTPS
- ip 34.69.163.127
sudo apt update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
exit
開啟一個 http 服務
docker run -p 443:80 docker.io/dltdojo/xidunku-xhoami
因為 VM 只有開 https 只能用 443 來存取 http 服務
- http://34.69.163.127:443/
安裝 kubernetes
sudo snap install microk8s --classic
sudo usermod -a -G microk8s $USER
sudo snap alias microk8s.kubectl kubectl
exit
安裝 microk8s service,注意 ingress 服務會占用主機的 443 服務
microk8s.enable dns ingress rbac storage registry
- https://34.69.163.127/
- https://xode-server-34-69-163-127.nip.io/
問題是 code-server 會自己轉導致一直跳去 http 但是會卡住無法瀏覽網頁,因為該 VM 已經鎖住只有 443 可用。
cdr/code-server: Run VS Code on a remote server.
If code-server has been passed a certificate it will also respond to HTTPS requests and will redirect all HTTP requests to HTTPS. Otherwise it will respond only to HTTP requests.
command:
- /bin/bash
args:
- -c
- |
dumb-init code-server --host 0.0.0.0 --port 443 --cert
Need new manual for nginx · Issue #1117 · cdr/code-server
2019-12-13
地圖範圍由 oeverpass-turbo 選好後匯出檢索資料如下,如要修改條件可將下面資料貼入 overpass-turbo,可用來匯出 geojson 。
[out:json][timeout:25];
(
node["amenity"="cafe"](24.164648589706662,120.63709259033202,24.207594173446587,120.67545890808107);
node["shop"="convenience"](24.164648589706662,120.63709259033202,24.207594173446587,120.67545890808107);
node["amenity"="toilets"](24.164648589706662,120.63709259033202,24.207594173446587,120.67545890808107);
);
out body;
>;
out skel qt;
- github docker registry 預設鎖住需 personal access token 否則無法讀,這點目前與 docker.io 預設開放不同。401 Unauthorized when pulling an image from an authenticated Docker registry
- 西墩庫分成三個部份( inku 入庫, keepku 守庫 , outku 出庫)
- inku 採集可重複性使用數位資源,keepku 練習守護數位倉庫技巧,outku 資源應用整合練習。
- inku 採集數位資源建立倉位
- keepku 建站 , OSM, k8s, owasp top 10 + Pi
- outku 用情境說明商家海報轉發授權與OpenStreetMap資訊整合
- outku 廣告海報看板或是行銷擺攤的抽獎機器
- docker.io/dltdojo/xidunku-xhoami
- docker.io/dltdojo/xidunku-xupertest
2019-12-09
- 建立 github xidunku 西墩庫專案
- 設置 github pages 網頁目錄 docs
- 使用 rust-lang/mdBook 來 輸出網頁
- 新增2020台灣燈會在台中 projects/2020-tw-lantern 頁面