Detects status of a switch
mvn test
mvn spring-boot:run
Create a Jenkins pipeline pointing to https://github.com/AndrewBell/garage-sensor.git
- Setup Dev Environment
- Install Java
- Install Maven
- Install Docker
- Install Docker-Cloud
- Configure docker-cloud cli
- Checkout Repo
- Run
sh ./build_docker.sh
- This builds the project with Maven, copies over the deployable artifacts, and builds a docker image.
- Setup Raspberry Pi
- Install Docker
curl -sSL https://get.docker.com | sh
- Install Docker
- Deploy to Pi
- SSH into your Raspberry Pi
docker pull recursivechaos/garage-sensor:latest