Skip to content

PiAndArduinoGuy/hardware_security_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This repository contains the code needed to run the python service needed to arm, disarm and silence the alarm as part of the Security with Machine Learning Spice Makes Everything Nice project.

System Requirements

Pre-Requisites

A docker swarm manager node needs to exist before proceeding. You will also need to know the token to join the swarm as a worker. If you do not yet have a host designated as a manager, the steps below need to be followed to create one:

  1. On the host designated as the manager, assign a static I.P. address to the host
  2. execute the command docker swarm init --advertise-addrr <static-ip-address-from-step-1>
  3. You will be presented with the token to be used to join the swarm as workers - note this command to be run later.

Usage

  1. On the host that will run the services defined in the docker-compose file, join the docker swarm using the command noted in step 3 of the pre-requisite section
  2. Clone this repository onto your Raspberry Pi
  3. Navigate to the directory containing the docker-compose file
  4. Update the relevant environment variables for specific configurations (but the default should suffice if you are following along with the Security with Machine Learning Spice Makes Everything Nice project)
  5. Execute docker-compose up in the same directory as the docker-compose.yml file

Help

If you are stuck and need a hand, please reach out to me via email piandarduinoguy@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •