diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4c5b7e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY:start +start: + docker-compose up --build -d + +.PHONY:stop +stop: + docker-compose down \ No newline at end of file diff --git a/README.md b/README.md index 2929ab3..d614ee3 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,23 @@ To use dreamGPT, you will need to have the following installed: Then, you can run the dreamGPT script to generate new ideas: +### Manually + 1. Run `poetry install` to install dependencies. 2. Run `poetry run start` to start dreamGPT. +### Automatically + +I assume that you already have docker and run it in background + +1. Run `docker-compose up --build -d` to install all dependencies and start dreamGPT service +2. To stop dreamGPT service, run command `docker-compose down` + +or if you prefer to use Makefile + +1. Run command `make start` to install all dependencies and start dreamGPT service +2. Run command `make stop` to stop dreamGPT service + Once you run it, dreamGPT generates a random seed of concepts and will use these as a starting point for its dreaming process. Here is a screenshot of the first iteration. Notice that the scores are not very high. As dreamGPT evolves the dreams you will start to see higher scores with even better ideas.
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..86de678 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' + +services: + app: + build: + context: ./docker + dockerfile: Dockerfile + volumes: + - .:/app + command: poetry run start diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..5102149 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,17 @@ +# Start with the official Python 3.10 image +FROM python:3.10 + +# Install poetry +RUN pip install poetry + +# Set the working directory to /app +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY . /app + +# Install any needed packages specified in pyproject.toml +RUN poetry install + +# Run the application command +CMD ["poetry", "run", "start"]