diff --git a/README.md b/README.md index 7b73be2..f5a31bf 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,21 @@ Some modes (such as the [motion_detection](picameleon/modes/motion_detection.py) Example configurations can be found in the [configs](picameleon/configs) folder. +## Build + +Build the container locally (takes a while but should be accelerated through piwheels): + +``` +docker built -t picameleon:latest . +``` + +in case you are building it for the raspberrypi zero you need to specify the correct Dockerfile: + +``` +docker built -t picameleon:latest -f Dockerfile.zero . +``` + + ## Deployment Launching the daemon in a Docker container is supported and also recommended. There are two Dockerfiles which only differ in their base image to support the RaspberryPi Zero and all the other versions of the Pi. diff --git a/tests/test_network_serving_mode.py b/tests/test_network_serving_mode.py index 207490e..4c7b253 100644 --- a/tests/test_network_serving_mode.py +++ b/tests/test_network_serving_mode.py @@ -1,6 +1,6 @@ import sys sys.path.append("/picameleon") -from .mocks.mock_socket import MockSocket +from mocks.mock_socket import MockSocket from modes.network_serving import NetworkServingMode import json import unittest @@ -46,7 +46,7 @@ def test_routine(self, mocked_redis, mocked_socket): self.assertTrue(client_address in mode.socket_map.keys()) self.assertTrue(client_address in mode.socket_to_stream.keys()) self.assertTrue( - mode.streamer_map["h264_1000000"].output.has_output(client_address)) + mode.streamer_map["bitrate_1000000format_h264"].output.has_output(client_address)) mode.socket_map[client_address].close() self.assertEqual(len(mode.socket_map), 0) diff --git a/tests/test_network_trigger_mode.py b/tests/test_network_trigger_mode.py index 5597c93..6521f05 100644 --- a/tests/test_network_trigger_mode.py +++ b/tests/test_network_trigger_mode.py @@ -1,6 +1,6 @@ import sys sys.path.append("/picameleon") -from .mocks.mock_socket import MockSocket +from mocks.mock_socket import MockSocket from modes.network_trigger import NetowrkTriggerMode import json import unittest