在 2021/4/30 更新給 google 到這邊的朋友們:
這篇很可能已經不能用,原作者也有更新導致下方連結失效,原作者 repo: https://github.com/chihchun/personal-income-tax-docker/
同時在筆者稍微了解此這邊的技術架構後,偏好讓 docker 只執行最小需要虛擬的部份,也就是只有健保卡元件 mLNHIICC
,因為政府網站只有提供給 Ubuntu, Fedora 用的 binary,其他部份可以用原本 host 的軟體就用原本 host 的軟體,改成筆者的版本,有興趣的朋友也歡迎參考:
based on https://github.com/chihchun/personal-income-tax-docker/tree/master/2018, but I use host pcscd
- docker
- Xorg
- pcscd (smart card reader service)
follow this wiki to install pcscd: https://wiki.archlinux.org/index.php/Smartcards
pacman -Sy docker ccid opensc pcsc-tools
sudo systemctl restart pcscd
pcsc_scan
then insert the card, there should be readings from pcsc_scan
bash <(curl -s https://gist.githubusercontent.com/pastleo/c34bcfa883d624772e3ebcf0080c2eaa/raw/affed8df71e8d0a7c296e0847329ed91507d5cef/run.sh)