Dockerizing Pandas and SPARQL
Introduction
Often times it's a pain in the neck to install a bunch of Python dependencies to get some script running. This Dockerfile is to create an image with a bunch of dependencies using a requirements.txt
and ultimately create containers out of it.
Folder Struture
/
├── docker/
│ ├── requirements.txt - Python dependencies to be installed (Pandas has been installed by default)
│ └── Dockerfile
├── scripts/ (this folder is mounted when the container is running; let's you do live changes)
│ ├── run.py - Ideally this could be any script you'll want to run
│ └──
└── docker-compose.yml
Prerequisites
Download and Install Docker Desktop In addition, you will be needing Docker Compose
Running
docker-compose up
That's it folks!
Questions? Bugs? Suggestions for Improvement?
Having any issues or troubles getting started? Get in touch with me
Support
Has this Project helped you learn something new? or helped you at work? Do Consider Supporting.
Share it!
Please share this Repository within your developer community, if you think that this would make a difference! Cheers.
About the Author
Sahan Serasinghe
- Blogs at sahansera.dev
- Twitter - _SahanSera
- Linkedin - Sahan Serasinghe