pyronear / pyronear/pyro-engine
Access camera-api from host machine & challenge `network_mode`
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:hostis 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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