開發日誌 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 頁面