出席管理システム(オープンソース版)
- クローン
git clone https://github.com/tsukasa0220/attendance-system.git
- ラズパイのIPアドレス、ユーザ名を
./app/scripts/getData.shに記載する
# 接続先ユーザ名・ホスト名
remote_user="Username"
remote_host="IP Address"
- SSH鍵を生成
ssh-keygen -q -t rsa -N '' -f ./app/key/attendance_key
-
生成された
./app/key/attendance_key.pubをラズパイ側の./ssh/authorized_keysとして配置する -
コンテナ構築
docker compose up -d
- コンテナ削除
docker compose down
- Git HubからPULL
git pull
- コンテナ構築
docker compose up -d