BLBR Scripts Docker Setup
This directory contains the Docker configuration for running the BLBR scripts with scheduled execution.
Overview
The setup includes:
- Dockerfile: Configures a Python environment with cron for scheduled task execution
- docker-compose.yml: Orchestrates the scripts container and MongoDB
Scheduled Tasks
By default, the following sequence runs daily at 7:00 PM IST (19:30 server time):
python run_step.py download
python run_step.py trend
python run_step.py mongodb
Getting Started
Prerequisites
- Docker and Docker Compose installed on your system
Running
# Start the containers (pulls image from Docker Hub)
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the containers
docker-compose down
Testing the Scripts Manually
To run scripts manually without waiting for the scheduled time:
# Execute into the container
docker exec -it blbr-scripts bash
# Run scripts manually
python run_step.py download
python run_step.py trend
python run_step.py mongodb
Configuration
Modifying the Schedule
The schedule is configured in the Docker image to run at 7:30 PM IST every day.
If you need to modify the schedule, you'll need to:
- Fork the repository containing the Dockerfile
- Update the cron expression
- Build and publish your own image
- Update the docker-compose.yml to use your custom image
Volume Mounts
The Docker setup uses the following volume mounts:
./logs:/app/logs: Persists log files from the script execution./data:/app/data: Persists data files/tmp/blbr:/tmp/blbr: Maps the temporary directory used during processingmongodb_data:/data/db: Persists the MongoDB data
Database Access
MongoDB is exposed on port 27017 and can be accessed:
- From host:
mongodb://localhost:27017 - From other containers:
mongodb://mongodb:27017
Metadata
Release files for blbr-scripts 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blbr_scripts-0.1.0.tar.gz | 191.7 kB | Without provenance | Details for blbr_scripts-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blbr_scripts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for blbr_scripts-0.1.0-py3-none-any.whl |
Total release size: 227.0 kB
Release files / blbr_scripts-0.1.0.tar.gz
| Download URL | blbr_scripts-0.1.0.tar.gz |
|---|---|
| Size | 191.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f64ac6e4be41c849d9d76b2c2677b053bbbea18ba9cf498ec368764fd297b53
|
|
BLAKE2b-256 checksum How to use checksums |
84f12882ab515ab7f9b77ab82789798498a4f6d6ed6402c63ba56131e8b8454c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / blbr_scripts-0.1.0-py3-none-any.whl
| Download URL | blbr_scripts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4226d5d941a1515125f8295c670f4268f4c809ed6b0a910f70f61afb5bf90e9e
|
|
BLAKE2b-256 checksum How to use checksums |
ee2aa56b5456f2add869ea5ef29f0a8d52c2a2ede7914b9c8bfcb3c978ff23a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for blbr-scripts 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.