/garage-sensor

Detects status of a switch

Primary LanguageJavaMIT LicenseMIT

garage-sensor

Detects status of a switch

To Test

mvn test

To Run

mvn spring-boot:run

To Build (with Jenkins)

Create a Jenkins pipeline pointing to https://github.com/AndrewBell/garage-sensor.git

Some notes on building the whole thing from scratch

  1. Setup Dev Environment
    1. Install Java
    2. Install Maven
    3. Install Docker
    4. Install Docker-Cloud
      1. Configure docker-cloud cli
  2. Checkout Repo
  3. Run sh ./build_docker.sh
    • This builds the project with Maven, copies over the deployable artifacts, and builds a docker image.
  4. Setup Raspberry Pi
    1. Install Docker curl -sSL https://get.docker.com | sh
  5. Deploy to Pi
    1. SSH into your Raspberry Pi
    2. docker pull recursivechaos/garage-sensor:latest