Matt Williams 5a85070c22 Update readmes, requirements, packagejsons, etc for all examples (#1452) | 1 year ago | |
---|---|---|
.. | ||
Modelfile | 1 year ago | |
README.md | 1 year ago | |
dockerit.py | 1 year ago | |
requirements.txt | 1 year ago |
DockerIt is a tool to help you build and run your application in a Docker container. It consists of a model that defines the system prompt and model weights to use, along with a python script to then build the container and run the image automatically.
mattw/dockerit
model installed: ollama pull mattw/dockerit
Make sure Docker is running on your machine.
Install the Python Requirements.
pip install -r requirements.txt
python dockerit.py "simple postgres server with admin password set to 123"
This is a simple example. It's assuming the Dockerfile content generated is going to work. In many cases, even with simple web servers, it fails when trying to copy files that don't exist. It's simply an example of what you could possibly do.