pyronear / pyronear/pyro-engine

Access camera-api from host machine & challenge `network_mode`

Open
#315 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
19
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Pitch

TODO after #312

From the host machine (like when doing local dev, and running docker compose on personnal laptop), it is not possible to reach the swagger to read the api docs.

What is done currently

  • network_mode:host is used, but not sure if it is useful here (need to work on raspberry pi and any server linux, or mac) -> To be challenged

What should be done

  • Must be investigated but adding port forwarding in docker compose of the camera_api service might solved the issue
ports:
    - "8081":"8081"

At last, it is needed that the camera_api services is accessible from outside on the port 8081

Happy to discuss it !

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Docker Compose configuration for the camera_api service and compare the current network_mode: host setup with port forwarding on port 8081. Test host access to the Swagger API on Linux, Raspberry Pi, and macOS; done means camera_api is reachable externally on port 8081 without breaking the supported environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.