9ff6217a12
continuous-integration/drone/push Build is failing
Details
|
||
---|---|---|
godoor_server | ||
hash | ||
.drone.yml | ||
.env | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
go.mod | ||
go.sum | ||
godoor.go | ||
wiegand.go | ||
wiegand_mock.go |
README.md
GoDoor
Go rewrite of kdoorpi. Uses libgpiod native Go library to access the general purpose pins in cross platform way.
Developing
Either build directly on Raspberry Pi or build locally and copy the binary
GOOS=linux GOARCH=arm64 go build
scp godoor rpi4b:
Cross platform buils with containerd/nerdctl
sudo nerdctl build --tag godoor --output type=oci --platform linux/amd64,linux/arm64 .
Nerdctl needs type=oci
passed to its BuildKit backend, otherwise it will build a legacy Docker image.
Deployment
The CI system should automatically build docker image and push it to Harbor
Refer to Ansible playbook on how to deploy on all door controllers
Usage
For end users door can be opened by:
- Web interface
- Push button
- Enrolling keyfob and swiping keyfob at door cardreader
- Issuing
/open-...-door
command in #members channel
For emergency cases:
- Log into door controller via SSH and issue
killall -sUSR1 godoor