Sobre script python con conexión a Atlas-MongoDB.
Dockeriza el script y lo pushea a DockerHub mediante GitHub Actions al hacer un push a main.
prerequisitos
-
brew install mongodb-atlas-cli
-
atlas auth login
-
atrlas setup
Commands:
mongosh "mongodb+srv://Cluster78180:fHtlpirulines@cluster78180.mwv8wrj.mongodb.net" --apiVersion 1 --username Cluster78180
docker build -t mongoconnect .
docker run mongoconnect
https://github.com/nicosistemas/mongodb-python-connects/blob/main/.github/workflows/actions.yml
https://hub.docker.com/repository/docker/nicosistemas/mongoconnect/general