Skip to content

Commit bb741fa

Browse files
committed
updating docker compose
1 parent 0d53945 commit bb741fa

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ This repository heavily depends on Docker. Make sure both Docker and Docker
3131
Compose (which is used for testing) are installed on your machine.
3232

3333
To build all the images at once, simply run `make` in the top-level directory.
34-
If you would like to build specific images, you can either pass the name of the
34+
*NOTE*: by default, top-level `make` creates the `uavaustin/image-rec-auto` image
35+
for x86 devices. If you would like to build for the Jetson, initialize the `JETSON`
36+
environment variable and build in the specific directory.
37+
38+
For building specific images, you can either pass the name of the
3539
service (e.g. `make interop-proxy`) or you can call `make` from inside the
3640
service's directory. Note that calling `make` from the service directory does
3741
not ensure that build-time prerequisites are satisfied.

config/ground/docker-compose.yml

+17
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,23 @@ services:
105105
- ./imagery:/opt/imagery
106106
restart: unless-stopped
107107

108+
image-rec-redis:
109+
image: redis:alpine
110+
command: redis-server --save "" --appendonly no
111+
ports:
112+
- '6379:6379'
113+
networks:
114+
- ground-net
115+
116+
image-rec-master:
117+
image: uavaustin/image-rec-master
118+
environment:
119+
- REDIS_HOST=image-rec-redis
120+
ports:
121+
- '8082:8082'
122+
networks:
123+
- ground-net
124+
108125
networks:
109126
ground-net:
110127

config/plane/docker-compose.yml

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ services:
5555
volumes:
5656
- './imagery:/opt/imagery'
5757
restart: unless-stopped
58+
59+
image-rec-auto:
60+
image: uavaustin/image-rec-auto-l4t
61+
environment:
62+
- IMAGERY_HOST=imagery-plane
63+
- IMAGERY_PORT=8081
64+
- IMAGE_REC_MASTER_HOST=image-rec-master
65+
- IMAGE_REC_MASTER_PORT=8082
66+
- FETCH_INTERVAL=1000
67+
networks:
68+
- plane-net
69+
restart: unless-stopped
5870

5971
networks:
6072
plane-net:

services/image-rec-auto/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ messages/
1414
# pytest
1515
.pytest_cache/
1616

17-
coverage
17+
coverage/

services/image-rec-auto/service/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run_iter(self) -> None:
6464
t_3 = util.curr_time()
6565
logging.info(f"{len(targets)} targets found in {t_3 - t_2:d} ms")
6666

67-
if targets:
67+
if targets and len(targets) > 0:
6868
ret = self._queue_targets(image_id, image_proto, image, targets)
6969
t_4 = util.curr_time()
7070

0 commit comments

Comments
 (0)