From 02d42c504ac213e2ed918cc292947a5ed32b1aed Mon Sep 17 00:00:00 2001 From: kenny-dinh-codeleap Date: Fri, 19 May 2023 16:26:33 +0700 Subject: [PATCH 1/6] add docker fiile --- docker/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docker/Dockerfile 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"] From 485a0d152eedd3b7c7d1234312d713e427504e70 Mon Sep 17 00:00:00 2001 From: kenny-dinh-codeleap Date: Fri, 19 May 2023 16:26:43 +0700 Subject: [PATCH 2/6] add docker compose file --- docker-compose.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docker-compose.yml 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 From 84e0ec8de9c4328185b19e0355697ffcb2aea527 Mon Sep 17 00:00:00 2001 From: kenny-dinh-codeleap Date: Fri, 19 May 2023 16:26:51 +0700 Subject: [PATCH 3/6] add make file --- Makefile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3ae6298 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +.PHONY:start +start: + docker-compose up From ee29d4a5e1ab42b5e497b353807e4c7409f9f3ed Mon Sep 17 00:00:00 2001 From: kenny-dinh-codeleap Date: Fri, 19 May 2023 16:30:03 +0700 Subject: [PATCH 4/6] add stop makefile command --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3ae6298..4c5b7e3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ .PHONY:start start: - docker-compose up + docker-compose up --build -d + +.PHONY:stop +stop: + docker-compose down \ No newline at end of file From 08d6b40f04b8e265c00ba37801a45b5616a65102 Mon Sep 17 00:00:00 2001 From: kenny-dinh-codeleap Date: Fri, 19 May 2023 16:37:14 +0700 Subject: [PATCH 5/6] Update README file --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 2929ab3..1cc9efc 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.
From a6019a0bae52534bc10c38d38faf5fe4d222eb23 Mon Sep 17 00:00:00 2001 From: kenny-dinh-codeleap Date: Fri, 19 May 2023 16:38:27 +0700 Subject: [PATCH 6/6] fix the headline --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cc9efc..d614ee3 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Then, you can run the dreamGPT script to generate new ideas: 1. Run `poetry install` to install dependencies. 2. Run `poetry run start` to start dreamGPT. -## Automatically +### Automatically I assume that you already have docker and run it in background