Semaphore containerization - conrad-blucher-institute/semaphore GitHub Wiki
3 Containers
- Semaphore.Core : executes neural net models to generate and store predictions
- Semaphore.API: hosts a REST API to allow external systems to query for Semaphore data (ingested and generated)
- Semaphore.Database: hosts the semaphore database to persist semaphore data
1. Semaphore.Core
- Source image as TensorFlow 2.13
- Python V.3.10
- Activate environment
- Copy requirements.txt and install dependencies
- On run read host VM .env vars (environment in the yml file)
- Copy Semaphore Source Code to container image
- Port mapping to host network?
- Volumes #Where are files going to live? How do we access them? 7.1. Where do we store log files? Do we pull them out? They should be persistent
- Install cronjob appropriately. Host machine or container?