Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 2.99 KB

File metadata and controls

32 lines (27 loc) · 2.99 KB

About

This repository contains the code needed to run the java service to perform object detection on images passed to it by the security-camera-micro-service 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. Assign a static I.P. address to this host
  3. Clone this repository onto your host
  4. Navigate to the directory containing the docker-compose file
  5. Replace the <static-ip-address-here> placeholder of the SECURITY_MICRO_SERVICE_BASE_URL environment variable with the value of the static I.P. address assigned in step 2
  6. Update any other environment variables as you please (but the defaults should suffice if you are following along with the Security with Machine Learning Spice Makes Everything Nice project)
  7. Execute docker-compose up -d 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